|
7 | 7 | <project basedir="." default="build" name="socket.io-java-client">
|
8 | 8 | <property environment="env"/>
|
9 | 9 | <property name="ECLIPSE_HOME" value="../../../../../Applications/eclipse"/>
|
10 |
| - <property name="treckme.location" value="../treckme"/> |
11 |
| - <property name="treckme_android.location" value="../treckme_android"/> |
12 | 10 | <property name="junit.output.dir" value="junit"/>
|
13 | 11 | <property name="debuglevel" value="source,lines,vars"/>
|
14 | 12 | <property name="target" value="1.6"/>
|
|
19 | 17 | </path>
|
20 | 18 | <path id="socket.io-java-client.classpath">
|
21 | 19 | <pathelement location="bin"/>
|
22 |
| - <path refid="JUnit 4.libraryclasspath"/> |
23 |
| - <pathelement location="libs/weberknecht-0.1.1.jar"/> |
24 | 20 | <pathelement location="libs/json-org.jar"/>
|
| 21 | + <pathelement location="libs/weberknecht-0.1.1.jar"/> |
| 22 | + <path refid="JUnit 4.libraryclasspath"/> |
25 | 23 | </path>
|
26 | 24 | <target name="init">
|
27 | 25 | <mkdir dir="bin"/>
|
|
30 | 28 | <exclude name="**/*.java"/>
|
31 | 29 | </fileset>
|
32 | 30 | </copy>
|
33 |
| - <copy includeemptydirs="false" todir="bin"> |
34 |
| - <fileset dir="examples"> |
35 |
| - <exclude name="**/*.java"/> |
36 |
| - </fileset> |
37 |
| - </copy> |
38 |
| - <copy includeemptydirs="false" todir="bin"> |
39 |
| - <fileset dir="tests"> |
40 |
| - <exclude name="**/*.java"/> |
41 |
| - </fileset> |
42 |
| - </copy> |
43 | 31 | </target>
|
44 | 32 | <target name="clean">
|
45 | 33 | <delete dir="bin"/>
|
|
53 | 41 | <src path="src"/>
|
54 | 42 | <classpath refid="socket.io-java-client.classpath"/>
|
55 | 43 | </javac>
|
56 |
| - <javac debug="true" debuglevel="${debuglevel}" destdir="bin" source="${source}" target="${target}"> |
57 |
| - <src path="examples"/> |
58 |
| - <classpath refid="socket.io-java-client.classpath"/> |
59 |
| - </javac> |
60 |
| - <javac debug="true" debuglevel="${debuglevel}" destdir="bin" source="${source}" target="${target}"> |
61 |
| - <src path="tests"/> |
62 |
| - <classpath refid="socket.io-java-client.classpath"/> |
63 |
| - </javac> |
64 |
| - </target> |
65 |
| - <target description="Build all projects which reference this project. Useful to propagate changes." name="build-refprojects"> |
66 |
| - <ant antfile="build.xml" dir="${treckme.location}" inheritAll="false" target="clean"/> |
67 |
| - <ant antfile="build.xml" dir="${treckme.location}" inheritAll="false" target="build"> |
68 |
| - <propertyset> |
69 |
| - <propertyref name="build.compiler"/> |
70 |
| - </propertyset> |
71 |
| - </ant> |
72 |
| - <ant antfile="build.xml" dir="${treckme_android.location}" inheritAll="false" target="clean"/> |
73 |
| - <ant antfile="build.xml" dir="${treckme_android.location}" inheritAll="false" target="build"> |
74 |
| - <propertyset> |
75 |
| - <propertyref name="build.compiler"/> |
76 |
| - </propertyset> |
77 |
| - </ant> |
78 | 44 | </target>
|
| 45 | + <target description="Build all projects which reference this project. Useful to propagate changes." name="build-refprojects"/> |
79 | 46 | <target description="copy Eclipse compiler jars to ant lib directory" name="init-eclipse-compiler">
|
80 | 47 | <copy todir="${ant.library.dir}">
|
81 | 48 | <fileset dir="${ECLIPSE_HOME}/plugins" includes="org.eclipse.jdt.core_*.jar"/>
|
|
99 | 66 | </junit>
|
100 | 67 | </target>
|
101 | 68 | <target name="BasicExample">
|
102 |
| - <java classname="basic.BasicExample" failonerror="true" fork="yes"> |
103 |
| - <classpath refid="socket.io-java-client.classpath"/> |
104 |
| - </java> |
105 |
| - </target> |
106 |
| - <target name="ChatFrame"> |
107 |
| - <java classname="chat.ChatFrame" failonerror="true" fork="yes"> |
| 69 | + <java classname="BasicExample" failonerror="true" fork="yes"> |
108 | 70 | <classpath refid="socket.io-java-client.classpath"/>
|
109 | 71 | </java>
|
110 | 72 | </target>
|
|
132 | 94 | <report format="frames" todir="${junit.output.dir}"/>
|
133 | 95 | </junitreport>
|
134 | 96 | </target>
|
| 97 | + <target name="jar" depends="build-project"> |
| 98 | + <mkdir dir="jar"/> |
| 99 | + <jar destfile="jar/socketio.jar" basedir="bin"> |
| 100 | + <zipgroupfileset dir="libs/" includes="*.jar"/> |
| 101 | + <manifest> |
| 102 | + </manifest> |
| 103 | + </jar> |
| 104 | + </target> |
135 | 105 | </project>
|
0 commit comments