forked from liferay/liferay-plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild-common-client.xml
43 lines (34 loc) · 965 Bytes
/
build-common-client.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
<?xml version="1.0"?>
<!DOCTYPE project>
<project name="build-common-client">
<property name="project.dir" value="../.." />
<import file="../build-common-plugin.xml" />
<target name="clean">
<delete dir="classes" />
<delete file="${plugin.file}" />
</target>
<target name="compile">
<mkdir dir="classes" />
<copy todir="classes">
<fileset dir="src" excludes="**/*.java" />
</copy>
<path id="plugin-lib.classpath">
<pathelement location="classes" />
</path>
<antcall target="compile-java">
<param name="javac.classpathref" value="plugin.classpath" />
<param name="javac.destdir" value="classes" />
<param name="javac.srcdir" value="src" />
<reference refid="plugin-lib.classpath" torefid="plugin-lib.classpath" />
</antcall>
</target>
<target name="jar" depends="compile">
<jar
basedir="classes"
jarfile="${plugin.file}"
/>
</target>
<target name="war">
<antcall target="jar" />
</target>
</project>