ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/owl/tags/owl-for-eppic-2.0.3/build.xml
Revision: 1548
Committed: Tue Mar 20 10:18:01 2012 UTC (8 years ago) by jmduarteg
Original Path: trunk/build.xml
File size: 4233 byte(s)
Log Message:
New target jar-core-only (now default) which will build the default and core packages only and pack all jars except for the uniprot.jar
Line User Rev File contents
1 jmduarteg 1439 <?xml version="1.0" encoding="UTF-8"?>
2     <!-- ======================================================================
3     owl
4    
5 jmduarteg 1548 An ant script to build the owl package.
6     Targets:
7 jmduarteg 1439
8 jmduarteg 1548 - default -> core-only
9    
10     - core-only: builds only owl.core and packs necessary jars only.
11     The uniprot.jar is not included as it changes often with UniProt version
12    
13     - all: builds everything except for owl.tests and packs all jars
14    
15     The build is output to a build/jar
16     Final owl.jar contains owl code with all dependent jars packed in it
17    
18 jmduarteg 1439 duarte_j
19     ====================================================================== -->
20     <project name="owl" default="default">
21     <description>
22     description
23     </description>
24    
25     <property name="src.dir" value="src"/>
26     <property name="lib.dir" value="jars"/>
27     <property name="build.dir" value="build"/>
28     <property name="bin.dir" value="${build.dir}/bin"/>
29     <property name="jar.dir" value="${build.dir}/jar"/>
30    
31 jmduarteg 1441 <property name="version" value="1.2.0"/>
32     <property name="title" value="Common java libraries"/>
33     <property name="vendor" value="Otto Warburg Laboratory, MPI for Molecular Genetics, Berlin"/>
34    
35 jmduarteg 1439 <path id="classpath">
36 jmduarteg 1548 <fileset dir="${lib.dir}"
37     includes="**/*.jar"
38     excludes="ws-commons-util-1.0.2.jar,xmlrpc-client-3.1.jar,xmlrpc-common-3.1.jar">
39 jmduarteg 1439 </fileset>
40     </path>
41    
42 jmduarteg 1548 <path id="classpath-core-only">
43     <fileset dir="${lib.dir}"
44     includes="**/*.jar"
45     excludes="ws-commons-util-1.0.2.jar,xmlrpc-client-3.1.jar,xmlrpc-common-3.1.jar,batik/**">
46     </fileset>
47     </path>
48 jmduarteg 1439
49 jmduarteg 1548 <!--Target all, to compile everything and include all jars
50     owl.tests not included-->
51     <target name="all" depends="clean,jar"/>
52    
53     <!--Target core-only, for core packages only-->
54     <target name="core-only" depends="clean,jar-core-only"/>
55    
56     <!--Target default goes to core-only -->
57     <target name="default" depends="core-only"/>
58    
59    
60 jmduarteg 1439 <target name="clean">
61     <delete dir="${build.dir}"></delete>
62     </target>
63 jmduarteg 1548
64 jmduarteg 1439 <target name="compile">
65     <mkdir dir="${bin.dir}"/>
66     <javac srcdir="${src.dir}"
67     destdir="${bin.dir}"
68     classpathref="classpath"
69 jmduarteg 1548 excludes="**/owl/tests/**,testPyMol.java,**/owl/core/util/PymolServerOutputStream.java"/>
70    
71 jmduarteg 1439 <!-- resources -->
72     <copy todir="${bin.dir}">
73     <fileset dir="${src.dir}" excludes="**/*.java,**/owl/tests/**"></fileset>
74     </copy>
75     </target>
76    
77 jmduarteg 1548 <target name="compile-core-only">
78     <mkdir dir="${bin.dir}"/>
79     <javac srcdir="${src.dir}"
80     destdir="${bin.dir}"
81     classpathref="classpath"
82     includes="**/owl/core/**/*.java"
83     excludes="testPyMol.java,**/owl/core/util/PymolServerOutputStream.java"
84     />
85    
86     <!-- resources -->
87     <copy todir="${bin.dir}">
88     <fileset dir="${src.dir}" includes="**/owl/core/**" excludes="**/*.java"></fileset>
89     </copy>
90     </target>
91    
92 jmduarteg 1439 <target name="jar" depends="compile">
93     <mkdir dir="${jar.dir}"/>
94     <jar destfile="${jar.dir}/${ant.project.name}.jar" basedir="${bin.dir}">
95 jmduarteg 1548 <zipgroupfileset dir="${lib.dir}"
96     includes="**/*.jar"
97     excludes="ws-commons-util-1.0.2.jar,xmlrpc-client-3.1.jar,xmlrpc-common-3.1.jar">
98 jmduarteg 1439 </zipgroupfileset>
99    
100 jmduarteg 1441 <manifest>
101     <section name="${ant.project.name}"></section>
102     <attribute name="Specification-Title" value="${title}"/>
103     <attribute name="Specification-Vendor" value="${vendor}"/>
104     <attribute name="Specification-Version" value="${version}"/>
105     </manifest>
106 jmduarteg 1439 </jar>
107     </target>
108    
109 jmduarteg 1548 <target name="jar-core-only" depends="compile-core-only">
110     <mkdir dir="${jar.dir}"/>
111     <jar destfile="${jar.dir}/${ant.project.name}.jar" basedir="${bin.dir}">
112     <zipgroupfileset dir="${lib.dir}"
113     includes="**/*.jar"
114     excludes="ws-commons-util-1.0.2.jar,xmlrpc-client-3.1.jar,xmlrpc-common-3.1.jar,batik/**,uniprot/uniprotjapi.jar">
115     </zipgroupfileset>
116    
117     <manifest>
118     <section name="${ant.project.name}"></section>
119     <attribute name="Specification-Title" value="${title}"/>
120     <attribute name="Specification-Vendor" value="${vendor}"/>
121     <attribute name="Specification-Version" value="${version}"/>
122     </manifest>
123     </jar>
124     </target>
125    
126 jmduarteg 1439 </project>

Properties

Name Value
svn:mime-type text/plain