-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
45 lines (39 loc) · 1.26 KB
/
build.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
44
45
<?xml version="1.0" ?>
<project name="social-connect" default="init">
<property name="basedir" value="." />
<property file="${basedir}/env.properties" />
<property name="javadoc" value="${basedir}/javadoc" />
<property name="dist" value="${basedir}/dist" />
<property name="src" value="${basedir}/src" />
<property name="bin" value="${basedir}/bin" />
<property name="lib" value="${basedir}/lib" />
<path id="libraries">
<fileset dir="${lib}">
<include name="*.jar" />
</fileset>
</path>
<target name="clean">
<delete dir="${bin}" failonerror="true" />
<delete dir="${dist}" failonerror="true" />
</target>
<target name="dist" depends="jar,doc"/>
<target name="jar" depends="clean,compile">
<mkdir dir="${dist}" />
<jar destfile="${dist}/social-connect-${social-connect.version}.jar" basedir="${bin}">
<include name="*/**" />
</jar>
</target>
<target name="compile">
<mkdir dir="${bin}" />
<javac destdir="${bin}" classpathref="libraries" debug="true">
<src location="${src}" />
</javac>
</target>
<target name="doc">
<javadoc destdir="${javadoc}"
sourcepath="${src}"
packagenames="*"
windowtitle="Social Connect"
classpathref="libraries"/>
</target>
</project>