/[protege]/owl/trunk/build.xml
ViewVC logotype

Annotation of /owl/trunk/build.xml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1213 - (hide annotations) (download) (as text)
Thu Feb 23 02:34:49 2006 UTC (7 years, 2 months ago) by tudorache
File MIME type: text/xml
File size: 6460 byte(s)
minor fixes
1 tredmond 1196 <?xml version="1.0"?>
2    
3     <!-- ================================================================ -->
4     <!-- Protege-OWL build file for ant (build.xml) -->
5     <!-- ================================================================ -->
6    
7     <!-- Send any questions, comments, fixes, etc. to "randy AT randykerber.com"
8     -->
9    
10     <project name="Protege-OWL" default="usage" basedir=".">
11    
12     <property environment="env"/>
13    
14     <property name = "src" value = "./src"/>
15     <property name = "classes" value = "./classes"/>
16     <property name = "lib" value = "./lib"/>
17     <property name = "dist" value = "./dist"/>
18     <property name = "jarfile" value = "${dist}/protege-owl.jar"/>
19     <property name = "etc" value = "./etc"/>
20 tudorache 1213 <property name = "owlplugin" value = "edu.stanford.smi.protegex.owl"/>
21     <property name = "plugin" value = "${dist}/${owlplugin}"/>
22     <property name = "debug" value = "off"/>
23     <property name = "source" value = "1.5"/>
24    
25    
26     <!-- =================================================================== -->
27     <!-- USAGE -->
28     <!-- Instructions for using the build file -->
29     <!-- =================================================================== -->
30     <target name = "usage" depends = "init">
31     <echo message = ""/>
32     <echo message = "protege owl build instructions"/>
33     <echo message = "-------------------------------------------------------------"/>
34     <echo message = ""/>
35     <echo message = " available targets are:"/>
36     <echo message = ""/>
37     <echo message = " usage --> provides help on using the build tool (default)"/>
38     <echo message = " clean --> cleans up all build related files and dirs"/>
39     <echo message = " compile --> compiles the source code"/>
40     <echo message = " plugin.dir --> copies files into the Protege plugin directory"/>
41     <echo message = " plugin.zip --> creates the protege-owl.zip file, containing the plugin dir"/>
42     <echo message = ""/>
43     <echo message = "-------------------------------------------------------------"/>
44     <echo message = ""/>
45     </target>
46    
47    
48     <!-- ================================================================ -->
49 tredmond 1196 <!-- Creates the timestamp -->
50     <!-- ================================================================ -->
51    
52     <target name="init.time" depends="">
53     <tstamp/>
54     </target>
55    
56     <target name="init" depends="init.time">
57     <path id="classpath.compile">
58     <fileset dir="${lib}"/>
59     </path>
60     <mkdir dir="${classes}"/>
61     <mkdir dir="${dist}"/>
62     </target>
63    
64     <!-- ================================================================ -->
65     <!-- Build the classpath -->
66     <!-- -->
67     <!-- ================================================================ -->
68    
69     <!-- ================================================================ -->
70     <!-- Clean up build directories -->
71     <!-- ================================================================ -->
72    
73     <target name="clean" depends="init"
74     description="clean up all build related files and dirs">
75     <delete dir="${classes}"/>
76     <delete dir="${dist}"/>
77     </target>
78    
79    
80     <!-- ================================================================ -->
81     <!-- Compile the source code -->
82     <!-- ================================================================ -->
83    
84 tudorache 1213 <target name="compile" depends="init" description="compile the Java files" >
85     <javac srcdir="${src}" destdir="${classes}"
86     deprecation = "off"
87     source = "${source}">
88 tredmond 1196 <classpath refid="classpath.compile"/>
89     </javac>
90     <copy todir="${classes}/edu/stanford/smi/protegex/owl/jena"
91     file="${src}/edu/stanford/smi/protegex/owl/jena/OWL.pprj"/>
92     <copy todir="${classes}/edu/stanford/smi/protegex/owl/jena"
93     file="${src}/edu/stanford/smi/protegex/owl/jena/OWL-min.pprj"/>
94     <copy todir="${classes}/edu/stanford/smi/protegex/owl/database"
95     file="${src}/edu/stanford/smi/protegex/owl/database/OWL.pprj"/>
96     </target>
97    
98     <!-- ================================================================ -->
99     <!-- create the protege-owl.jar file -->
100     <!-- ================================================================ -->
101    
102     <target name="jar" depends="compile" description="Create the protege-owl.jar file">
103     <jar jarfile="${jarfile}"
104     manifest="${src}/META-INF/MANIFEST.MF">
105     <fileset dir="${classes}"/>
106     <fileset dir="${src}/">
107     <include name="**/*.gif"/>
108     </fileset>
109     <fileset dir="${src}/">
110     <include name="**/*.png"/>
111     </fileset>
112     <fileset dir="${src}/">
113     <include name="**/*.db"/>
114     </fileset>
115     </jar>
116     </target>
117    
118     <!-- ================================================================ -->
119     <!-- Copy files into the Protege plugin directory -->
120     <!-- ================================================================ -->
121    
122     <target name="plugin.dir" depends="jar"
123     description="Make the directory that becomes a Protege plugin dir">
124     <delete dir="${plugin}"/>
125     <mkdir dir="${plugin}"/>
126    
127     <copy todir="${plugin}">
128 tudorache 1213 <fileset file="${jarfile}"/>
129 tredmond 1196 <fileset dir="${lib}">
130     <exclude name="looks.jar"/>
131     <exclude name="protege*.jar"/>
132     </fileset>
133     <fileset dir="${etc}">
134     <include name="plugin.properties"/>
135     <include name="ont-policy.rdf"/>
136     <include name="OWLProfiles.owl"/>
137     <include name="protege.owl"/>
138     <include name="swrl.owl"/>
139     <include name="swrlb.owl"/>
140     <exclude name="MANIFEST.MF"/>
141     <exclude name="OWL.pprj"/>
142     </fileset>
143     </copy>
144     </target>
145    
146    
147     <target name="plugin.zip"
148     depends="plugin.dir"
149     description="Create the protege-owl.zip file, containing the plugin dir">
150     <zip destfile="${dist}/protege-owl-plugin.zip">
151     <fileset dir="${dist}">
152 tudorache 1213 <include name="${owlplugin}/**"/>
153 tredmond 1196 </fileset>
154     </zip>
155     </target>
156    
157     </project>

protege-admin@lists.stanford.edu
ViewVC Help
Powered by ViewVC 1.1.18