File: build.xml

package info (click to toggle)
asm3 3.2-3
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 4,180 kB
  • ctags: 3,898
  • sloc: java: 37,049; xml: 1,814; makefile: 44
file content (44 lines) | stat: -rw-r--r-- 1,325 bytes parent folder | download | duplicates (4)
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
<project name="jasmin" default="test">

  <condition property="asm.test" value="${java.home}/lib/rt.jar">
    <not><isset property="asm.test"/></not>
  </condition>

  <condition property="asm.test.class" value="">
    <not><isset property="asm.test.class"/></not>
  </condition>

  <path id="classpath">
    <fileset dir="${basedir}/../../../lib">
      <include name="*.jar"/>
    </fileset>
    <pathelement location="${basedir}/jasmin.jar"/>
    <pathelement location="${basedir}/../build"/>
  </path>

  <target name="compile">
    <javac srcdir="${basedir}" destdir="${basedir}" debug="on">
      <classpath refid="classpath"/>
      <include name="*.java"/>
    </javac>
  </target>

  <target name="test" depends="compile">
    <junit fork="yes" 
           printsummary="yes"
           errorproperty="test.failed"
           failureproperty="test.failed">
      <batchtest fork="yes" todir="${basedir}">
        <fileset dir="${basedir}">
          <include name="JasminifierClassAdapterTest.java"/>
          <include name="JasminifierClassAdapterUnitTest.java"/>
        </fileset>
      </batchtest>
      <formatter type="xml"/>
      <classpath refid="classpath"/>
      <jvmarg value="-Dasm.test=${asm.test}"/>
      <jvmarg value="-Dasm.test.class=${asm.test.class}"/>
    </junit>  
  </target>

</project>