Firstly,
Thanks for pointing out what should have been obvious .
"J.Teo" wrote:
> Peter Donald wrote:
> >
> > At 05:54 6/3/01 +1000, James Sinnamon wrote:
> > > <target name="clean" depends="init">
> > > <delete>
> > > <fileset dir="${build.dir}">
> > > <fileset dir="${src.dir}" includes="/**.class">
> >
> > You end your tags with > rather than /> which is confusing the XML parser
> > ;) Fix that and it should work.
D'oh!
> >
> > Cheers,
> >
> > Pete
>
> I wouldn't call it "confusing the XML parser", though. He said something he
> didn't mean. The XML parser was right. :) Sorry, don't mean to be picky ...
>
> -jay
Still, having fixed the obvious mistake, I find myself still unable to create a
"clean" target which works properly, in relation to "*~" files.
Here is the relevant sectiion of my build.xml file:
<target name="clean" depends="init">
<delete dir="${build.dir}"/>
<delete>
<fileset dir="${src.dir}" includes="**/*~"/>
<fileset dir="${src.dir}" includes="**/*.class"/>
</delete>
</target>
... (I have also tried <fileset dir="${src.dir}" includes="**/*\~"/> and
<fileset dir="${src.dir}" includes="**/*[~]"/>)
Here is a listing of files and directories:
me:~/multipi:find src
src
src/CVS
src/CVS/Root
src/CVS/Repository
src/CVS/Entries
src/org
src/org/CVS
src/org/CVS/Root
src/org/CVS/Repository
src/org/CVS/Entries
src/org/multipi
src/org/multipi/CVS
src/org/multipi/CVS/Root
src/org/multipi/CVS/Repository
src/org/multipi/CVS/Entries
src/org/multipi/EmptyMsg.java
src/org/multipi/Interaction.java
src/org/multipi/Interactor.java
src/org/multipi/Message.java
src/org/multipi/MsgHeader.java
src/org/multipi/MsgQueue.java
src/org/multipi/MsgSlot.java
src/org/multipi/Multipi.java
src/org/multipi/Team.java
src/org/multipi/Team.java~
src/org/multipi/MsgSlot.java~
src/org/multipi/Multipi.class
... I run ant as follows:
me:~/multipi:./build.sh clean
Building with classpath :
Starting Ant...
Searching for build.xml ...
Buildfile: /home/sinnamon/multipi/build.xml
init:
----------- MULTIPI 0.1.1 [2001] ------------
clean:
[delete] Deleting 1 files from /home/sinnamon/multipi/src
BUILD SUCCESSFUL
Total time: 2 seconds
... after running ant, the *.class file(s) is removed, but the *~ files
are still there:
me:~/multipi/src/org/multipi:ls
CVS Interactor.java MsgQueue.java Multipi.java
EmptyMsg.java Message.java MsgSlot.java Team.java
Interaction.java MsgHeader.java MsgSlot.java~ Team.java~
... would someone know how to fix this? A copy of clean target which
handles *~ files and other types would be greatly appreciated.
TIA
James
--
James Sinnamon [EMAIL PROTECTED]
ph 07 46315566, 0412 319669
PO Box 517 Darling Heights QLD 4350