ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/owl/trunk/build.xml
Revision: 1548
Committed: Tue Mar 20 10:18:01 2012 UTC (7 years, 6 months ago) by jmduarteg
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 File contents
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- ======================================================================
3 owl
4
5 An ant script to build the owl package.
6 Targets:
7
8 - 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 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 <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 <path id="classpath">
36 <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 </fileset>
40 </path>
41
42 <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
49 <!--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 <target name="clean">
61 <delete dir="${build.dir}"></delete>
62 </target>
63
64 <target name="compile">
65 <mkdir dir="${bin.dir}"/>
66 <javac srcdir="${src.dir}"
67 destdir="${bin.dir}"
68 classpathref="classpath"
69 excludes="**/owl/tests/**,testPyMol.java,**/owl/core/util/PymolServerOutputStream.java"/>
70
71 <!-- resources -->
72 <copy todir="${bin.dir}">
73 <fileset dir="${src.dir}" excludes="**/*.java,**/owl/tests/**"></fileset>
74 </copy>
75 </target>
76
77 <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 <target name="jar" depends="compile">
93 <mkdir dir="${jar.dir}"/>
94 <jar destfile="${jar.dir}/${ant.project.name}.jar" basedir="${bin.dir}">
95 <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 </zipgroupfileset>
99
100 <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 </jar>
107 </target>
108
109 <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 </project>

Properties

Name Value
svn:mime-type text/plain