*** To reproduce it you must have a file called name containing the special name "Modèle", then use the command : mkdir src; touch src/ffff; touch src/$(cat name) Then you will have a test directory src/ containing two files : ffff and Modèle
And here is the full build.xml file <?xml version="1.0" encoding="ISO-8859-1"?> <project default="go" basedir="." name="earAntBuild"> <!-- A property that is useless : does not fix my problem --> <property name="file.encoding" value="ISO-88591"/> <target name="go"> <!-- Delete the directory trees --> <delete dir="./src"/> </target> </project> *** To delete it manually, I use at the unix prompt : rm -rf ./src and it works.. So it is not a matter of access right. *** My problem status : What Stefan says (see below) seems to be interesting : It's probably an issue with your Java VM. Ant retrieves the file name from the OS via File.list() and later tries "new File(...).delete()". In your case the list call returns a file name that isn't handeled by the File constructor. AR explains also that the answer must be something related to the LANG env : My environment variable $LANG=fr_FR.fr I tried the LANG env var, and seems to work (except the 15 stdout printing of "couldn't set locale correctly.... couldn't set locale correctly" during ant execution). The perfect solution would be to know the JVM system properties (or Ant property) to set this LANG variable for my Ant process. Because I do not want to set LANG in the .profile of the user running it.... I tried user.language, file.encoding, but in vain. Any clue ? Thank for all -----Original Message----- From: Thomas Burdairon [mailto:[EMAIL PROTECTED] Sent: jeudi 9 février 2006 17:33 To: Ant Users List Subject: Re: Antwort: RE: Delete task failed to remove French file name sorry i can't reproduce You probably checked it before, but did you verify that you have the authorisation to delete it? did you try to delete it with success with an rm /path/to/your_file ? On Feb 9, 2006, at 4:44 PM, Noel Sebastien (BIL) wrote: > > > ant -version > Apache Ant version 1.6.5 compiled on June 2 2005 > > java -version > java version "1.4.1_06" > Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_06-b01) > Java HotSpot(TM) Client VM (build 1.4.1_06-b01, mixed mode) > > As said in the question, I use <delete > dir="folder_where_the_file_is"/> and not explicitly the filename. > Thanks > > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: jeudi 9 février 2006 16:34 > To: Ant Users List > Subject: Antwort: RE: Delete task failed to remove French file name > > do you try to delete the file with the name explicitly given in the > build.xml? > or is it somewhere in a filetree and some pattern find's it and fails > to delete? > > what's your JRE-version ? ant-version ? > > dvholten > > --------------------- > An electronic message is not binding on its sender. > Any message referring to a binding engagement must be confirmed in > writing and duly signed. > --------------------- > > > > --------------------- > An electronic message is not binding on its sender. > Any message referring to a binding engagement must be confirmed in > writing and duly signed. > --------------------- > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] For additional > commands, e-mail: [EMAIL PROTECTED] > Thomas --------------------- An electronic message is not binding on its sender. Any message referring to a binding engagement must be confirmed in writing and duly signed. --------------------- --------------------- An electronic message is not binding on its sender. Any message referring to a binding engagement must be confirmed in writing and duly signed. --------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]