File: build.xml

package info (click to toggle)
proguard 6.2.2-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 8,712 kB
  • sloc: java: 97,785; xml: 1,015; sh: 256; makefile: 91
file content (69 lines) | stat: -rw-r--r-- 1,874 bytes parent folder | download | duplicates (2)
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
61
62
63
64
65
66
67
68
69
<!-- Ant build script for the ProGuard Wireless Toolkit plugin. -->

<project name    = "wtk"
         default = "dist">

  <property file = "../buildscripts/ant.properties"/>
  <property file = "ant.properties"/>
  <property name = "wtk.jar" value = "${wtk.home}/wtklib/kenv.zip"/>

  <target name = "clean">
    <delete quiet = "true">
      <fileset dir = "out"/>
    </delete>
  </target>

  <target name = "out">
    <mkdir dir = "out"/>
  </target>

  <target name = "core">
    <ant dir        = "../core"
         target     = "compile"
         inheritAll = "false"/>
  </target>

  <target name = "compile" depends = "out,core">
    <fail message="Please set the value of the property wtk.home in the file build.properties.">
      <condition>
        <not>
          <available file="${wtk.jar}"/>
        </not>
      </condition>
    </fail>

    <javac nowarn            = "true"
           deprecation       = "false"
           includeantruntime = "false"
           source            = "${target}"
           target            = "${target}"
           classpath         = "../lib/proguard.jar:${wtk.jar}"
           srcdir            = "src"
           destdir           = "out"
           includes          = "proguard/wtk/ProGuardObfuscator.java">
      <compilerarg value = "-Xlint:none"/>
    </javac>
  </target>

  <target name = "resources" depends = "out">
    <copy todir = "out">
      <fileset dir = "src">
        <include name = "**/*.properties"/>
        <include name = "**/*.png"/>
        <include name = "**/*.gif"/>
        <include name = "**/*.pro"/>
      </fileset>
    </copy>
  </target>

  <target name = "lib">
    <mkdir dir = "../lib"/>
  </target>

  <target name = "dist" depends = "compile,resources,lib">
    <jar jarfile = "../lib/proguard.jar"
         update  = "true"
         basedir = "out"/>
  </target>

</project>