-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathbuild.xml
More file actions
94 lines (82 loc) · 3.08 KB
/
build.xml
File metadata and controls
94 lines (82 loc) · 3.08 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="restsql-sdk" default="dist">
<property file="build.properties" />
<target name="dist" depends="defaults,database,javadoc,swagger-wadl,support,lib" description="generates distribution files" />
<target name="clean" description="deletes output dir">
<delete dir="obj" failonerror="false" includeEmptyDirs="true" quiet="true" />
</target>
<target name="compile-examples">
<!-- Create output dir -->
<mkdir dir="obj/bin" />
<!-- Copy supporting files -->
<copy todir="obj/bin">
<fileset dir="WebContent/examples/java">
<include name="**/*.properties" />
</fileset>
</copy>
<!-- Compile -->
<javac srcdir="WebContent/examples/java" destdir="obj/bin" classpath="${compile.classpath}" includeantruntime="false" debug="true">
<compilerarg line="-Xlint:all" />
</javac>
</target>
<target name="database">
<copy todir="WebContent/database">
<fileset dir="../restsql-test/src/resources/database" />
</copy>
</target>
<target name="defaults">
<copy todir="WebContent/defaults/properties">
<fileset dir="../restsql/src/resources/properties/" includes="default-*.properties" />
</copy>
<copy todir="WebContent/defaults/xml">
<fileset dir="../restsql/WebContent/WEB-INF" includes="web.xml" />
</copy>
</target>
<target name="exec-examples" depends="compile-examples" description="executes example programs">
<echo message="Executing Select_FlatResource" />
<echo />
<java classpath="${exec.classpath}" classname="Select_FlatResource" fork="true" />
<echo />
<echo message="Executing InsertUpdateDelete_FlatResource" />
<echo />
<java classpath="${exec.classpath}" classname="InsertUpdateDelete_FlatResource" fork="true" />
</target>
<target name="lib">
<mkdir dir="obj/lib" />
<jar destfile="obj/lib/restsql-sdk-${build.version}.war">
<fileset dir="WebContent" excludes="**/.DS_Store"/>
<fileset file="CONTRIBUTORS.txt" />
<fileset file="LICENSE.txt" />
<manifest>
<attribute name="Built-By" value="${user.name}" />
<attribute name="Specification-Vendor" value="${manifest.vendor}" />
<attribute name="Specification-Title" value="${manifest.title.sdk}" />
<attribute name="Specification-Version" value="${build.version}" />
<attribute name="Implementation-Vendor" value="${manifest.vendor}" />
<attribute name="Implementation-Title" value="${manifest.title.sdk}" />
<attribute name="Implementation-Version" value="${build.version}" />
</manifest>
</jar>
</target>
<target name="javadoc">
<copy todir="WebContent/javadoc">
<fileset dir="../restsql/obj/doc/javadoc" />
</copy>
</target>
<target name="support">
<copy todir=".">
<fileset dir="../restsql" includes="*.txt" />
</copy>
<copy todir="WebContent/doc">
<fileset dir="../restsql" includes="README-FRAMEWORK-DEVELOPERS.md" />
</copy>
</target>
<target name="swagger-wadl">
<copy todir="WebContent">
<fileset file="../restsql/WebContent/restsql-swagger.json" />
</copy>
<copy todir="WebContent/wadl">
<fileset dir="../restsql/WebContent/wadl" />
</copy>
</target>
</project>