您的位置:首页 > 其它

即将发布codesword-alpha-0.0.1版本

2009-04-10 07:50 92 查看
codesword经过调试,已基本完成代码生成的功能。原代码中已增加了一个生成的例子,生成jsp,与strtus2-action的模板任务。详见task.xml

?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项目 阅读更多
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: