ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/owl/trunk/build.xml
Revision: 1441
Committed: Thu Aug 18 08:09:04 2011 UTC (9 years, 2 months ago) by jmduarteg
File size: 2182 byte(s)
Log Message:
Added manifest info to build.xml script. Removed obsolete shell build script
Line User Rev File contents
1 jmduarteg 1439 <?xml version="1.0" encoding="UTF-8"?>
2     <!-- ======================================================================
3     owl
4    
5     An ant script to build the owl package. The default target will clean and
6     create a build dir with a jar subdir containing a owl.jar file (with all
7     dependent jars packed in it).
8     The owl.tests packages are excluded
9    
10     duarte_j
11     ====================================================================== -->
12     <project name="owl" default="default">
13     <description>
14     description
15     </description>
16    
17     <property name="src.dir" value="src"/>
18     <property name="lib.dir" value="jars"/>
19     <property name="build.dir" value="build"/>
20     <property name="bin.dir" value="${build.dir}/bin"/>
21     <property name="jar.dir" value="${build.dir}/jar"/>
22    
23 jmduarteg 1441 <property name="version" value="1.2.0"/>
24     <property name="title" value="Common java libraries"/>
25     <property name="vendor" value="Otto Warburg Laboratory, MPI for Molecular Genetics, Berlin"/>
26    
27 jmduarteg 1439 <path id="classpath">
28     <fileset dir="${lib.dir}" includes="**/*.jar">
29     </fileset>
30     </path>
31    
32     <target name="default" depends="clean,jar">
33    
34     </target>
35    
36     <target name="clean">
37     <delete dir="${build.dir}"></delete>
38     </target>
39    
40     <target name="compile">
41     <mkdir dir="${bin.dir}"/>
42     <javac srcdir="${src.dir}"
43     destdir="${bin.dir}"
44     classpathref="classpath"
45     excludes="**/owl/tests/**"
46     />
47     <!-- resources -->
48     <copy todir="${bin.dir}">
49     <fileset dir="${src.dir}" excludes="**/*.java,**/owl/tests/**"></fileset>
50     </copy>
51     </target>
52    
53     <target name="jar" depends="compile">
54     <mkdir dir="${jar.dir}"/>
55     <jar destfile="${jar.dir}/${ant.project.name}.jar" basedir="${bin.dir}">
56     <zipgroupfileset dir="${lib.dir}" includes="**/*.jar">
57     </zipgroupfileset>
58    
59 jmduarteg 1441 <manifest>
60     <section name="${ant.project.name}"></section>
61     <attribute name="Specification-Title" value="${title}"/>
62     <attribute name="Specification-Vendor" value="${vendor}"/>
63     <attribute name="Specification-Version" value="${version}"/>
64     </manifest>
65 jmduarteg 1439 </jar>
66     </target>
67    
68    
69     </project>

Properties

Name Value
svn:mime-type text/plain