-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.xml
92 lines (73 loc) · 2.24 KB
/
build.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<!-- Build file for the project. -->
<project basedir="." default="run" name="janela">
<target name="properties">
<property name="build" value="build" />
<property name="dist" value="dist" />
<property name="src" value="src" />
<property name="projName" value="janela" />
<xmlproperty file="${user.home}/web.xml" />
<tstamp>
<format property='now' pattern='yy.MM.dd'/>
</tstamp>
</target>
<target
name="clean"
depends="properties"
description="Clean all build artifacts" >
<delete dir="${build}" />
</target>
<target
name="compile"
depends="properties, clean"
description="Compile the project" >
<mkdir dir='${build}/share' />
<javac
srcdir='${src}/java'
destdir='${build}/share'>
</javac>
</target>
<target
name="build"
depends="properties, compile"
description="Build the project" >
<mkdir dir='${build}/dist/janela' />
<jar destfile='${build}/dist/janela/${projName}.jar'>
<fileset dir='${build}/share'>
<include name="**/*.class" />
</fileset>
<fileset dir='${src}/java'>
<include name="**/*.xsd" />
</fileset>
<manifest>
<attribute name='main-class' value='org.pscode.tool.janela.JaNeLA' />
<section name='org/pscode/tool/janela/'>
<attribute name='Implementation-Title' value='JaNeLA'/>
<attribute name='Implementation-Vendor' value='Andrew Thompson'/>
<attribute name='Implementation-Version' value='${now}'/>
</section>
</manifest>
</jar>
<copy todir='${build}/dist/janela'>
<fileset dir='${src}/conf'>
<include name='*.html' />
<include name='*.txt' />
</fileset>
</copy>
</target>
<target
name="run"
depends="build"
description="Run the project" >
<java jar='${build}/dist/janela/${projName}.jar' fork='true'>
</java>
</target>
<target name="web-copy"
depends="build"
description="copies the completed project to the web source directory">
<copy todir="${web.path}${web.pathsource}">
<fileset dir="${build}/dist" >
<include name="**/*.*" />
</fileset>
</copy>
</target>
</project>