File: build.xml

package info (click to toggle)
alter-sequence-alignment 1.3.3%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,132 kB
  • sloc: java: 6,623; xml: 60; makefile: 5; sh: 2
file content (55 lines) | stat: -rw-r--r-- 1,722 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="ALTERLIB" default="buildjar" basedir=".">

  <dirname property="ALTERLIB.basedir" file="${ant.file.ALTERLIB}"/>
  <property name="build" location="${ALTERLIB.basedir}/build"/>
  <property name="src" location="${ALTERLIB.basedir}/src"/>  
  <property name="dist" location="${ALTERLIB.basedir}/dist"/>    
  <property name="javacchome" location="/usr/share/java/"/>
  <property name="grammars" location="${src}/parser"/>
  <property name="javaversion" value="1.6" />
  
  <taskdef resource="net/sf/antcontrib/antcontrib.properties">
    <classpath>
      <pathelement location="/usr/share/ant/lib/ant-contrib.jar"/>
    </classpath>
  </taskdef>
  
  <target name="clean">
    <delete dir="${build}"/>
    <delete dir="${dist}"/>
    <delete>
      <fileset dir="${grammars}" includes="**/*.java"/>
    </delete>
  </target>
  
  <target name="compileGrammar">
    <javacc target="${grammar}" javacchome="${javacchome}">
    </javacc>
  </target>
  
  <target name="javacc">  
    <foreach target="compileGrammar" param="grammar">
	<path> 
	  <fileset dir="${grammars}" includes="**/*.jj"/> 
	</path> 
    </foreach>  
  </target>
  
  <target name="build" depends="javacc">
    <mkdir dir="${build}"/>    
    <javac srcdir="${src}" destdir="${build}" target="${javaversion}" source="${javaversion}">      
    </javac>    
    <copy todir="${build}">
      <fileset dir="${src}">
	<exclude name="**/*.java"/>
      </fileset>
    </copy>
    
  </target>
  <target name="buildjar" depends="clean, build">
      <mkdir dir="${dist}"/>
      <jar destfile="${dist}/alter.jar"
       basedir="${build}" manifest="${ALTERLIB.basedir}/MANIFEST.MF"/>
  </target>
</project>