forked from TooTallNate/Java-WebSocket
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
55 lines (45 loc) · 1.46 KB
/
build.xml
File metadata and controls
55 lines (45 loc) · 1.46 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
45
46
47
48
49
50
51
52
53
54
55
<project default="all">
<target name="all" depends="doc,jar" />
<target name="init">
<exec executable="git" outputproperty="git.version">
<arg value="describe" />
<arg value="--dirty" />
</exec>
<echo message="Version: ${git.version}" />
</target>
<target name="compile" depends="init">
<mkdir dir="build/classes" />
<mkdir dir="build/examples" />
<javac includeantruntime="false" debug="on" srcdir="src/main/java"
destdir="build/classes" target="1.5" />
</target>
<target name="jar" depends="compile">
<jar destfile="dist/${git.version}.jar">
<fileset dir="build/classes" includes="**/*.class" />
</jar>
</target>
<target name="echo.websocket.org" depends="jar" description="test with wss://echo.websocket.org">
<antcall target="_ant_run">
<param name="args" value="wss://echo.websocket.org" />
</antcall>
</target>
<target name="sdn-dev.ubnt.com" depends="jar" description="test with wss://sdn-dev.ubnt.com:7443/connect">
<antcall target="_ant_run">
<param name="args" value="wss://sdn-dev.ubnt.com:7443/connect" />
</antcall>
</target>
<target name="_ant_run">
<echo message="use CTRL-C to stop" />
<echo message="" />
<java classname="MyTest" classpath="dist/java_websocket.jar" fork="true" >
<arg line="${args}" />
</java>
</target>
<target name="doc">
<delete dir="doc" />
<javadoc sourcepath="src/main/java" destdir="doc" />
</target>
<target name="clean">
<delete dir="build" />
</target>
</project>