File: build.xml

package info (click to toggle)
codenarc 0.23-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 11,312 kB
  • sloc: java: 2,530; xml: 1,088; makefile: 21
file content (60 lines) | stat: -rw-r--r-- 1,500 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="build-codenarc" default="package">
	<property file="build.properties"/>

	<path id="classpath">
		<fileset dir="/" includesfile="classpath-debian"/>
	</path>

	<taskdef name="groovyc" classname="org.codehaus.groovy.ant.Groovyc"
		classpathref="classpath"/>

	<taskdef name="groovydoc" classname="org.codehaus.groovy.ant.Groovydoc"
		classpathref="classpath"/>

	<target name="init">
		<mkdir dir="${dir.build}/classes"/>
	</target>

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

	<target name="compile" depends="init">
		<groovyc
			srcdir="${dir.src}"
			destdir="${dir.build}/classes"
			classpathref="classpath"
			sourcepath="">
			<javac source="${source}" target="${target}" debug="${debug}"/>
		</groovyc>
	</target>

	<target name="jar" depends="compile">
       <jar
            destfile="${dir.build}/CodeNarc.jar"
            basedir="${dir.build}/classes"
            includes="**">
			<fileset dir="${dir.resources}"/>
			<manifest>
				<attribute name="Class-Path" value="log4j-1.2.jar GMetrics.jar" />
			</manifest>

       </jar>
	</target>

	<target name="groovydoc" depends="init">
		<groovydoc
			destdir="${dir.build}/groovydoc"
			sourcepath="${dir.src}"
			packagenames="**.*"
			notimestamp="true"
			use="true">
			<link packages="java.,org.xml.,javax.,org.xml."
				href="/usr/share/doc/default-jdk-doc/api/"/>
		</groovydoc>
	</target>

	<target name="package" depends="jar,groovydoc"/>

</project>