前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >What is Struts Resume?

What is Struts Resume?

作者头像
田春峰-JCJC错别字检测
发布2019-02-14 15:08:20
5900
发布2019-02-14 15:08:20
举报
文章被收录于专栏:字根中文校对软件

What is Struts Resume? Struts Resume is being developed for two purposes: (1) so I can edit and publish my resume online and (2) to demonstrate developing a real-world app with AppFuse. Feel free to checkout the online demo

http://demo.raibledesigns.com/struts-resume/schools.do

http://raibledesigns.com/wiki/Wiki.jsp?page=StrutsResume

http://forum.javaeye.com/viewtopic.php?t=5167

ant and cvs to work together

实现的主要功能是:自动从cvs中check out模块,然后编译,把编译后的class打成jar,再commit到cvs服务器的指定位置。 build.xml

代码:

<?xml version="1.0"?> <project name="gnt Auto build" basedir="." default="build">     <!-- The CVSROOT value -->     <property name="cvsroot" value=":pserver:dhf:@192.168.0.200:D:/cvs_repository_z"/>     <property name="cvs.password" value=""/>       <property name="ywzcpt.dir" value="${basedir}/ywzcpt"/>     <property name="ywzcpt.module.name" value="ywzcpt"/>         <property name="zfyw.dir" value="${basedir}/zfyw"/>     <property name="zfyw.module.name" value="zfyw"/>     <property name="external.dir" value="${basedir}/external"/>     <property name="external.module.name" value="external"/>         <property name="cvs-op" value="co " />     <!-- Initializing -->     <target name="init">         <tstamp>             <format property="today" pattern="yyyy-MM-dd hh:mm:ss"/>         </tstamp>         <echo message="${today}" />     </target>         <target name="prepare" depends="init" >         <cvspass cvsroot="${cvsroot}" password="${cvs.password}" passfile="ant-cvs.cvspass"/>     </target>         <target name="external-check-out" depends="prepare">         <cvs cvsRoot="${cvsroot}" package="${external.module.name}"              passfile="ant-cvs.cvspass"/>     </target>         <!-- Retrieve the ywzcpt module -->     <target name="ywzcpt-check-out" depends="external-check-out">         <delete dir="${ywzcpt.module.name}"/>         <cvs cvsRoot="${cvsroot}" package="${ywzcpt.module.name}"              passfile="ant-cvs.cvspass"/>     </target>     <target name="zfyw-check-out" depends="external-check-out">         <delete dir="${zfyw.module.name}"/>         <cvs cvsRoot="${cvsroot}" package="${zfyw.module.name}"              passfile="ant-cvs.cvspass"/>     </target>     <!-- cvs checkout -->         <target name="check-out">         <antcall target="external-check-out" />         <antcall target="ywzcpt-check-out" />         <antcall target="zfyw-check-out" />     </target>         <!-- build XSP framework -->     <target name="build">         <echo message="+=============================================+" />         <echo message="|     Start Building GNT for compilation      |" />         <echo message="+=============================================+" />                 <antcall target="ywzcpt-build" />                         <echo message="+=============================================+" />         <echo message="|      End Building GNT for compilation       |" />         <echo message="+=============================================+" />             </target>         <target name="ywzcpt-build" depends="ywzcpt-check-out">         <echo message="+---------------------------------------------+" />         <echo message="|    Start Building ywzcpt for compilation    |" />         <echo message="+---------------------------------------------+" />         <ant antfile="build.xml" dir="${ywzcpt.module.name}" output="ywzcpt.log" />         <property name="ywzcpt.add" value="add ./build/log/*.log ./build/*.jar ./build/*.war"/>         <property name="ywzcpt.commit" value="commit -m '${today}' ./build/log/*.log ./build/*.jar ./build/*.war"/>                 <ant antfile="build.xml" dir="${ywzcpt.module.name}" target="commit-build" />                 <echo message="+---------------------------------------------+" />         <echo message="+     End Building ywzcpt for compilation     |" />         <echo message="+---------------------------------------------+" />     </target>         <target name="zfyw-build" depends="zfyw-check-out, ywzcpt-build">         <echo message="+---------------------------------------------+" />         <echo message="|    Start Building ywzcpt for compilation    |" />         <echo message="+---------------------------------------------+" />         <ant antfile="build.xml" dir="${zfyw.module.name}" output="zfyw.log" />         <property name="zfyw.add" value="add ./build/log/*.log ./build/*.jar ./build/*.war"/>         <property name="zfyw.commit" value="commit -m '${today}' ./build/log/*.log ./build/*.jar ./build/*.war"/>                 <ant antfile="build.xml" dir="${zfyw.module.name}" target="commit-build" />                 <echo message="+---------------------------------------------+" />         <echo message="+     End Building ywzcpt for compilation     |" />         <echo message="+---------------------------------------------+" />     </target>     <target name="clean" >         <delete dir="${ywzcpt.module.name}"/>     </target>   </project>

ywzcpt/build.xml片断:

代码:

主要实现commit功能     <target name="commit-build">         <cvs cvsRoot="${cvsroot}" passfile="${root.dir}/ant-cvs.cvspass"              command="${ywzcpt.add}"/>         <cvs cvsRoot="${cvsroot}" passfile="${root.dir}/ant-cvs.cvspass"              command="${ywzcpt.commit}"/>     </target>

最后,在win2k中制定一个计划任务,就可以了。 _________________ 黑夜给了我黑色的眼睛,而我要用她去寻找光明。 悄悄地我走了,正如我悄悄地来,挥挥衣袖,不带走一片云彩。 blog: http://forum.javaeye.com/bloglist.php?userid=1354 http://www.javamodel.com

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2004年06月29日,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档