|
@@ -3,23 +3,24 @@
|
|
|
<project name="ieat2" basedir="." default="war" xmlns:ivy="antlib:org.apache.ivy.ant">
|
|
<project name="ieat2" basedir="." default="war" xmlns:ivy="antlib:org.apache.ivy.ant">
|
|
|
|
|
|
|
|
<property name="app.name" value="ieat"/>
|
|
<property name="app.name" value="ieat"/>
|
|
|
|
|
+ <property name="app.conf.dir" value="conf/app/"/>
|
|
|
|
|
|
|
|
<property name="ant.lib" value="${user.home}/.ant/lib"/>
|
|
<property name="ant.lib" value="${user.home}/.ant/lib"/>
|
|
|
-
|
|
|
|
|
- <property name="conf.dir" value="conf/"/>
|
|
|
|
|
|
|
+ <property name="ant.conf.dir" value="conf/ant/"/>
|
|
|
|
|
+
|
|
|
<property name="lib.dir" value="lib/"/>
|
|
<property name="lib.dir" value="lib/"/>
|
|
|
<property name="web.dir" value="web/"/>
|
|
<property name="web.dir" value="web/"/>
|
|
|
|
|
|
|
|
- <property prefix="tomcat" file="${conf.dir}/tomcat.properties"/>
|
|
|
|
|
|
|
+ <property prefix="tomcat" file="${ant.conf.dir}/tomcat.properties"/>
|
|
|
|
|
|
|
|
- <property prefix="build" file="${conf.dir}/build.properties"/>
|
|
|
|
|
|
|
+ <property prefix="build" file="${ant.conf.dir}/build.properties"/>
|
|
|
<property name="build.lib" value="${lib.dir}/war/"/>
|
|
<property name="build.lib" value="${lib.dir}/war/"/>
|
|
|
<property name="build.warfile" value="${build.dir}/${app.name}-${build.version}.war"/>
|
|
<property name="build.warfile" value="${build.dir}/${app.name}-${build.version}.war"/>
|
|
|
<tstamp>
|
|
<tstamp>
|
|
|
<format property="build.time" pattern="MM/dd/yyyy hh:mm aa z" />
|
|
<format property="build.time" pattern="MM/dd/yyyy hh:mm aa z" />
|
|
|
</tstamp>
|
|
</tstamp>
|
|
|
|
|
|
|
|
- <property prefix="compile" file="${conf.dir}/compile.properties"/>
|
|
|
|
|
|
|
+ <property prefix="compile" file="${ant.conf.dir}/compile.properties"/>
|
|
|
<property name="compile.lib" value="${lib.dir}/compile"/>
|
|
<property name="compile.lib" value="${lib.dir}/compile"/>
|
|
|
<path id="compile.classpath">
|
|
<path id="compile.classpath">
|
|
|
<pathelement location="${target.dir}"/>
|
|
<pathelement location="${target.dir}"/>
|
|
@@ -30,7 +31,7 @@
|
|
|
<property name="target.dir" value="${build.dir}/${app.name}/WEB-INF/classes"/>
|
|
<property name="target.dir" value="${build.dir}/${app.name}/WEB-INF/classes"/>
|
|
|
|
|
|
|
|
<property name="ivy.jar" value="${ant.lib}/ivy.jar"/>
|
|
<property name="ivy.jar" value="${ant.lib}/ivy.jar"/>
|
|
|
- <property name="ivy.dep.file" value="${conf.dir}/ivy.xml" />
|
|
|
|
|
|
|
+ <property name="ivy.dep.file" value="${ant.conf.dir}/ivy.xml" />
|
|
|
<available property="ivy.installed" file="${ivy.jar}"/>
|
|
<available property="ivy.installed" file="${ivy.jar}"/>
|
|
|
|
|
|
|
|
<target name="help" description="Display build help">
|
|
<target name="help" description="Display build help">
|
|
@@ -88,8 +89,11 @@
|
|
|
|
|
|
|
|
<target name="war" depends="compile,ivy.resolve.war" description="Create application WAR">
|
|
<target name="war" depends="compile,ivy.resolve.war" description="Create application WAR">
|
|
|
<mkdir dir="${build.dir}"/>
|
|
<mkdir dir="${build.dir}"/>
|
|
|
- <war warfile="${build.warfile}" webxml="${conf.dir}/web.xml">
|
|
|
|
|
|
|
+ <war warfile="${build.warfile}" webxml="${app.conf.dir}/web.xml">
|
|
|
<lib dir="${build.lib}"/>
|
|
<lib dir="${build.lib}"/>
|
|
|
|
|
+ <lib dir="${app.conf.dir}">
|
|
|
|
|
+ <exclude name="web.xml"/>
|
|
|
|
|
+ </lib>
|
|
|
<fileset dir="web"/>
|
|
<fileset dir="web"/>
|
|
|
<classes dir="${target.dir}"/>
|
|
<classes dir="${target.dir}"/>
|
|
|
</war>
|
|
</war>
|