?xml version="1.0" encoding="UTF-8"?>
<project>
<task name="gen-struts2-jsp-list" file="listPage.tpl" targetDir="jsp" package="" pre="" fix="List" fileFix="jsp">
<component name="queryColumn" file="queryColumn.tpl"/>
<component name="listHeader" file="listHeader.tpl"/>
<component name="listColumn" file="listColumn.tpl"/>
</task>
<task name="gen-struts2-action" file="struts2-action.tpl" targetDir="src" package="com.edar.action" pre="" fix="Action" fileFix="java"/>
</project>
如果以前使用過genstruts2的生成器的朋友們,現在直接用下載代碼執行就可以生成你想要的代碼,不過,生成不同的代碼需要配置task.xml的任務,<component name="queryColumn" file="queryColumn.tpl"/>
屬於嵌套生成源代碼,即在listPage.tpl中定義${queryColumn},而在嵌套組件中生成${queryColumn}的源代碼。
等把edar-platform(注,是我在開發管理軟件的一個基礎平臺,如組織機構、權限、角色等管理的一個小項目)架構搭建完成,並且通過codesword生成此項目源代碼時,正式發佈codesword-alpha-0.0.1
要想先試用的朋友可以下載源代碼.
http://codesword.googlecode.com/svn/trunk/
謝謝您關注codesword項目