File: build.xml

package info (click to toggle)
jexcelapi 2.6.12-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch, wheezy
  • size: 4,264 kB
  • ctags: 7,331
  • sloc: java: 43,178; xml: 129; makefile: 18; lisp: 9; sh: 8
file content (104 lines) | stat: -rwxr-xr-x 3,542 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<project name="JExcelApi" default="jxl">
 
  <property name="jarFile" value="../jxl.jar" />
  <property name="manifestFile" value="jxl.mf" />
  <property name="outputDir" value="out" />
  <property name="docsDir" value="../docs" />
  <property name="sourceDir" value="../src" />
  <property name="resourcesDir" value="../resources" />
  <property name="xllexfile" value="xlformula.lex" />
  <property name="jflexfile" value="xlformula.flex" />
  <property name="genlextargetfile" 
            value="../src/jxl/biff/formula/Yylex.java" />
  <property name="loggerNameFile" value="../src/jxl/common/log/LoggerName.java" />
  <property file="build.properties" />

  <target name="init">
    <tstamp />
    <mkdir dir="${outputDir}" />
    <uptodate property="xllex.notrequired" 
              targetfile="${genlextargetfile}">
      <srcfiles dir="${basedir}" includes="${jflexfile}" />
    </uptodate>
    <uptodate property="loggercopy.notrequired" 
              targetfile="${loggerNameFile}">
      <srcfiles dir="${basedir}" includes="build.properties" />
    </uptodate>
  </target>

  <target name="xllex" depends="init" unless="xllex.notrequired">
    <java classname="jlex.Main">
      <arg value="${xllexfile}" />
      <classpath path="." />
    </java>
    <copy file="${xllexfile}.java" tofile="${genlextargetfile}" />
  </target>

  <target name="xljflex" depends="init" unless="xllex.notrequired">
    <java classname="JFlex.Main">
      <arg value="--jlex" />
      <arg value="--nobak" />
      <arg value="${jflexfile}" />
      <classpath path="/usr/share/java/JFlex.jar" />
    </java>
    <copy file="Yylex.java" tofile="${genlextargetfile}" />
  </target>

 
  <target name="logger" depends="init" unless="loggercopy.notrequired">
    <delete file="${loggerNameFile}" />
    <copy file="${sourceDir}/jxl/common/log/${logger}Name.java" tofile="${loggerNameFile}" />
  </target>

  <target name="jxl" depends="init, xljflex, logger">
    <javac destdir="${outputDir}" 
           classpath=".:${loggerClasspath}" 
           srcdir="${sourceDir}"
           debug="true" 
           deprecation="on">
      <include name="jxl/*.java" />
      <include name="jxl/biff/**" />
      <include name="jxl/demo/**" />
      <include name="jxl/format/**" />
      <include name="jxl/read/**" />
      <include name="jxl/write/**" />
      <include name="jxl/common/*" />
      <include name="jxl/common/log/LoggerName.java" />
      <include name="jxl/common/log/${logger}.java" />
    </javac>
    <jar manifest="${manifestFile}" 
         jarfile="${jarFile}">
      <fileset dir="${outputDir}" />
      <fileset dir="${resourcesDir}">
        <include name="*.properties" />
      </fileset>
    </jar>
  </target>

  <target name="jxlall" depends="clean, init, xljflex, jxl, docs">
  </target>

  <target name="docs" depends="init">
    <delete dir="${docsDir}" />
    <mkdir dir="${docsDir}" />
    <javadoc sourcepath="${sourceDir}"
             destdir="${docsDir}"
             public="true"
             nodeprecated="false">
      <package name="jxl" />
      <package name="jxl.write" />
      <package name="jxl.format" />
      <package name="jxl.demo" />
     </javadoc>
  </target>

  <target name="clean">
    <delete includeEmptyDirs="true">
      <fileset  dir="${outputDir}" includes="*/**" />
    </delete>
    <delete file="${jarFile}" />
    <delete file="${genlextargetfile}" />

  </target>

</project>