forked from socialite-lang/socialite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
54 lines (48 loc) · 1.74 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
46
47
48
49
50
51
52
53
54
<project name="socialite" default="compile" basedir=".">
<property name="src" value="${basedir}/src" />
<property name="classes" value="${basedir}/classes" />
<property name="distdir" value="${basedir}/dist" />
<property name="lib" value="${basedir}/ext/" />
<property name="debug" value="Yes" />
<path id="classpath">
<pathelement location="${classes}"/>
<fileset dir="${lib}">
<include name="**/*.jar"/>
</fileset>
</path>
<target name="clean" depends="init">
<delete>
<fileset dir="${classes}/">
<include name="**/*.class"/>
<include name="**/*.jar"/>
<include name="**/*.stg"/>
<exclude name="**/*.sh"/>
</fileset>
</delete>
</target>
<target name="init">
<mkdir dir="${classes}"/>
</target>
<target name="compile" depends="init">
<javac includeantruntime="false" srcdir="${src}" destdir="${classes}" debug="${debug}"
excludes="**/socialite/programs/*.java">
<classpath refid="classpath"/>
</javac>
<copy todir="${classes}">
<fileset dir="${src}" excludes="**/*.java"/>
</copy>
<jar jarfile="${classes}/socialite.jar">
<fileset dir="${classes}">
<include name="**/*.class"/>
<include name="**/*.stg"/>
<exclude name="**/*.jar"/>
</fileset>
</jar>
</target>
<target name="alljar" depends="compile">
<jar destfile="${basedir}/socialite-all.jar">
<zipgroupfileset dir="${basedir}/ext" includes="*.jar"/>
<zipgroupfileset dir="${classes}/" includes="*.jar"/>
</jar>
</target>
</project>