<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- WARNING: Eclipse auto-generated file.
Any modifications will be overwritten.
To include a user specific buildfile here, simply create one in the same
directory with the processing instruction <?eclipse.ant.import?>
as the first entry and export the buildfile again. -->
<!-- ant build war 1.build DataAccess.jar to Rotterdam-src/main/webapp/WEB-INF/lib ,2.build Utility.jar to Rotteram-src/main/webapp/WEB-INF/lib -->
<project xmlns:ivy="antlib:org.apache.ivy.ant" xmlns:spring-boot="antlib:org.springframework.boot.ant"
basedir="." default="build-war" name="rotterdam">
<property environment="env"/>
<property name="debuglevel" value="source,lines,vars"/>
<property name="target" value="1.8"/>
<property name="source" value="1.8"/>
<property name="dir.lib" value="../RM_lib"/>
<!-- 构建路径 -->
<path id="rotterdam.classpath">
<pathelement path="${basedir}/src" />
<pathelement location="../RM_lib/DataAccess.jar"/>
<pathelement location="../RM_lib/Utility.jar"/>
<pathelement location="../RM_lib/commons-lang-2.1.jar"/>
<pathelement location="../RM_lib/commons-compress-1.14.jar"/>
</path>
<!-- 初始化 -->
<target name="init" depends="collectjar">
<echo message="=========init====="/>
<mkdir dir="target/classes"/>
<copy includeemptydirs="false" todir="target/classes">
<fileset dir="src/main/java">
</fileset>
</copy>
<copy includeemptydirs="false" todir="target/classes">
<fileset dir="src/main/resources">
</fileset>
</copy>
<copy includeemptydirs="true" todir="target/classes">
<fileset dir="src/main/webapp/VAADIN">
<include name="**"/>
</fileset>
</copy>
</target>
<target name="collectjar" depends="clean">
<mkdir dir="../RM_lib/webbroker_lib"/>
<copy includeemptydirs="false" todir="../RM_lib/webbroker_lib">
<fileset dir="../RM_lib">
<include name="DataAccess.jar"/>
<include name="Utility.jar"/>
<include name="spring-batch-infrastructure-3.0.7.RELEASE.jar"/>
<include name="spring-retry-1.1.2.RELEASE.jar"/>
</fileset>
</copy>
</target>
<target name="clean">
<delete dir="target/classes"/>
<delete dir="target/test-classes"/>
<delete dir="target/RM_WebBroker.war"/>
</target>
<!-- 编译 -->
<target depends="build-subprojects,build-project" name="build"/>
<target name="build-subprojects"/>
<target depends="init" name="build-project">
<echo message="${ant.project.name}: ${ant.file}"/>
<javac encoding="UTF8" debug="false" debuglevel="${debuglevel}" destdir="target/classes/" includeantruntime="on"
source="${source}" target="${target}" classpathref="rotterdam.classpath" deprecation="false" fork="false" failοnerrοr="false" >
<src path="src/main/java"/>
<src path="src/main/java/com/rquest/riskmaster"/>
<src path="src/main/java/com/rquest/riskmaster/component/brcb"/>
<src path="src/main/resources"/>
<classpath refid="rotterdam.classpath"/>
<compilerarg value="-Xlint:unchecked" />
</javac>
</target>
<target description="Build all projects which reference this project. Useful to propagate changes." name="build-refprojects"/>
<!-- 打war包 -->
<target name="build-war" depends="build-project">
<war destfile="target/RMS.war" compress="false" webxml="src/main/webapp/WEB-INF/web.xml">
<mappedresources>
<fileset dir="target/classes" />
<globmapper from="*" to="WEB-INF/classes/*"/>
</mappedresources>
<mappedresources>
<fileset dir="src/main/webapp/VAADIN" />
<globmapper from="*" to="VAADIN/*"/>
</mappedresources>
<zipfileset src="../RM_lib/spring-boot-loader-1.5.9.RELEASE.jar" />
<lib dir="../RM_lib/webbroker_lib"/>
<manifest>
<attribute name="Main-Class" value="org.springframework.boot.loader.JarLauncher" />
<attribute name="Start-Class" value="com.rquest.riskmaster.RotterdamApplication" />
</manifest>
</war>
<delete dir="../RM_lib/webbroker_lib"></delete>
</target>
<target name="RotterdamApplication">
<java classname="com.rquest.riskmaster.RotterdamApplication" failοnerrοr="true" fork="yes">
<classpath refid="run.RotterdamApplication.classpath"/>
</java>
</target>
</project>
<!-- WARNING: Eclipse auto-generated file.
Any modifications will be overwritten.
To include a user specific buildfile here, simply create one in the same
directory with the processing instruction <?eclipse.ant.import?>
as the first entry and export the buildfile again. -->
<!-- ant build war 1.build DataAccess.jar to Rotterdam-src/main/webapp/WEB-INF/lib ,2.build Utility.jar to Rotteram-src/main/webapp/WEB-INF/lib -->
<project xmlns:ivy="antlib:org.apache.ivy.ant" xmlns:spring-boot="antlib:org.springframework.boot.ant"
basedir="." default="build-war" name="rotterdam">
<property environment="env"/>
<property name="debuglevel" value="source,lines,vars"/>
<property name="target" value="1.8"/>
<property name="source" value="1.8"/>
<property name="dir.lib" value="../RM_lib"/>
<!-- 构建路径 -->
<path id="rotterdam.classpath">
<pathelement path="${basedir}/src" />
<pathelement location="../RM_lib/DataAccess.jar"/>
<pathelement location="../RM_lib/Utility.jar"/>
<pathelement location="../RM_lib/commons-lang-2.1.jar"/>
<pathelement location="../RM_lib/commons-compress-1.14.jar"/>
</path>
<!-- 初始化 -->
<target name="init" depends="collectjar">
<echo message="=========init====="/>
<mkdir dir="target/classes"/>
<copy includeemptydirs="false" todir="target/classes">
<fileset dir="src/main/java">
</fileset>
</copy>
<copy includeemptydirs="false" todir="target/classes">
<fileset dir="src/main/resources">
</fileset>
</copy>
<copy includeemptydirs="true" todir="target/classes">
<fileset dir="src/main/webapp/VAADIN">
<include name="**"/>
</fileset>
</copy>
</target>
<target name="collectjar" depends="clean">
<mkdir dir="../RM_lib/webbroker_lib"/>
<copy includeemptydirs="false" todir="../RM_lib/webbroker_lib">
<fileset dir="../RM_lib">
<include name="DataAccess.jar"/>
<include name="Utility.jar"/>
<include name="spring-batch-infrastructure-3.0.7.RELEASE.jar"/>
<include name="spring-retry-1.1.2.RELEASE.jar"/>
</fileset>
</copy>
</target>
<target name="clean">
<delete dir="target/classes"/>
<delete dir="target/test-classes"/>
<delete dir="target/RM_WebBroker.war"/>
</target>
<!-- 编译 -->
<target depends="build-subprojects,build-project" name="build"/>
<target name="build-subprojects"/>
<target depends="init" name="build-project">
<echo message="${ant.project.name}: ${ant.file}"/>
<javac encoding="UTF8" debug="false" debuglevel="${debuglevel}" destdir="target/classes/" includeantruntime="on"
source="${source}" target="${target}" classpathref="rotterdam.classpath" deprecation="false" fork="false" failοnerrοr="false" >
<src path="src/main/java"/>
<src path="src/main/java/com/rquest/riskmaster"/>
<src path="src/main/java/com/rquest/riskmaster/component/brcb"/>
<src path="src/main/resources"/>
<classpath refid="rotterdam.classpath"/>
<compilerarg value="-Xlint:unchecked" />
</javac>
</target>
<target description="Build all projects which reference this project. Useful to propagate changes." name="build-refprojects"/>
<!-- 打war包 -->
<target name="build-war" depends="build-project">
<war destfile="target/RMS.war" compress="false" webxml="src/main/webapp/WEB-INF/web.xml">
<mappedresources>
<fileset dir="target/classes" />
<globmapper from="*" to="WEB-INF/classes/*"/>
</mappedresources>
<mappedresources>
<fileset dir="src/main/webapp/VAADIN" />
<globmapper from="*" to="VAADIN/*"/>
</mappedresources>
<zipfileset src="../RM_lib/spring-boot-loader-1.5.9.RELEASE.jar" />
<lib dir="../RM_lib/webbroker_lib"/>
<manifest>
<attribute name="Main-Class" value="org.springframework.boot.loader.JarLauncher" />
<attribute name="Start-Class" value="com.rquest.riskmaster.RotterdamApplication" />
</manifest>
</war>
<delete dir="../RM_lib/webbroker_lib"></delete>
</target>
<target name="RotterdamApplication">
<java classname="com.rquest.riskmaster.RotterdamApplication" failοnerrοr="true" fork="yes">
<classpath refid="run.RotterdamApplication.classpath"/>
</java>
</target>
</project>