java的build.bat文件和build.xml<3>
<target name="war" depends="jar">
<copy todir="${dest.dir}/WebRoot/WEB-INF/lib">
<fileset dir="${dest.dir}">
<include name="*.jar" />
</fileset>
</copy>
<copy todir="${dest.dir}/WebRoot">
<fileset dir="${project.home}/WebRoot">
<include name="**/**/*.*" />
<exclude name="WEB-INF/classes/**/*.*"/>
</fileset>
</copy>
<copy todir="${dest.dir}/WebRoot/WEB-INF/classes">
<fileset dir="${dest.dir}/classes">
<include name="**/**/*.*" />
</fileset>
</copy>
<copy todir="${dest.dir}/WebRoot/WEB-INF/classes">
<fileset dir="${project.home}/conf">
<include name="**/**/*.*" />
<exclude name="**/**/*.bak" />
</fileset>
</copy>
<war destfile="${dest.dir}/csp.war" webxml="${project.home}/WebRoot/WEB-INF/web.xml">
<fileset dir="${dest.dir}/WebRoot">
<include name="**/**/*.*" />
<exclude name="${project.home}/WebRoot/WEB-INF/web.xml"/>
<exclude name="com/**/*.*"/>
</fileset>
</war>
<delete dir="${dest.dir}/classes" />
<delete dir="${dest.dir}/WebRoot" />
<delete dir="${dest.dir}/*.jar" />
</target>
<target name="tar" depends="jar">
<copy todir="${dest.dir}/WebRoot/WEB-INF/lib">
<fileset dir="${dest.dir}">
<include name="*.jar" />
</fileset>
</copy>
<copy todir="${dest.dir}/WebRoot">
<fileset dir="${project.home}/WebRoot">
<include name="**/**/*.*" />
<exclude name="WEB-INF/classes/com/**/*.*"/>
</fileset>
</copy>
<copy todir="${dest.dir}/WebRoot/WEB-INF/classes">
<fileset dir="${project.home}/conf">
<include name="**/**/*.*" />
<exclude name="**/**/*.bak" />
</fileset>
</copy>
<tar destfile="${dest.dir}/${module.deployname}.tar" basedir="${dest.dir}/WebRoot">
</tar>
</target>
</project>