forked from MangoAutomation/modbus4j
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-cdc.xml
60 lines (52 loc) · 1.97 KB
/
build-cdc.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
55
56
57
58
59
60
<?xml version="1.0"?>
<project name="Modbus4J CDC" basedir="." default="jar" xmlns:mvn="antlib:org.apache.maven.artifact.ant">
<!-- This buildfile is broken due to maven and JSSC introduction, the source will need to be upgraded to use JSSC -->
<typedef resource="org/apache/maven/artifact/ant/antlib.xml"
uri="antlib:org.apache.maven.artifact.ant"
classpath="lib-opt/maven-ant-tasks-2.1.3.jar" />
<path id="master-classpath">
<fileset dir="lib">
<include name="RXTXcomm.jar"/>
</fileset>
<pathelement path="target"/>
</path>
<target name="clean" description="Clean the target area">
<delete dir="target"/>
</target>
<target name="compile" description="Compile main source tree java files">
<mkdir dir="target"/>
<javac destdir="target" target="1.4" source="1.4" debug="true" debuglevel="lines,vars,source"
nowarn="false" deprecation="true" optimize="false" failonerror="true">
<src path="src_cdc"/>
<classpath refid="master-classpath"/>
<compilerarg value="-Xlint"/>
</javac>
</target>
<target name="jar" depends="clean,compile" description="Create a jar file of the compiled classes">
<delete file="modbus4J-cdc.jar"/>
<jar destfile="modbus4J-cdc.jar">
<fileset dir="target">
<include name="**/*.class"/>
</fileset>
</jar>
</target>
<target name="src-zip" description="Create a jar file of the source">
<delete file="modbus4J-cdc-src.zip"/>
<zip destfile="modbus4J-cdc-src.zip">
<fileset dir="src">
<include name="**/*.java"/>
</fileset>
<fileset dir="src_test">
<include name="**/*.java"/>
</fileset>
</zip>
</target>
<target name="doc-zip" description="Create a jar file of the javadocs">
<delete file="modbus4J-cdc-doc.zip"/>
<zip destfile="modbus4J-cdc-doc.zip">
<fileset dir="javadoc">
<include name="**/*"/>
</fileset>
</zip>
</target>
</project>