-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathbuild.xml
More file actions
44 lines (32 loc) · 1.57 KB
/
build.xml
File metadata and controls
44 lines (32 loc) · 1.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
<?xml version="1.0" encoding="UTF-8"?>
<project name="OneSocialWeb java library" basedir="." default="main">
<property name="src.dir" value="src"/>
<property name="build.dir" value="build"/>
<property name="classes.dir" value="${build.dir}/classes"/>
<property name="jar.dir" value="${build.dir}/jar"/>
<property name="jar.name" value="osw-lib-java"/>
<property name="lib.dir" value="lib"/>
<property file="${user.home}/.ant.build.properties" />
<property file="${basedir}/build.properties"/>
<fail unless="onesocialweb.libs">Aborting. The Ant property "onesocialweb.libs" is not defined. Check the onesocialweb wiki (Building with Ant) for more details on this error.</fail>
<path id="classpath">
<fileset dir="${lib.dir}" includes="**/*.jar"/>
<fileset dir="${onesocialweb.libs}" includes="**/*.jar"/>
</path>
<target name="clean">
<delete dir="${build.dir}"/>
</target>
<target name="compile">
<mkdir dir="${classes.dir}"/>
<javac srcdir="${src.dir}" destdir="${classes.dir}" classpathref="classpath" debug="true" debuglevel="lines,vars,source" />
</target>
<target name="jar" depends="compile">
<mkdir dir="${jar.dir}"/>
<jar destfile="${jar.dir}/${jar.name}.jar" basedir="${classes.dir}" />
</target>
<target name="deploy" depends="jar">
<copy file="${jar.dir}/${jar.name}.jar" todir="${onesocialweb.libs}" overwrite="true" />
</target>
<target name="clean-build" depends="clean,jar"/>
<target name="main" depends="clean,jar"/>
</project>