aboutsummaryrefslogtreecommitdiffstats
path: root/build.xml
diff options
context:
space:
mode:
authorShevek <[email protected]>2011-07-08 21:36:01 +0000
committerShevek <[email protected]>2011-07-08 21:36:01 +0000
commitc12ca797d66415756f364bc6c4a31ee502d9a9dd (patch)
treed68c19936c095bb2bc3011ecba4e8a16bab4f591 /build.xml
parent9aa50b21462d62fda5f268880fcf04f4b12eb469 (diff)
Make ant task work a lot better.
Diffstat (limited to 'build.xml')
-rw-r--r--build.xml27
1 files changed, 27 insertions, 0 deletions
diff --git a/build.xml b/build.xml
index 728c55e..4657aa1 100644
--- a/build.xml
+++ b/build.xml
@@ -16,4 +16,31 @@
<target name="findbugs" depends="global-findbugs,global-findbugs-gui" />
+ <target name="test-ant">
+ <delete dir="${global.dir.build}/output" />
+ <mkdir dir="${global.dir.build}/output" />
+
+ <path id="cpp-classpath">
+ <path refid="runtime-classpath" />
+ <pathelement path="${global.dir.src.resources}" />
+ </path>
+
+ <taskdef
+ resource="org/anarres/cpp/taskdef.properties"
+ classpathref="cpp-classpath"
+ loaderref="ant" />
+
+ <cpp todir="${global.dir.build}/output">
+ <fileset file="${global.dir.src}/input/test0.c" />
+ <fileset file="${global.dir.src}/input/test1.c" />
+ <systemincludepath>
+ <pathelement path="${global.dir.src}/input" />
+ </systemincludepath>
+ <localincludepath>
+ <pathelement path="${global.dir.src}/input" />
+ </localincludepath>
+ </cpp>
+ </target>
+
+
</project>