-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild-local.xml
More file actions
66 lines (39 loc) · 1.54 KB
/
build-local.xml
File metadata and controls
66 lines (39 loc) · 1.54 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
<project name="LEMSViewer build and deploy" default="war" basedir=".">
<description>
</description>
<property file="000VERSION"/>
<property environment="env"/>
<path id="gwt.classpath">
<pathelement location="src"/>
<pathelement location="../jLEMSDev/src"/>
<pathelement location="war/WEB-INF/classes"/>
<pathelement location="../jLEMSDev/bin"/>
<fileset dir="/usr/local/gwt-sdks/gwt-2.4.0/" includes="validation-api*.jar"/>
<fileset dir="/usr/local/gwt-sdks/gwt-2.4.0/" includes="gwt-*.jar"/>
<fileset dir="war/WEB-INF/lib" includes="gwt-*.jar"/>
</path>
<target name="gwtcompile">
<java failonerror="true" fork="true"
classname="com.google.gwt.dev.Compiler"
classpathref="gwt.classpath">
<arg line="-war"/>
<arg value="war"/>
<arg value="org.lemsml.gwtui.LEMSViewer"/>
</java>
</target>
<target name="clean">
<mkdir dir="build"/>
<delete dir="build" includes="*" failonerror="false"/>
</target>
<target name="war" depends="clean">
<mkdir dir="war/WEB-INF/classes/org/lemsml/jlems"/>
<copy todir="war/WEB-INF/classes/org/lemsml">
<fileset dir="../jLEMSDev/bin/org/lemsml" includes="jlems/**"/>
</copy>
<zip destfile="build/lemsviewer.war" basedir="war" includes="**"/>
</target>
<target name="deploy-local-war" depends="war">
<echo message="Copying lemsviewer.war to /var/lib/tomcat/webapps"/>
<copy file="build/lemsviewer.war" tofile="/var/lib/tomcat/webapps/lemsviewer.war"/>
</target>
</project>