-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
72 lines (60 loc) · 2.33 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
<project name="Gemstone Build Script" basedir="." default="build">
<!-- Load properties -->
<property file="build.properties"/>
<path id="class.path">
<!-- <fileset dir="${lib.dir}" includes="*.jar"/> -->
<fileset dir="lib" includes="*.jar" excludes="**-sources**,**-javadoc**"/>
</path>
<!-- Set variables for build directories -->
<property name="build.dir" value="build"/>
<property name="src.dir" value="src"/>
<property name="bin.dir" value="bin"/>
<property name="version" value="1.0501" />
<!-- set variable for external lib directory
(typically set up as external project within project) -->
<property name="lib.dir" value="lib"/>
<target name="-init" depends="clean">
<echo>Creating temporary folders...</echo>
<mkdir dir="${build.dir}"/>
</target>
<target name="clean" description="Clean up">
<echo>Cleaning up...</echo>
<delete>
<fileset dir="${build.dir}">
<include name="**/*.class"/>
</fileset>
</delete>
</target>
<target name="build" depends="-init" description="Build project">
<echo>Copying files to build folder...</echo>
<javac destdir="${build.dir}" source="1.8" target="1.8" debug="true"
deprecation="false" optimize="false" failonerror="true">
<src path="${src.dir}"/>
<classpath refid="class.path"/>
</javac>
</target>
<target name="build-jar" depends="build">
<jar destfile="${bin.dir}/lib/Gemstone.jar"
basedir="${build.dir}">
<manifest>
<attribute name="Built-By" value="${user.name}" />
<attribute name="Specification-Title" value="Gemstone" />
<attribute name="Specification-Version" value="${version} ${TODAY}" />
<attribute name="Specification-Vendor" value="Gemstone" />
<attribute name="Implementation-Title" value="Gemstone" />
<attribute name="Implementation-Version" value="${version}" />
<attribute name="Implementation-Vendor" value="Gemstone" />
</manifest>
</jar>
</target>
<target name = "generate-javadoc">
<javadoc packagenames="gemstone.*" sourcepath="${src.dir}"
destdir = "doc" version = "true" windowtitle = "Gemstone">
<doctitle><![CDATA[= Gemstone =]]></doctitle>
<bottom>
<![CDATA[Copyright 2015. All Rights Reserved.]]>
</bottom>
</javadoc>
<echo message = "java doc has been generated!" />
</target>
</project>