-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjpa-framework.xml
73 lines (63 loc) · 2.47 KB
/
jpa-framework.xml
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
67
68
69
70
71
72
<project name="JPA-FRAMEWORK" default="dist" basedir=".">
<description>
simple example build file
</description>
<path id="libs">
<fileset dir="lib" includes="*.jar"/>
</path>
<!-- set global properties for this build -->
<property name="debuglevel" value="source,lines,vars"/>
<property name="target" value="1.6"/>
<property name="source" value="1.6"/>
<!-- where the source files are -->
<property name="src" location="src" />
<!-- where the compiled classes go -->
<property name="build" location=".build" />
<!-- where to place the finished jar file -->
<property name="program" location=".program" />
<property name="dist" location="dist" />
<!-- ========== Dist Target ===================================
The dist target compiles all the source code and creates
a jar file for distribution.
-->
<target name="dist" depends="clean, compile" description="generate the distribution">
<!-- Create the distribution directory -->
<jar jarfile="${dist}/jpa-framework.jar" basedir="${build}"/>
</target>
<!-- ========== Init Target ====================================
This target initializes the build by creating a time stamp
for use in the jar file name and creating the directory
to hold the compiled classes.
-->
<target name="-init">
<!-- Create the time stamp -->
<tstamp />
<!-- Create the build directory structure used by compile -->
<mkdir dir="${build}" />
<mkdir dir="${dist}" />
<mkdir dir="${program}" />
<copy includeemptydirs="false" todir="${build}">
<fileset dir="src/java" excludes="**/*.launch, **/*.java" />
</copy>
</target>
<!-- ========== Compile Target =================================
The compile target compiles all files in the source directory
into the build directory.
-->
<target name="compile" depends="-init" description="compile the source ">
<javac debug="true" debuglevel="${debuglevel}" destdir="${build}" source="${source}" target="${target}">
<src path="src/java"/>
<classpath refid="libs"/>
</javac>
</target>
<!-- ========== Clean Target ====================================
The clean target deletes all files from the build directory
and the dist directory.
-->
<target name="clean" description="clean up">
<!-- Delete the ${build} and ${dist} directory trees -->
<delete dir="${build}" />
<delete dir="${dist}" />
<delete dir="${program}" />
</target>
</project>