blob: 74b07113d3cbe548c3f59bed48d9419ea650a3d9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." default="jar" name="cristal-dev">
<!--===================================================================-->
<!-- Global properties -->
<!-- NOTE: Ant will automatically will add all jar files to the -->
<!-- classpath from the $(ANT_HOME)/lib directory. In cristal2 -->
<!-- setup this directories are equal to the cristal2/lib -->
<!-- directory which eliminates thecalculation of classpath for -->
<!-- the most of the 'javac' tasks -->
<!--===================================================================-->
<property name="name" value="cristal-dev"/>
<property name="version" value="1.0"/>
<!--===================================================================-->
<!-- Directories -->
<!--===================================================================-->
<property name="src.dir" value="src"/>
<property name="res.dir" value="ch/cern/cristaldev/resources"/>
<property name="build.dir" value="bin"/>
<property name="resource.dir" value="resources"/>
<!--===================================================================-->
<!-- Global javacc attributes -->
<!--===================================================================-->
<property name="debug" value="true"/>
<property name="deprecation" value="false"/>
<property name="optimize" value="true"/>
<property name="junit.fork" value="false"/>
<!-- ==================================================================-->
<!-- The pattern for the support files that need -->
<!-- to be copied when compiling classes -->
<!-- ==================================================================-->
<patternset id="resource.files">
<include name="boot/**/*.txt"/>
<include name="boot/**/*.xml"/>
<include name="boot/**/*.xsd"/>
<include name="images/**/*.gif"/>
<include name="images/**/*.jpg"/>
<include name="images/**/*.png"/>
</patternset>
<!--===================================================================-->
<!-- Prepare the build (takes the timestamp see: Ant1.3 docs) -->
<!--===================================================================-->
<target name="prepare">
<tstamp/>
</target>
<target name="clean" description="cleans up the build directories">
<delete dir="${build.dir}"/>
</target>
<target name="rebuild" depends="clean, jar" description="deletes and recompiles the whole of cristal2"/>
<target name="jar" depends="resources" description="make jar">
<jar basedir="${build.dir}" includes="**" jarfile="cristaldev.jar"/>
</target>
<!--===================================================================-->
<!-- Assembles cristal2 resources -->
<!--===================================================================-->
<target name="resources" depends="prepare" description="Moves all resources to the build directory for the Resource class to read">
<mkdir dir="${build.dir}/${res.dir}"/>
<copy todir="${build.dir}/${res.dir}">
<fileset dir="${resource.dir}">
<patternset refid="resource.files"/>
</fileset>
</copy>
</target>
</project>
|