ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hendrik Maryns <qwizv9...@sneakemail.com>
Subject [newbie] Why doesn’t my fileset get deleted?
Date Fri, 25 Jul 2008 14:12:01 GMT
Hi,

I am struggling to set up my JNI project with Ant.

I already have makefiles for the C part and for now, I resort to using

	<target name="c-build" description="Build the C files">
		<mkdir dir="${bindir}/Mona"/>
		<exec executable="make" dir="makefiles" />
	</target>

but I’d be happy if people could point me to other ways to to this. 
make invokes gcc, sets some platform-dependent compiler options and 
invokes swig.  Not easy to do in Ant, as far as I can tell.

But now to my real question: my clean target does not do as expected.  I 
have the following:

<property name="srcdir" value="src" />
<property name="bindir" value="bin" />

<target name="clean">
  <delete dir="${bindir}" />
  <delete>
   <fileset dir="${srcdir}/de/uni_tuebingen/sfb/lichtenstein/binarytrees">
    <patternset id="swig.java.files">
     <include name="Mona.java,MonaJNI.java,mg*.java" />
    </patternset>
   </fileset>
  </delete>
</target>

The bin directory gets deleted as expected, but those java files are 
not.  Why?

Buildfile: /home/hendrik/workspace/MonaSearch/build.xml
clean:
    [delete] Deleting directory /home/hendrik/workspace/MonaSearch/bin
BUILD SUCCESSFUL
Total time: 383 milliseconds

TIA, H.
-- 
Hendrik Maryns
http://tcl.sfs.uni-tuebingen.de/~hendrik/
==================
Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html


Mime
View raw message