File: build.xml

package info (click to toggle)
concurrent-dfsg 1.3.4-4
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, squeeze, stretch, wheezy
  • size: 976 kB
  • ctags: 2,018
  • sloc: java: 10,704; xml: 49; makefile: 12
file content (65 lines) | stat: -rw-r--r-- 1,763 bytes parent folder | download | duplicates (3)
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
 
<!-- Build Script provided by Travell Perkins, tlperkins@dev.java.net with improvements by Mike.Miller@jda.com -->

<project name="Concurrent by Doug Lea" default="help" basedir=".">

<property name="src"      location="src/EDU/oswego/cs/dl/util/concurrent"/>
<property name="src.path" value="${basedir}/src"/>
<property name="docs"     value="${basedir}/docs"/>

<target name="help">
	<echo message="To build concurrent.jar which contains the core library and misc classes: ant dist"/>
	<echo message="To clean the build created files: ant clean"/>
</target>


<target name="clean">
	<delete dir="build"/>
	<delete dir="lib"/>
	<delete dir="src"/>
</target>

<target name="init">
	<mkdir dir="build"/>
	<mkdir dir="lib"/>
	<mkdir dir="${src}"/>
	<mkdir dir="${src}/misc"/>
	<mkdir dir="${docs}"/>
</target>


<target name="setup.packages" depends="init">
	<copy toDir="${src}" flatten="true">
            <fileset dir=".">
                <include name="*.java"/>
            </fileset>
        </copy>
	<copy toDir="${src}/misc" flatten="true">
            <fileset dir="misc">
                <include name="*.java"/>
            </fileset>
        </copy>
</target>

<target name="compile" depends="setup.packages">
        <javac srcdir="src" destdir="build" optimize="true"/>
</target>

<target name="dist" depends="compile">
	<jar jarfile="lib/concurrent.jar">
            <fileset dir="build"/>
        </jar>
</target>


<target name="javadoc" depends="init">
    <delete includeEmptyDirs="true" quiet="true">
        <fileset dir="${src}/docs" />
    </delete>

    <mkdir dir="${docs}" />

    <javadoc maxmemory="256m" packagenames="EDU.oswego.*" sourcepath="${src.path}" destdir="${docs}" defaultexcludes="yes">
    </javadoc>
</target>
</project>