File: build.xml

package info (click to toggle)
sump-logicanalyzer 0.8-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 1,584 kB
  • sloc: java: 3,116; vhdl: 1,636; asm: 32; xml: 32; makefile: 19; sh: 3
file content (44 lines) | stat: -rw-r--r-- 1,234 bytes parent folder | download
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
<?xml version="1.0" encoding="UTF-8"?>

<!--
      from http://yageek.free.fr/analyzer/build.xml
      with minimal adaptions by Steffen
-->

<project name="Client" basedir=".">

   <property name="icon.dir" value="org/sump/analyzer/icons"/>
   <property name="src.dir" value="org"/>
   <property name="build.dir"  value="build"/>
   <property name="jar.name"  value="analyzer.jar"/>

   <path id="class.path">
     <fileset dir="/usr/share/java">
       <include name="RXTXcomm.jar" />
     </fileset>
   </path>

   <target name="compile">
     <mkdir dir="${build.dir}"/>
     <javac debug="on" srcdir="${src.dir}" destdir="${build.dir}">
        <classpath refid="class.path"/>
     </javac>
     <mkdir dir="${build.dir}/${icon.dir}"/>
     <copy todir="${build.dir}/${icon.dir}">
        <fileset dir="${icon.dir}"/>
     </copy>

     <jar destfile="${jar.name}" basedir="build/" includes="**">
       <manifest>
         <attribute name="Main-Class" value="org.sump.analyzer.Loader"/>
         <attribute name="Class-Path" value="/usr/share/java/RXTXcomm.jar"/>
       </manifest>
     </jar>
   </target>

   <target name ="clean">
     <delete dir="${build.dir}"/>
     <delete file="${jar.name}"/>
   </target>

</project>