-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
71 lines (64 loc) · 2.57 KB
/
build.xml
File metadata and controls
71 lines (64 loc) · 2.57 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
<?xml version="1.0" encoding="UTF-8"?>
<!--
/***********************************************************************************
* Copyright 2014 IBM
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
**********************************************************************************/
-->
<project basedir="." default="build" name="WebStarterApp">
<property environment="env"/>
<property name="srcDir" value="."/>
<property name="debuglevel" value="source,lines,vars"/>
<property name="target" value="1.8"/>
<property name="source" value="1.8"/>
<path id="classpathDir">
<pathelement location="bin"/>
<pathelement location="WebContent/WEB-INF/lib/org.ektorp-1.4.2.jar"/>
<pathelement location="WebContent/WEB-INF/lib/jackson-annotations-2.4.0.jar"/>
<pathelement location="WebContent/WEB-INF/lib/javax.servlet-api-3.1.0.jar"/>
<pathelement location="WebContent/WEB-INF/lib/wink-1.2.1-incubating.jar"/>
</path>
<target name="init">
<mkdir dir="bin"/>
</target>
<target name="clean">
<delete dir="bin"/>
</target>
<target name="build" depends="build-project,build-war"/>
<target name="cleanall" depends="clean"/>
<target name="build-project" depends="clean,init">
<echo message="${ant.project.name}: ${ant.file}"/>
<javac debug="true" debuglevel="${debuglevel}" destdir="bin" source="${source}" target="${target}"
includeantruntime="false">
<src path="src"/>
<classpath refid="classpathDir"/>
</javac>
</target>
<target name="build-war" depends="build-project">
<war destfile="webStarterApp.war" webxml="WebContent/WEB-INF/web.xml">
<webinf dir="WebContent/WEB-INF">
<include name="resources"/>
</webinf>
<fileset dir="WebContent">
<include name="index.jsp"/>
<include name="index.js"/>
<include name="dojo.js"/>
<include name="style.css"/>
<include name="img/*"/>
</fileset>
<lib dir="WebContent/WEB-INF/lib"/>
<classes dir="bin"/>
</war>
</target>
</project>