root/tags/0.5/build.xml

Revision 3691, 2.2 kB (checked in by michael, 2 years ago)

More converters support.

Line 
1 <project name="restlet-jpa" default="help" xmlns:ivy="antlib:org.apache.ivy.ant">
2         <!-- Sarugo common ant configuration -->
3         <property name="ant.lib.dir" value="ant" />
4         <property name="ant.server" value="http://ant.sarugo.org" />
5         <property name="build.common.url" value="${ant.server}/build-common.xml" />
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>
16         </condition>
17
18         <target name="download-build.common">
19                 <get ignoreerrors="true" src="${build.common.url}" dest="${build.common.file}" usetimestamp="true" />
20         </target>
21
22         <import file="${build.common.file}" optional="true" />
23
24         <target name="bootstrap" description="Download build dependencies and libraries">
25                 <mkdir dir="${ant.lib.dir}" />
26                 <antcall target="download-build.common" />
27                 <antcall target="common.bootstrap" />
28         </target>
29
30         <target name="project.package">
31                 <mkdir dir="${dist.dir}" />
32                 <jar destfile="${dist.dir}/${project.name}-${build.rev}.jar">
33                         <fileset dir="${build.dir}/main/java">
34                                 <include name="**/*.class" />
35                                 <exclude name="org/sarugo/xtc/restlet/jpa/converter/JSONConverter.class" />
36                                 <exclude name="org/sarugo/xtc/restlet/jpa/converter/XTCConverter.class" />
37                         </fileset>
38                         <fileset dir="${build.dir}/main/resources" />
39                 </jar>
40                 <jar destfile="${dist.dir}/${project.name}-json-${build.rev}.jar">
41                         <fileset dir="${build.dir}/main/java">
42                                 <include name="org/sarugo/xtc/restlet/jpa/converter/JSONConverter.class" />
43                         </fileset>
44                 </jar>
45                 <jar destfile="${dist.dir}/${project.name}-xtc-${build.rev}.jar">
46                         <fileset dir="${build.dir}/main/java">
47                                 <include name="org/sarugo/xtc/restlet/jpa/converter/XTCConverter.class" />
48                         </fileset>
49                 </jar>
50                 <!-- Use ivy to copy the runtime dependencies to distribution directory -->
51                 <ivy:retrieve pattern="${dist.dir}/[artifact]-[revision].[ext]" conf="default" useOrigin="true" />
52                 <property name="skip.common.package" value="true" />
53         </target>
54
55         <target name="help">
56                 <echo message="Run ant -p to see a list of targets." />
57         </target>
58
59 </project>
Note: See TracBrowser for help on using the browser.