-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
125 lines (106 loc) · 4.52 KB
/
build.xml
File metadata and controls
125 lines (106 loc) · 4.52 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
117
118
119
120
121
122
123
124
125
<project name="graphdb-bench" default="run" basedir=".">
<description>
</description>
<property file="build.properties" />
<property name="build" location="bin" />
<property name="dist" location="out" />
<property name="doc" location="doc" />
<property name="lib" location="lib" />
<property name="jarfile" value="${dist}/${jarFileName}" />
<property environment="env" />
<property name="src" location="src/java" />
<target name="init">
<tstamp />
<mkdir dir="${build}" />
<mkdir dir="${dist}" />
</target>
<target name="compile" depends="init" description="compile the source ">
<javac srcdir="${src}" destdir="${build}" debug="true" includeantruntime="false" target="1.7">
<classpath>
<pathelement path="${classpath}" />
<fileset dir="lib">
<include name="**/*.jar" />
</fileset>
<pathelement location="classes" />
</classpath>
</javac>
<copy todir="${build}/">
<fileset dir="${src}">
<exclude name="**/*.java" />
</fileset>
</copy>
</target>
<target name="dist" depends="compile" description="generate the distribution">
<!-- Create the distribution directory -->
<delete file="${jarfile}" />
<jar jarfile="${jarfile}" basedir="${build}">
<include name="${src}/**/*.properties" />
<include name="${src}/**/*.xml" />
<include name="**/*" />
<fileset dir=".">
<include name="config/*" />
</fileset>
</jar>
</target>
<target name="clean" description="clean up">
<!-- Delete the ${build} and ${dist} directory trees -->
<delete dir="${build}" />
<!-- delete dir="${dist}"/ -->
</target>
<target name="deploy" depends="dist" description="deploy the project">
<copy file="out/${jarFileName}" todir="${deployPath}/lib" />
<copy file="etc/wikisem.properties" todir="${deployPath}/etc" />
</target>
<target name="run" depends="dist" description="run the main class">
<java classname="${mainClassName}">
<sysproperty key="java.library.path" path="${java.library.path}:${igLibPath}"/>
<arg value="-Xmx12g" />
<arg value="-Xms12g" />
<arg value="-Dfile.encoding=utf-8" />
<!--<arg value="-XX : +UseConcMarkSweepGC" />
<arg value="-XX : +UseParNewGC" />-->
<arg value="-server" />
<classpath>
<pathelement path="${classpath}" />
<fileset dir="lib">
<include name="**/*.jar" />
</fileset>
<pathelement location="out/${jarFileName}" />
</classpath>
</java>
</target>
<target name="doc">
<echo level="warning" message="Creating Docs..." />
<mkdir dir="${doc}/api" />
<javadoc author="true" destdir="${doc}/api" sourcepath="${src}" private="true" version="true" windowtitle="Admire-floodapp-GribMetaPump " packagenames="admire.*">
</javadoc>
</target>
<target name="ydoc">
<property name="ps" value="${path.separator}"/>
<property name="ydoc-folder" value="/home/v/apps/yworks-uml-doclet-3.0_02-jdk1.5/"/>
<javadoc
source="1.7"
destdir="doc/api"
additionalparam="-breakiterator">
<packageset dir="src/java">
<include name="**"/>
</packageset>
<doclet
name="ydoc.doclets.YStandard"
path="${ydoc-folder}lib/ydoc.jar${ps}${ydoc-folder}resources${ps}${ydoc-folder}doc">
<param name="-author"/>
<param name="-generic"/>
<param name="-umlautogen"/>
<param name="-filterpath" value="./lib/ydoc.jar"/>
<param name="-filter" value="ydoc.filters.ExcludeFilter"/>
<param name="-tag" value="y.precondition"/>
<param name="-tag" value="y.postcondition"/>
<param name="-tag" value="y.complexity"/>
<param name="-tag" value="param"/>
<param name="-tag" value="return"/>
<param name="-tag" value="see"/>
<param name="-tag" value="y.uml"/>
</doclet>
</javadoc>
</target>
</project>