ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/owl/tags/owl-for-eppic-2.0.3/build.xml
Revision: 1644
Committed: Mon Jun 17 14:24:45 2013 UTC (6 years, 9 months ago) by kumaran
Original Path: trunk/build.xml
File size: 4384 byte(s)
Log Message:
1)Javaversion variable is added in build.xml to change the version easily. 
2)Pymol exited with error status 139 due to very long selection string written in the form of every residue(3+4+5+8+9+10). It is fixed by writing in the form of (3-5+8-10)
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 kumaran 1644 <property name= "javaversion" value="1.6"/>
25 jmduarteg 1439 <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 kumaran 1644 source="${javaversion}"
68     target="${javaversion}"
69 jmduarteg 1439 destdir="${bin.dir}"
70     classpathref="classpath"
71 jmduarteg 1548 excludes="**/owl/tests/**,testPyMol.java,**/owl/core/util/PymolServerOutputStream.java"/>
72    
73 jmduarteg 1439 <!-- resources -->
74     <copy todir="${bin.dir}">
75     <fileset dir="${src.dir}" excludes="**/*.java,**/owl/tests/**"></fileset>
76     </copy>
77     </target>
78    
79 jmduarteg 1548 <target name="compile-core-only">
80     <mkdir dir="${bin.dir}"/>
81     <javac srcdir="${src.dir}"
82 kumaran 1644 source="${javaversion}"
83     target="${javaversion}"
84 jmduarteg 1548 destdir="${bin.dir}"
85     classpathref="classpath"
86     includes="**/owl/core/**/*.java"
87     excludes="testPyMol.java,**/owl/core/util/PymolServerOutputStream.java"
88     />
89    
90     <!-- resources -->
91     <copy todir="${bin.dir}">
92     <fileset dir="${src.dir}" includes="**/owl/core/**" excludes="**/*.java"></fileset>
93     </copy>
94     </target>
95    
96 jmduarteg 1439 <target name="jar" depends="compile">
97     <mkdir dir="${jar.dir}"/>
98     <jar destfile="${jar.dir}/${ant.project.name}.jar" basedir="${bin.dir}">
99 jmduarteg 1548 <zipgroupfileset dir="${lib.dir}"
100     includes="**/*.jar"
101     excludes="ws-commons-util-1.0.2.jar,xmlrpc-client-3.1.jar,xmlrpc-common-3.1.jar">
102 jmduarteg 1439 </zipgroupfileset>
103    
104 jmduarteg 1441 <manifest>
105     <section name="${ant.project.name}"></section>
106     <attribute name="Specification-Title" value="${title}"/>
107     <attribute name="Specification-Vendor" value="${vendor}"/>
108     <attribute name="Specification-Version" value="${version}"/>
109     </manifest>
110 jmduarteg 1439 </jar>
111     </target>
112    
113 jmduarteg 1548 <target name="jar-core-only" depends="compile-core-only">
114     <mkdir dir="${jar.dir}"/>
115     <jar destfile="${jar.dir}/${ant.project.name}.jar" basedir="${bin.dir}">
116     <zipgroupfileset dir="${lib.dir}"
117     includes="**/*.jar"
118     excludes="ws-commons-util-1.0.2.jar,xmlrpc-client-3.1.jar,xmlrpc-common-3.1.jar,batik/**,uniprot/uniprotjapi.jar">
119     </zipgroupfileset>
120    
121     <manifest>
122     <section name="${ant.project.name}"></section>
123     <attribute name="Specification-Title" value="${title}"/>
124     <attribute name="Specification-Vendor" value="${vendor}"/>
125     <attribute name="Specification-Version" value="${version}"/>
126     </manifest>
127     </jar>
128     </target>
129    
130 jmduarteg 1439 </project>

Properties

Name Value
svn:mime-type text/plain