Changeset 2890 for trunk/build.xml
- Timestamp:
- 13/07/07 22:46:50 (5 years ago)
- Files:
-
- trunk/build.xml (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/build.xml
r2858 r2890 1 <project name="xtc" default="help" >1 <project name="xtc" default="help" xmlns:ivy="antlib:org.apache.ivy.ant"> 2 2 <!-- Sarugo common ant configuration --> 3 3 <property name="ant.lib.dir" value="ant" /> … … 5 5 <property name="build.common.url" value="${ant.server}/build-common.xml" /> 6 6 <property name="build.common.file" value="${ant.lib.dir}/build-common.xml" /> 7 <condition property="download-build.common.required"> 8 <not> 9 <available file="${build.common.file}" type="file" /> 10 </not> 11 </condition> 12 <condition property="bootstrap.required"> 13 <not> 14 <available file="${ant.lib.dir}" type="dir" /> 15 </not> 7 <condition property="build.common.available"> 8 <available file="${build.common.file}" type="file" /> 16 9 </condition> 17 10 … … 19 12 <get src="${build.common.url}" dest="${build.common.file}" usetimestamp="true" /> 20 13 </target> 21 22 <import file="${build.common.file}" optional="true" />23 14 15 <import file="${build.common.file}" optional="true" /> 16 24 17 <target name="bootstrap" description="Download build dependencies and libraries"> 25 18 <mkdir dir="${ant.lib.dir}" /> 26 <antcall target="download-build.common"/> 27 <antcall target="common.bootstrap"/> 19 <antcall target="download-build.common" /> 20 <antcall target="common.bootstrap" /> 21 </target> 22 23 <target name="project.package"> 24 <mkdir dir="${dist.dir}" /> 25 <jar destfile="${dist.dir}/${project.name}-${project.rev}.jar"> 26 <fileset dir="${build.dir}/main/java"> 27 <include name="**/*.class" /> 28 <exclude name="org/sarugo/xtc/restlet/**/*.class" /> 29 </fileset> 30 <fileset dir="${build.dir}/main/resources" /> 31 </jar> 32 <jar destfile="${dist.dir}/${project.name}-restlet-${project.rev}.jar"> 33 <fileset dir="${build.dir}/main/java"> 34 <include name="org/sarugo/xtc/restlet/**/*.class" /> 35 </fileset> 36 </jar> 37 <!-- Use ivy to copy the runtime dependencies to distribution directory --> 38 <ivy:retrieve pattern="${dist.dir}/[artifact]-[revision].[ext]" conf="default" useOrigin="true" /> 39 <property name="skip.common.package" value="true" /> 28 40 </target> 29 41
