ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/owl/trunk/build.xml
Revision: 1439
Committed: Wed Aug 17 12:36:42 2011 UTC (9 years, 3 months ago) by jmduarteg
File size: 1718 byte(s)
Log Message:
An ant script for owl!
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     <path id="classpath">
24     <fileset dir="${lib.dir}" includes="**/*.jar">
25     </fileset>
26     </path>
27    
28     <target name="default" depends="clean,jar">
29    
30     </target>
31    
32     <target name="clean">
33     <delete dir="${build.dir}"></delete>
34     </target>
35    
36     <target name="compile">
37     <mkdir dir="${bin.dir}"/>
38     <javac srcdir="${src.dir}"
39     destdir="${bin.dir}"
40     classpathref="classpath"
41     excludes="**/owl/tests/**"
42     />
43     <!-- resources -->
44     <copy todir="${bin.dir}">
45     <fileset dir="${src.dir}" excludes="**/*.java,**/owl/tests/**"></fileset>
46     </copy>
47     </target>
48    
49     <target name="jar" depends="compile">
50     <mkdir dir="${jar.dir}"/>
51     <jar destfile="${jar.dir}/${ant.project.name}.jar" basedir="${bin.dir}">
52     <zipgroupfileset dir="${lib.dir}" includes="**/*.jar">
53     </zipgroupfileset>
54    
55     </jar>
56     </target>
57    
58    
59     </project>

Properties

Name Value
svn:mime-type text/plain