-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
117 lines (97 loc) · 3.02 KB
/
build.xml
File metadata and controls
117 lines (97 loc) · 3.02 KB
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<project name="SynTopiary" default="dist" basedir=".">
<description>
simple example build file
</description>
<!-- set global properties for this build -->
<property name="src" location="src"/>
<property name="build" location="build"/>
<property name="dist" location="dist"/>
<property name="dist_prog" location="dist/syntopiary"/>
<property name="dist_scripts" location="dist/scripts"/>
<property name="deploy" location="deploy"/>
<property name="deploy_prog" location="deploy/syntopiary"/>
<property name="deploy_scripts" location="deploy/scripts"/>
<path id="master-classpath">
<fileset dir="lib">
<include name="*.jar"/>
</fileset>
<pathelement path="${build.dir}"/>
</path>
<target name="init">
<!-- Create the time stamp -->
<tstamp/>
<!-- Create the build directory structure used by compile -->
<mkdir dir="${build}"/>
</target>
<target name="compile" depends="init"
description="compile the source " >
<!-- Compile the java code from ${src} into ${build} -->
<javac
srcdir="${src}"
excludes="**/Test*.java"
destdir="${build}"
>
<!--
<fileset dir="${src}"
excludes="**/Test*.java"
/>
<src path="${src}" />
<exclude name="${src}/org/kirill/syntopiary/Test*.java"/>
-->
<classpath refid="master-classpath"/>
</javac>
<!--
<fileset dir="${src}"
includes="**/images/*"
excludes="**/*.gif"
/>
-->
<copy file="${src}/org/kirill/syntopiary/syntop.bxml" todir="${build}/org/kirill/syntopiary"/>
<copy file="${src}/org/kirill/syntopiary/syntop.bxml" todir="${build}"/>
</target>
<target name="dist" depends="compile"
description="generate the distribution" >
<!-- Create the distribution directory -->
<mkdir dir="${dist}"/>
<mkdir dir="${dist_prog}"/>
<mkdir dir="${dist_scripts}"/>
<copy todir="${dist_prog}">
<fileset dir="${deploy_prog}">
</fileset>
</copy>
<copy todir="${dist_scripts}">
<fileset dir="${deploy_scripts}">
</fileset>
</copy>
<!-- Build a jar of all external jars -->
<jar jarfile="${dist_prog}/external-libs.jar">
<zipgroupfileset dir="lib/">
<include name="**/*.jar"/>
</zipgroupfileset>
</jar>
<sleep seconds="1"/>
<!-- Build a jar of everything -->
<!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
<jar
jarfile="${dist_prog}/syntopiary.jar"
basedir="${build}"
>
<zipfileset src="${dist_prog}/external-libs.jar">
<exclude name="*"/>
</zipfileset>
<manifest>
<attribute name="Main-Class" value="org.kirill.syntopiary.MainApp"/>
</manifest>
</jar>
<loadfile property="jarsignpassword" srcFile=".jarsign"/>
<signjar jar="${dist_prog}/syntopiary.jar" alias="kirill" storepass="${jarsignpassword}" keystore="${basedir}/.keystore"/>
</target>
<target name="clean"
description="clean up" >
<!-- Delete the ${build} and ${dist} directory trees -->
<delete dir="${build}"/>
<delete dir="${dist_prog}"/>
<delete dir="${dist_scripts}"/>
<delete dir="${dist}"/>
</target>
</project>