forked from mpue/blackboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
154 lines (128 loc) · 4.42 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
<project name="BlackBoard" default="dist" basedir=".">
<property file="build.properties" />
<description>
BlackBoard 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="resources" location="resources" />
<target name="init">
<!-- Create the time stamp -->
<tstamp />
<!-- Create the build directory structure used by compile -->
<mkdir dir="${build}" />
<mkdir dir="${build}/jar" />
</target>
<target name="compile" depends="init" description="compile the source">
<!-- Compile the java code from ${src} into ${build} -->
<javac srcdir="${src}" destdir="${build}/jar" debug="true">
<classpath>
<pathelement path="${classpath}" />
<fileset dir="./lib">
<include name="**/*.jar" />
</fileset>
</classpath>
</javac>
</target>
<target name="dist" depends="compile" description="generate the distribution">
<delete file="${dist}/lib/BlackBoard.jar" />
<delete file="MANIFEST.MF" />
<manifest file="MANIFEST.MF">
<attribute name="Built-By" value="${user.name}" />
<attribute name="Main-Class" value="${mainclass}" />
<attribute name="Class-Path" value="lib/commons-beanutils-1.8.3.jar
lib/beansbinding-1.2.1.jar
lib/commons-collections-3.2.jar
lib/commons-io-1.3.1.jar
lib/commons-lang-2.3.jar
lib/commons-logging-1.1.jar
lib/forms-1.2.1.jar
lib/log4j-1.2.14.jar
lib/looks-2.3.0.jar
lib/autocomplete.jar
lib/jcommon.1.0.17.jar
lib/jfreechart-1.0.14.jar
lib/jcas.jar
lib/javolution-core-java-6.0.0-20120923.104917-4.jar
lib/rsyntaxtextarea.jar
lib/org.springframework.asm-3.0.5.RELEASE.jar
lib/org.springframework.beans-3.0.5.RELEASE.jar
lib/org.springframework.context-3.0.5.RELEASE.jar
lib/org.springframework.context.support-3.0.5.RELEASE.jar
lib/org.springframework.core-3.0.5.RELEASE.jar
lib/org.springframework.expression-3.0.5.RELEASE.jar
lib/swing-worker-1.2.jar
lib/jbusycomponent-1.1.jar
lib/jxlayer.jar
lib/swingx-1.6.1.jar
lib/swingx-beaninfo-1.6.1.jar ." />
</manifest>
<delete dir="${dist}/lib">
</delete>
<delete dir="${dist}">
</delete>
<copy todir="${build}/jar">
<fileset dir="${src}">
<include name="**/*.properties" />
</fileset>
<fileset dir="resources">
<include name="**/*.properties" />
<include name="**/*.html" />
<include name="**/*.xml" />
</fileset>
</copy>
<copy todir="${build}">
<fileset dir="resources">
<exclude name="**/*.java" />
<exclude name="**/*.properties" />
<exclude name="**/*.html" />
<exclude name="**/*.xml" />
</fileset>
<fileset dir=".">
<include name="**/*.number" />
</fileset>
</copy>
<!-- Create the distribution directory -->
<mkdir dir="${dist}/lib" />
<!-- Put everything in ${build} into the jar file -->
<jar jarfile="${dist}/lib/BlackBoard.jar" manifest="MANIFEST.MF" basedir="${build}/jar" />
<copy todir="./dist/lib">
<fileset dir=".">
<include name="**/*.jar" />
</fileset>
</copy>
<delete dir="${build}/jar">
</delete>
<delete dir="${build}/org">
</delete>
<delete dir="${build}/net">
</delete>
<delete dir="${dist}/lib/dist">
</delete>
<copy todir="${dist}/lib">
<fileset dir="${build}">
<exclude name="**/*.java" />
</fileset>
</copy>
<copydir src="./parts" dest="${dist}/lib/parts"/>
<copydir src="./symbols" dest="${dist}/lib/symbols"/>
<copydir src="./spice" dest="${dist}/lib/spice"/>
<copydir src="./models" dest="${dist}/lib/models"/>
<copydir src="./samples" dest="${dist}/lib/samples"/>
<copydir src="./simulators" dest="${dist}/lib/simulators"/>
<copydir src="./regression" dest="${dist}/lib/regression"/>
<copydir src="./start" dest="${dist}/lib/"/>
<buildnumber file="build.number"/>
<property file="build.number"/>
<zip destfile="${dist}/blackboard-bin-${version}.${build.number}.zip">
<zipfileset dir="${dist}/lib/" prefix="blackboard-bin-${version}.${build.number}" />
</zip>
</target>
<target name="clean" description="clean up">
<!-- Delete the ${build} and ${dist} directory trees -->
<delete dir="${build}" />
<delete dir="${dist}" />
</target>
</project>