My favorites | Sign in
Project Logo
                
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
<project name="example-single-project-module">

<property name="src.java.dir" value="src/main/java" />
<property name="test.java.dir" value="src/test/java" />
<property name="build.dir" value="build" />
<property name="build.src.dir" value="${build.dir}/src/main/java" />
<property name="build.test.dir" value="${build.dir}/src/test/java" />

<property name="compile.debug" value="true" />
<property name="compile.deprecation" value="true" />
<property name="comiple.optimize" value="true" />

<target name="clean" description="--> clean the project">
<delete dir="${build.dir}" includeemptydirs="true" failonerror="false" />
</target>

<target name="compile" description="--> compile the source code">
<echo>compiling ${ant.project.name}</echo>
<mkdir dir="${build.dir}" />
<mkdir dir="${build.src.dir}" />
<mkdir dir="${build.test.dir}" />

<javac debug="${compile.debug}" deprecation="${compile.deprecation}"
optimize="${comiple.optimize}" srcdir="${src.java.dir}" destdir="${build.src.dir}" />

<javac debug="${compile.debug}" deprecation="${compile.deprecation}"
optimize="${comiple.optimize}" srcdir="${test.java.dir}" destdir="${build.test.dir}">

<classpath>
<pathelement path="${build.src.dir}" />
</classpath>
</javac>
</target>
</project>
Show details Hide details

Change log

r7 by heraclitusonsoftware on Mar 27, 2009   Diff
create branch of code for part 1 of build
automation series
Go to: 
Project members, sign in to write a code review

Older revisions

r6 by heraclitusonsoftware on Mar 27, 2009   Diff
reduce line length on build.xml
r5 by heraclitusonsoftware on Mar 27, 2009   Diff
add eclipse launchers for clean and
compile targets,
add ivy jar to build-environment
project
r4 by heraclitusonsoftware on Mar 25, 2009   Diff
add basic ant build to clean and
compile simple java project
All revisions of this file

File info

Size: 1337 bytes, 34 lines
Hosted by Google Code