java的build.bat文件和build.xml<2>

<!-- ====================================================================== -->
<!-- to declare the project all targets -->
<!-- ====================================================================== -->
<target name="usage">
<echo>This is help infomation of the TopEng-CSP System build tool </echo>
<echo>usage: ant [target] </echo>
<echo>target description dependence </echo>
<echo>usage to display this help infomation N/A </echo>
<echo>clear to delete some directories and files before will build N/A </echo>
<echo>init to initialize,make some necessary directories N/A </echo>
<echo>ccget to get all source code from clearcase with specified path init </echo>
<echo>i18n to encode source code ccget </echo>
<echo>compile to compile source code ccget </echo>
<echo>resource to collect necessary resource files N/A </echo>
<echo>jar to run jar-command with source code compile/encoding </echo>
<echo>test to run test suits jar </echo>
<echo>javadoc to create javadoc ccget </echo>
<echo>jsp to pre-compile jsp files,and check error ccget </echo>
<echo>war to create war file jsp </echo>
<echo>dest to pack all project file jar/war/javadoc/test </echo>
<echo>ccupdate to check in the latest package files to clearcase server dest </echo>
<echo>deploy to deploy in the latest package files to to app server dest </echo>
</target>

<target name="init">
<delete dir="${dest.dir}" />
<mkdir dir="${dest.dir}" />
<mkdir dir="${dest.dir}/classes" />
<mkdir dir="${dest.dir}/WebRoot/WEB-INF/classes" />
<mkdir dir="${dest.dir}/WebRoot/WEB-INF/lib" />
</target>

<target name="ccget" description="get/update src from ClearCase ">
<ccupdate viewpath="${cc.viewpath}/java/bc1/${module.name}" graphical="false" overwrite="true" currenttime="true" rename="false" />
</target>

<target name="i18n">
<native2ascii encoding="UTF-8" src="${project.home}/WebRoot/WEB-INF/i18n" dest="${project.home}/WebRoot/WEB-INF/i18n" includes="**/chd_zh_CN.orgin" ext=".properties" />
</target>

<target name="compile" depends="init">
<javac destdir="${dest.dir}/classes" bootclasspathref="class.path" encoding="utf-8" debug="false" deprecation="false" nowarn="on" source="1.5" target="1.5"
fork="true" memoryInitialSize="256m" memoryMaximumSize="1024m">
<src path="${project.home}" />

<include name="c_pics_src/**/*.java" />

</javac>
</target>


<target name="jar" depends="compile">

<copy todir="${dest.dir}/classes">
<fileset dir="${project.home}/c_pics_src">
<include name="**/**/*.*" />
<exclude name="**/*.java"/>
<exclude name="**/test"/>
<exclude name="**/test/**/*.*"/>
</fileset>
</copy>

<jar destfile="${dest.dir}/csp-c-bsf-ha.jar">
<fileset dir="${dest.dir}/classes" includes="com/huawei/csp/customization/bsf/**/*.*" excludes="test/**/*.*" />
</jar>

<jar destfile="${dest.dir}/csp-c-pics-ha.jar">
<fileset dir="${dest.dir}/classes" includes="com/huawei/csp/customization/pics/**/*.*" excludes="test/**/*.*" />
</jar>
</target>
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值