diff options
author | Shevek <[email protected]> | 2011-07-08 21:36:01 +0000 |
---|---|---|
committer | Shevek <[email protected]> | 2011-07-08 21:36:01 +0000 |
commit | c12ca797d66415756f364bc6c4a31ee502d9a9dd (patch) | |
tree | d68c19936c095bb2bc3011ecba4e8a16bab4f591 /build.xml | |
parent | 9aa50b21462d62fda5f268880fcf04f4b12eb469 (diff) |
Make ant task work a lot better.
Diffstat (limited to 'build.xml')
-rw-r--r-- | build.xml | 27 |
1 files changed, 27 insertions, 0 deletions
@@ -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> |