shevek / jcpp

The C Preprocessor as a Java library
http://www.anarres.org/projects/jcpp/
Apache License 2.0
106 stars 36 forks source link

Problems using ANT build task under Windows #1

Closed domologic closed 10 years ago

domologic commented 11 years ago

There were two problems using the ANT build task for JCPP under windows:

1- "etc/global.xml", line 15 there is an absolute path reference to /usr/share/ant/lib It is better to use the ANT property ${ant.home} instead, so the script will also work in different installations: <fileset dir="${ant.home}/lib">

2- "etc/targets/global-javadoc.xml", line 51: the javadoc task makes a reference to directory "${global.dir.etc}/javadoc" () When I use a fresh copy from the sources, this directory does not exists, so the javadoc task fails (aborting the build process). A good workaround is to create this directory if it does not exists, before the javadoc task is called. So I've inserted the following two lines at line 6 of "etc/targets/global-javadoc.xml": <!-- create javadoc etc directory if it does not exist--> <mkdir dir="${global.dir.etc}/javadoc" />

shevek commented 10 years ago

Resolved by porting to gradle. Please let me know if this still has an issue?