You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Leon Pu <le...@yahoo.com.cn> on 2006/05/10 16:13:32 UTC

Failed to execute task move in Windows

Hi all,

my build file with task move failed in Windows, but the same build file
works in Linux. Could anybody tell me why?

[build-script]
<project default="test">
  <target name="test">
    <move file="bi.jar" tofile="Bi.jar" />
  </target>
</project>
[build-script]

[error-message]
Apache Ant version 1.6.5 compiled on June 2 2005
Buildfile: build.xml
Detected Java version: 1.4 in: C:\java\jdk\j2sdk1.4.2_09\jre
Detected OS: Windows 2000
parsing buildfile C:\Documents and
Settings\Administrator\Desktop\build.xml with
 URI =
file:///C:/Documents%20and%20Settings/Administrator/Desktop/build.xml
Project base dir set to: C:\Documents and
Settings\Administrator\Desktop
Build sequence for target(s) `test' is [test]
Complete build sequence is [test, ]

test:
     [move] Moving 1 file to C:\Documents and
Settings\Administrator\Desktop
     [move] Attempting to rename: C:\Documents and
Settings\Administrator\Deskto
p\bi.jar to C:\Documents and Settings\Administrator\Desktop\Bi.jar
     [move] Copying C:\Documents and
Settings\Administrator\Desktop\bi.jar to C:
\Documents and Settings\Administrator\Desktop\Bi.jar

BUILD FAILED
C:\Documents and Settings\Administrator\Desktop\build.xml:3: Failed to
copy C:\D
ocuments and Settings\Administrator\Desktop\bi.jar to C:\Documents and
Settings\
Administrator\Desktop\Bi.jar due to C:\Documents and
Settings\Administrator\Desk
top\bi.jar (The system cannot find the file specified)
        at org.apache.tools.ant.taskdefs.Move.copyFile(Move.java:274)
        at org.apache.tools.ant.taskdefs.Move.moveFile(Move.java:226)
        at
org.apache.tools.ant.taskdefs.Move.doFileOperations(Move.java:153)
        at org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:430)
        at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at org.apache.tools.ant.Target.execute(Target.java:341)
        at org.apache.tools.ant.Target.performTasks(Target.java:369)
        at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
        at
org.apache.tools.ant.Project.executeTarget(Project.java:1185)
        at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
cutor.java:40)
        at
org.apache.tools.ant.Project.executeTargets(Project.java:1068)
        at org.apache.tools.ant.Main.runBuild(Main.java:668)
        at org.apache.tools.ant.Main.startAnt(Main.java:187)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
Caused by: java.io.FileNotFoundException: C:\Documents and
Settings\Administrato
r\Desktop\bi.jar (The system cannot find the file specified)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:106)
        at
org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:630)
        at org.apache.tools.ant.taskdefs.Move.copyFile(Move.java:262)
        ... 15 more
--- Nested Exception ---
java.io.FileNotFoundException: C:\Documents and
Settings\Administrator\Desktop\b
i.jar (The system cannot find the file specified)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:106)
        at
org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:630)
        at org.apache.tools.ant.taskdefs.Move.copyFile(Move.java:262)
        at org.apache.tools.ant.taskdefs.Move.moveFile(Move.java:226)
        at
org.apache.tools.ant.taskdefs.Move.doFileOperations(Move.java:153)
        at org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:430)
        at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at org.apache.tools.ant.Target.execute(Target.java:341)
        at org.apache.tools.ant.Target.performTasks(Target.java:369)
        at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
        at
org.apache.tools.ant.Project.executeTarget(Project.java:1185)
        at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
cutor.java:40)
        at
org.apache.tools.ant.Project.executeTargets(Project.java:1068)
        at org.apache.tools.ant.Main.runBuild(Main.java:668)
        at org.apache.tools.ant.Main.startAnt(Main.java:187)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)

Total time: 1 second
[error-message]


Best regards,
Leon

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: Failed to execute task move in Windows

Posted by "Alexey N. Solofnenko" <A....@mdl.com>.
You can do it now [after Apache servers are working again]:

svn co http://svn.apache.org/repos/asf/ant/core/trunk ant

But you will have to build it yourself. There is fetch.xml build file to 
load external dependencies (set JAVA_HOME and launch "build -f 
fetch.xml") or load necessary dependencies yourself and put the jars 
into lib/optional folder. To build, execute "build dist".

- Alexey.


Rhino wrote:
> How soon are we likely to be able to download 1.7?
>
> I'm not asking because of the renaming bug in the move task; I'm just 
> curious about when we'll see 1.7.
>
> -- 
> Rhino
>
> ----- Original Message ----- From: "Matt Benson" <gu...@yahoo.com>
> To: "Ant Users List" <us...@ant.apache.org>
> Sent: Wednesday, May 10, 2006 3:50 PM
> Subject: Re: Failed to execute task move in Windows
>
>
>> duh... make that "I'm about to commit it as soon as
>> minotaur comes back up."
>>
>> -Matt
>>
>> --- Matt Benson <gu...@yahoo.com> wrote:
>>
>>> I'm about to commit it.  File.equals() should be
>>> fine
>>> in this case.
>>>
>>> -Matt
>>>
>>> --- "Alexey N. Solofnenko" <A....@mdl.com>
>>> wrote:
>>>
>>> > No, it is not.
>>> >
>>> > - Alexey.
>>> >
>>> > Rhino wrote:
>>> > > Do we know _for sure_ that this bug is fixed in
>>> > 1.7?
>>> > >
>>> > > -- > > Rhino
>>> > >
>>> > > ----- Original Message ----- From: "Scot P.
>>> > Floess"
>>> > > <fl...@mindspring.com>
>>> > > To: "Ant Users List" <us...@ant.apache.org>
>>> > > Sent: Wednesday, May 10, 2006 3:16 PM
>>> > > Subject: Re: Failed to execute task move in
>>> > Windows
>>> > >
>>> > >
>>> > >> When is 1.7 coming out?
>>> > >>
>>> > >> Anthony Goubard wrote:
>>> > >>> Hi,
>>> > >>>
>>> > >>> Yes, I filled a bug about it 6 months ago. And
>>> > then a few weeks
>>> > >>> later I fixed the bug. I've submitted the
>>> patch
>>> > with the bug but the
>>> > >>> patch is not applied yet to the source code.
>>> > >>>
>>> >
>>>
>> http://issues.apache.org/bugzilla/show_bug.cgi?id=37701
>>> > >>>
>>> > >>> Hope this help for the patch to be in 1.7.
>>> > >>>
>>> > >>> Anthony
>>> > >>>
>>> > >>> Alexey N. Solofnenko wrote:
>>> > >>>
>>> > >>>> I think there was a bug with <move> that just
>>> > changes character
>>> > >>>> case on a case-insensitive file systems.
>>> <move>
>>> > thought that the
>>> > >>>> destination file already exists, so it
>>> deleted
>>> > it, but instead the
>>> > >>>> original file was deleted. I think it was
>>> fixed
>>> > in 1.7.
>>> > >>>>
>>> > >>>> - Alexey.
>>> > >>>>
>>> > >>>> Leon Pu wrote:
>>> > >>>>
>>> > >>>>> Hi all,
>>> > >>>>>
>>> > >>>>> my build file with task move failed in
>>> > Windows, but the same build
>>> > >>>>> file
>>> > >>>>> works in Linux. Could anybody tell me why?
>>> > >>>>>
>>> > >>>>> [build-script]
>>> > >>>>> <project default="test">
>>> > >>>>>   <target name="test">
>>> > >>>>>     <move file="bi.jar" tofile="Bi.jar" />
>>> > >>>>>   </target>
>>> > >>>>> </project>
>>> > >>>>> [build-script]
>>> > >>>>>
>>> > >>>>> [error-message]
>>> > >>>>> Apache Ant version 1.6.5 compiled on June 2
>>> > 2005
>>> > >>>>> Buildfile: build.xml
>>> > >>>>> Detected Java version: 1.4 in:
>>> > C:\java\jdk\j2sdk1.4.2_09\jre
>>> > >>>>> Detected OS: Windows 2000
>>> > >>>>> parsing buildfile C:\Documents and
>>> > >>>>> Settings\Administrator\Desktop\build.xml
>>> with
>>> > >>>>>  URI =
>>> > >>>>>
>>> >
>>>
>> file:///C:/Documents%20and%20Settings/Administrator/Desktop/build.xml
>>> > >>>>> Project base dir set to: C:\Documents and
>>> > >>>>> Settings\Administrator\Desktop
>>> > >>>>> Build sequence for target(s) `test' is
>>> [test]
>>> > >>>>> Complete build sequence is [test, ]
>>> > >>>>>
>>> > >>>>> test:
>>> > >>>>>      [move] Moving 1 file to C:\Documents
>>> and
>>> > >>>>> Settings\Administrator\Desktop
>>> > >>>>>      [move] Attempting to rename:
>>> C:\Documents
>>> > and
>>> > >>>>> Settings\Administrator\Deskto
>>> > >>>>> p\bi.jar to C:\Documents and
>>> > Settings\Administrator\Desktop\Bi.jar
>>> > >>>>>      [move] Copying C:\Documents and
>>> > >>>>> Settings\Administrator\Desktop\bi.jar to C:
>>> > >>>>> \Documents and
>>> > Settings\Administrator\Desktop\Bi.jar
>>> > >>>>>
>>> > >>>>> BUILD FAILED
>>> > >>>>> C:\Documents and
>>> > Settings\Administrator\Desktop\build.xml:3:
>>> > >>>>> Failed to
>>> > >>>>> copy C:\D
>>> > >>>>> ocuments and
>>> > Settings\Administrator\Desktop\bi.jar to
>>> > C:\Documents
>>> > >>>>> and
>>> > >>>>> Settings\
>>> > >>>>> Administrator\Desktop\Bi.jar due to
>>> > C:\Documents and
>>> > >>>>> Settings\Administrator\Desk
>>> > >>>>> top\bi.jar (The system cannot find the file
>>> > specified)
>>> > >>>>>         at
>>> >
>>>
>> org.apache.tools.ant.taskdefs.Move.copyFile(Move.java:274)
>>> > >>>>>         at
>>> >
>>>
>> org.apache.tools.ant.taskdefs.Move.moveFile(Move.java:226)
>>> > >>>>>         at
>>> > >>>>>
>>> >
>>>
>> org.apache.tools.ant.taskdefs.Move.doFileOperations(Move.java:153)
>>> > >>>>>         at
>>> >
>>>
>> org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:430)
>>> > >>>>>         at
>>> > >>>>>
>>> >
>>>
>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>>> > >>>>>         at
>>> > org.apache.tools.ant.Task.perform(Task.java:364)
>>> > >>>>>         at
>>> >
>>> org.apache.tools.ant.Target.execute(Target.java:341)
>>> > >>>>>         at
>>> >
>>>
>> org.apache.tools.ant.Target.performTasks(Target.java:369)
>>> > >>>>>         at
>>> > >>>>>
>>> >
>>>
>> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
>>> > >>>>>         at
>>> > >>>>>
>>> >
>>>
>> org.apache.tools.ant.Project.executeTarget(Project.java:1185)
>>> > >>>>>         at
>>> > >>>>>
>>> >
>>>
>> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
>>> > >>>>> cutor.java:40)
>>> > >>>>>         at
>>> > >>>>>
>>> >
>>>
>> org.apache.tools.ant.Project.executeTargets(Project.java:1068)
>>> > >>>>>         at
>>> > org.apache.tools.ant.Main.runBuild(Main.java:668)
>>> > >>>>>         at
>>> > org.apache.tools.ant.Main.startAnt(Main.java:187)
>>> > >>>>>         at
>>> > >>>>>
>>> >
>>>
>> org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
>>> > >>>>>         at
>>> > >>>>>
>>> >
>>>
>> org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
>>> > >>>>> Caused by: java.io.FileNotFoundException:
>>> > C:\Documents and
>>> > >>>>> Settings\Administrato
>>> > >>>>> r\Desktop\bi.jar (The system cannot find the
>>> > file specified)
>>> > >>>>>         at
>>> java.io.FileInputStream.open(Native
>>> > Method)
>>> > >>>>>         at
>>> >
>>>
>> java.io.FileInputStream.<init>(FileInputStream.java:106)
>>> > >>>>>         at
>>> > >>>>>
>>> >
>>>
>> org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:630)
>>> > >>>>>         at
>>>
>> === message truncated ===
>>
>>
>> __________________________________________________
>> Do You Yahoo!?
>> Tired of spam?  Yahoo! Mail has the best spam protection around
>> http://mail.yahoo.com
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>> For additional commands, e-mail: user-help@ant.apache.org
>>
>>
>> -- 
>> No virus found in this incoming message.
>> Checked by AVG Free Edition.
>> Version: 7.1.392 / Virus Database: 268.5.5/335 - Release Date: 
>> 09/05/2006
>>
>>
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: Failed to execute task move in Windows

Posted by Rhino <rh...@sympatico.ca>.
How soon are we likely to be able to download 1.7?

I'm not asking because of the renaming bug in the move task; I'm just 
curious about when we'll see 1.7.

--
Rhino

----- Original Message ----- 
From: "Matt Benson" <gu...@yahoo.com>
To: "Ant Users List" <us...@ant.apache.org>
Sent: Wednesday, May 10, 2006 3:50 PM
Subject: Re: Failed to execute task move in Windows


> duh... make that "I'm about to commit it as soon as
> minotaur comes back up."
>
> -Matt
>
> --- Matt Benson <gu...@yahoo.com> wrote:
>
>> I'm about to commit it.  File.equals() should be
>> fine
>> in this case.
>>
>> -Matt
>>
>> --- "Alexey N. Solofnenko" <A....@mdl.com>
>> wrote:
>>
>> > No, it is not.
>> >
>> > - Alexey.
>> >
>> > Rhino wrote:
>> > > Do we know _for sure_ that this bug is fixed in
>> > 1.7?
>> > >
>> > > -- 
>> > > Rhino
>> > >
>> > > ----- Original Message ----- From: "Scot P.
>> > Floess"
>> > > <fl...@mindspring.com>
>> > > To: "Ant Users List" <us...@ant.apache.org>
>> > > Sent: Wednesday, May 10, 2006 3:16 PM
>> > > Subject: Re: Failed to execute task move in
>> > Windows
>> > >
>> > >
>> > >> When is 1.7 coming out?
>> > >>
>> > >> Anthony Goubard wrote:
>> > >>> Hi,
>> > >>>
>> > >>> Yes, I filled a bug about it 6 months ago. And
>> > then a few weeks
>> > >>> later I fixed the bug. I've submitted the
>> patch
>> > with the bug but the
>> > >>> patch is not applied yet to the source code.
>> > >>>
>> >
>>
> http://issues.apache.org/bugzilla/show_bug.cgi?id=37701
>> > >>>
>> > >>> Hope this help for the patch to be in 1.7.
>> > >>>
>> > >>> Anthony
>> > >>>
>> > >>> Alexey N. Solofnenko wrote:
>> > >>>
>> > >>>> I think there was a bug with <move> that just
>> > changes character
>> > >>>> case on a case-insensitive file systems.
>> <move>
>> > thought that the
>> > >>>> destination file already exists, so it
>> deleted
>> > it, but instead the
>> > >>>> original file was deleted. I think it was
>> fixed
>> > in 1.7.
>> > >>>>
>> > >>>> - Alexey.
>> > >>>>
>> > >>>> Leon Pu wrote:
>> > >>>>
>> > >>>>> Hi all,
>> > >>>>>
>> > >>>>> my build file with task move failed in
>> > Windows, but the same build
>> > >>>>> file
>> > >>>>> works in Linux. Could anybody tell me why?
>> > >>>>>
>> > >>>>> [build-script]
>> > >>>>> <project default="test">
>> > >>>>>   <target name="test">
>> > >>>>>     <move file="bi.jar" tofile="Bi.jar" />
>> > >>>>>   </target>
>> > >>>>> </project>
>> > >>>>> [build-script]
>> > >>>>>
>> > >>>>> [error-message]
>> > >>>>> Apache Ant version 1.6.5 compiled on June 2
>> > 2005
>> > >>>>> Buildfile: build.xml
>> > >>>>> Detected Java version: 1.4 in:
>> > C:\java\jdk\j2sdk1.4.2_09\jre
>> > >>>>> Detected OS: Windows 2000
>> > >>>>> parsing buildfile C:\Documents and
>> > >>>>> Settings\Administrator\Desktop\build.xml
>> with
>> > >>>>>  URI =
>> > >>>>>
>> >
>>
> file:///C:/Documents%20and%20Settings/Administrator/Desktop/build.xml
>> > >>>>> Project base dir set to: C:\Documents and
>> > >>>>> Settings\Administrator\Desktop
>> > >>>>> Build sequence for target(s) `test' is
>> [test]
>> > >>>>> Complete build sequence is [test, ]
>> > >>>>>
>> > >>>>> test:
>> > >>>>>      [move] Moving 1 file to C:\Documents
>> and
>> > >>>>> Settings\Administrator\Desktop
>> > >>>>>      [move] Attempting to rename:
>> C:\Documents
>> > and
>> > >>>>> Settings\Administrator\Deskto
>> > >>>>> p\bi.jar to C:\Documents and
>> > Settings\Administrator\Desktop\Bi.jar
>> > >>>>>      [move] Copying C:\Documents and
>> > >>>>> Settings\Administrator\Desktop\bi.jar to C:
>> > >>>>> \Documents and
>> > Settings\Administrator\Desktop\Bi.jar
>> > >>>>>
>> > >>>>> BUILD FAILED
>> > >>>>> C:\Documents and
>> > Settings\Administrator\Desktop\build.xml:3:
>> > >>>>> Failed to
>> > >>>>> copy C:\D
>> > >>>>> ocuments and
>> > Settings\Administrator\Desktop\bi.jar to
>> > C:\Documents
>> > >>>>> and
>> > >>>>> Settings\
>> > >>>>> Administrator\Desktop\Bi.jar due to
>> > C:\Documents and
>> > >>>>> Settings\Administrator\Desk
>> > >>>>> top\bi.jar (The system cannot find the file
>> > specified)
>> > >>>>>         at
>> >
>>
> org.apache.tools.ant.taskdefs.Move.copyFile(Move.java:274)
>> > >>>>>         at
>> >
>>
> org.apache.tools.ant.taskdefs.Move.moveFile(Move.java:226)
>> > >>>>>         at
>> > >>>>>
>> >
>>
> org.apache.tools.ant.taskdefs.Move.doFileOperations(Move.java:153)
>> > >>>>>         at
>> >
>>
> org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:430)
>> > >>>>>         at
>> > >>>>>
>> >
>>
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>> > >>>>>         at
>> > org.apache.tools.ant.Task.perform(Task.java:364)
>> > >>>>>         at
>> >
>> org.apache.tools.ant.Target.execute(Target.java:341)
>> > >>>>>         at
>> >
>>
> org.apache.tools.ant.Target.performTasks(Target.java:369)
>> > >>>>>         at
>> > >>>>>
>> >
>>
> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
>> > >>>>>         at
>> > >>>>>
>> >
>>
> org.apache.tools.ant.Project.executeTarget(Project.java:1185)
>> > >>>>>         at
>> > >>>>>
>> >
>>
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
>> > >>>>> cutor.java:40)
>> > >>>>>         at
>> > >>>>>
>> >
>>
> org.apache.tools.ant.Project.executeTargets(Project.java:1068)
>> > >>>>>         at
>> > org.apache.tools.ant.Main.runBuild(Main.java:668)
>> > >>>>>         at
>> > org.apache.tools.ant.Main.startAnt(Main.java:187)
>> > >>>>>         at
>> > >>>>>
>> >
>>
> org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
>> > >>>>>         at
>> > >>>>>
>> >
>>
> org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
>> > >>>>> Caused by: java.io.FileNotFoundException:
>> > C:\Documents and
>> > >>>>> Settings\Administrato
>> > >>>>> r\Desktop\bi.jar (The system cannot find the
>> > file specified)
>> > >>>>>         at
>> java.io.FileInputStream.open(Native
>> > Method)
>> > >>>>>         at
>> >
>>
> java.io.FileInputStream.<init>(FileInputStream.java:106)
>> > >>>>>         at
>> > >>>>>
>> >
>>
> org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:630)
>> > >>>>>         at
>>
> === message truncated ===
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
> -- 
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.392 / Virus Database: 268.5.5/335 - Release Date: 09/05/2006
>
> 



-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.392 / Virus Database: 268.5.5/335 - Release Date: 09/05/2006


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: Failed to execute task move in Windows

Posted by "Alexey N. Solofnenko" <A....@mdl.com>.
Yes, I noticed that too...

- Alexey.

Matt Benson wrote:
> duh... make that "I'm about to commit it as soon as
> minotaur comes back up."
>
> -Matt
>
> --- Matt Benson <gu...@yahoo.com> wrote:
>
>   
>> I'm about to commit it.  File.equals() should be
>> fine
>> in this case.
>>
>> -Matt
>>
>> --- "Alexey N. Solofnenko" <A....@mdl.com>
>> wrote:
>>
>>     
>>> No, it is not.
>>>
>>> - Alexey.
>>>
>>> Rhino wrote:
>>>       
>>>> Do we know _for sure_ that this bug is fixed in
>>>>         
>>> 1.7?
>>>       
>>>> -- 
>>>> Rhino
>>>>
>>>> ----- Original Message ----- From: "Scot P.
>>>>         
>>> Floess" 
>>>       
>>>> <fl...@mindspring.com>
>>>> To: "Ant Users List" <us...@ant.apache.org>
>>>> Sent: Wednesday, May 10, 2006 3:16 PM
>>>> Subject: Re: Failed to execute task move in
>>>>         
>>> Windows
>>>       
>>>>         
>>>>> When is 1.7 coming out?
>>>>>
>>>>> Anthony Goubard wrote:
>>>>>           
>>>>>> Hi,
>>>>>>
>>>>>> Yes, I filled a bug about it 6 months ago. And
>>>>>>             
>>> then a few weeks 
>>>       
>>>>>> later I fixed the bug. I've submitted the
>>>>>>             
>> patch
>>     
>>> with the bug but the 
>>>       
>>>>>> patch is not applied yet to the source code.
>>>>>>
>>>>>>             
> http://issues.apache.org/bugzilla/show_bug.cgi?id=37701
>   
>>>>>> Hope this help for the patch to be in 1.7.
>>>>>>
>>>>>> Anthony
>>>>>>
>>>>>> Alexey N. Solofnenko wrote:
>>>>>>
>>>>>>             
>>>>>>> I think there was a bug with <move> that just
>>>>>>>               
>>> changes character 
>>>       
>>>>>>> case on a case-insensitive file systems.
>>>>>>>               
>> <move>
>>     
>>> thought that the 
>>>       
>>>>>>> destination file already exists, so it
>>>>>>>               
>> deleted
>>     
>>> it, but instead the 
>>>       
>>>>>>> original file was deleted. I think it was
>>>>>>>               
>> fixed
>>     
>>> in 1.7.
>>>       
>>>>>>> - Alexey.
>>>>>>>
>>>>>>> Leon Pu wrote:
>>>>>>>
>>>>>>>               
>>>>>>>> Hi all,
>>>>>>>>
>>>>>>>> my build file with task move failed in
>>>>>>>>                 
>>> Windows, but the same build 
>>>       
>>>>>>>> file
>>>>>>>> works in Linux. Could anybody tell me why?
>>>>>>>>
>>>>>>>> [build-script]
>>>>>>>> <project default="test">
>>>>>>>>   <target name="test">
>>>>>>>>     <move file="bi.jar" tofile="Bi.jar" />
>>>>>>>>   </target>
>>>>>>>> </project>
>>>>>>>> [build-script]
>>>>>>>>
>>>>>>>> [error-message]
>>>>>>>> Apache Ant version 1.6.5 compiled on June 2
>>>>>>>>                 
>>> 2005
>>>       
>>>>>>>> Buildfile: build.xml
>>>>>>>> Detected Java version: 1.4 in:
>>>>>>>>                 
>>> C:\java\jdk\j2sdk1.4.2_09\jre
>>>       
>>>>>>>> Detected OS: Windows 2000
>>>>>>>> parsing buildfile C:\Documents and
>>>>>>>> Settings\Administrator\Desktop\build.xml
>>>>>>>>                 
>> with
>>     
>>>>>>>>  URI =
>>>>>>>>
>>>>>>>>                 
> file:///C:/Documents%20and%20Settings/Administrator/Desktop/build.xml
>   
>>>>>>>> Project base dir set to: C:\Documents and
>>>>>>>> Settings\Administrator\Desktop
>>>>>>>> Build sequence for target(s) `test' is
>>>>>>>>                 
>> [test]
>>     
>>>>>>>> Complete build sequence is [test, ]
>>>>>>>>
>>>>>>>> test:
>>>>>>>>      [move] Moving 1 file to C:\Documents
>>>>>>>>                 
>> and
>>     
>>>>>>>> Settings\Administrator\Desktop
>>>>>>>>      [move] Attempting to rename:
>>>>>>>>                 
>> C:\Documents
>>     
>>> and
>>>       
>>>>>>>> Settings\Administrator\Deskto
>>>>>>>> p\bi.jar to C:\Documents and
>>>>>>>>                 
>>> Settings\Administrator\Desktop\Bi.jar
>>>       
>>>>>>>>      [move] Copying C:\Documents and
>>>>>>>> Settings\Administrator\Desktop\bi.jar to C:
>>>>>>>> \Documents and
>>>>>>>>                 
>>> Settings\Administrator\Desktop\Bi.jar
>>>       
>>>>>>>> BUILD FAILED
>>>>>>>> C:\Documents and
>>>>>>>>                 
>>> Settings\Administrator\Desktop\build.xml:3: 
>>>       
>>>>>>>> Failed to
>>>>>>>> copy C:\D
>>>>>>>> ocuments and
>>>>>>>>                 
>>> Settings\Administrator\Desktop\bi.jar to
>>> C:\Documents 
>>>       
>>>>>>>> and
>>>>>>>> Settings\
>>>>>>>> Administrator\Desktop\Bi.jar due to
>>>>>>>>                 
>>> C:\Documents and
>>>       
>>>>>>>> Settings\Administrator\Desk
>>>>>>>> top\bi.jar (The system cannot find the file
>>>>>>>>                 
>>> specified)
>>>       
>>>>>>>>         at
>>>>>>>>                 
> org.apache.tools.ant.taskdefs.Move.copyFile(Move.java:274)
>   
>>>>>>>>         at
>>>>>>>>                 
> org.apache.tools.ant.taskdefs.Move.moveFile(Move.java:226)
>   
>>>>>>>>         at
>>>>>>>>
>>>>>>>>                 
> org.apache.tools.ant.taskdefs.Move.doFileOperations(Move.java:153)
>   
>>>>>>>>         at
>>>>>>>>                 
> org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:430)
>   
>>>>>>>>         at
>>>>>>>>
>>>>>>>>                 
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>   
>>>>>>>>         at
>>>>>>>>                 
>>> org.apache.tools.ant.Task.perform(Task.java:364)
>>>       
>>>>>>>>         at
>>>>>>>>                 
>> org.apache.tools.ant.Target.execute(Target.java:341)
>>     
>>>>>>>>         at
>>>>>>>>                 
> org.apache.tools.ant.Target.performTasks(Target.java:369)
>   
>>>>>>>>         at
>>>>>>>>
>>>>>>>>                 
> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
>   
>>>>>>>>         at
>>>>>>>>
>>>>>>>>                 
> org.apache.tools.ant.Project.executeTarget(Project.java:1185)
>   
>>>>>>>>         at
>>>>>>>>
>>>>>>>>                 
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
>   
>>>>>>>> cutor.java:40)
>>>>>>>>         at
>>>>>>>>
>>>>>>>>                 
> org.apache.tools.ant.Project.executeTargets(Project.java:1068)
>   
>>>>>>>>         at
>>>>>>>>                 
>>> org.apache.tools.ant.Main.runBuild(Main.java:668)
>>>       
>>>>>>>>         at
>>>>>>>>                 
>>> org.apache.tools.ant.Main.startAnt(Main.java:187)
>>>       
>>>>>>>>         at 
>>>>>>>>
>>>>>>>>                 
> org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
>   
>>>>>>>>         at 
>>>>>>>>
>>>>>>>>                 
> org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
>   
>>>>>>>> Caused by: java.io.FileNotFoundException:
>>>>>>>>                 
>>> C:\Documents and
>>>       
>>>>>>>> Settings\Administrato
>>>>>>>> r\Desktop\bi.jar (The system cannot find the
>>>>>>>>                 
>>> file specified)
>>>       
>>>>>>>>         at
>>>>>>>>                 
>> java.io.FileInputStream.open(Native
>>     
>>> Method)
>>>       
>>>>>>>>         at
>>>>>>>>                 
> java.io.FileInputStream.<init>(FileInputStream.java:106)
>   
>>>>>>>>         at
>>>>>>>>
>>>>>>>>                 
> org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:630)
>   
>>>>>>>>         at
>>>>>>>>                 
> === message truncated ===
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>   

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: Failed to execute task move in Windows

Posted by Matt Benson <gu...@yahoo.com>.
duh... make that "I'm about to commit it as soon as
minotaur comes back up."

-Matt

--- Matt Benson <gu...@yahoo.com> wrote:

> I'm about to commit it.  File.equals() should be
> fine
> in this case.
> 
> -Matt
> 
> --- "Alexey N. Solofnenko" <A....@mdl.com>
> wrote:
> 
> > No, it is not.
> > 
> > - Alexey.
> > 
> > Rhino wrote:
> > > Do we know _for sure_ that this bug is fixed in
> > 1.7?
> > >
> > > -- 
> > > Rhino
> > >
> > > ----- Original Message ----- From: "Scot P.
> > Floess" 
> > > <fl...@mindspring.com>
> > > To: "Ant Users List" <us...@ant.apache.org>
> > > Sent: Wednesday, May 10, 2006 3:16 PM
> > > Subject: Re: Failed to execute task move in
> > Windows
> > >
> > >
> > >> When is 1.7 coming out?
> > >>
> > >> Anthony Goubard wrote:
> > >>> Hi,
> > >>>
> > >>> Yes, I filled a bug about it 6 months ago. And
> > then a few weeks 
> > >>> later I fixed the bug. I've submitted the
> patch
> > with the bug but the 
> > >>> patch is not applied yet to the source code.
> > >>>
> >
>
http://issues.apache.org/bugzilla/show_bug.cgi?id=37701
> > >>>
> > >>> Hope this help for the patch to be in 1.7.
> > >>>
> > >>> Anthony
> > >>>
> > >>> Alexey N. Solofnenko wrote:
> > >>>
> > >>>> I think there was a bug with <move> that just
> > changes character 
> > >>>> case on a case-insensitive file systems.
> <move>
> > thought that the 
> > >>>> destination file already exists, so it
> deleted
> > it, but instead the 
> > >>>> original file was deleted. I think it was
> fixed
> > in 1.7.
> > >>>>
> > >>>> - Alexey.
> > >>>>
> > >>>> Leon Pu wrote:
> > >>>>
> > >>>>> Hi all,
> > >>>>>
> > >>>>> my build file with task move failed in
> > Windows, but the same build 
> > >>>>> file
> > >>>>> works in Linux. Could anybody tell me why?
> > >>>>>
> > >>>>> [build-script]
> > >>>>> <project default="test">
> > >>>>>   <target name="test">
> > >>>>>     <move file="bi.jar" tofile="Bi.jar" />
> > >>>>>   </target>
> > >>>>> </project>
> > >>>>> [build-script]
> > >>>>>
> > >>>>> [error-message]
> > >>>>> Apache Ant version 1.6.5 compiled on June 2
> > 2005
> > >>>>> Buildfile: build.xml
> > >>>>> Detected Java version: 1.4 in:
> > C:\java\jdk\j2sdk1.4.2_09\jre
> > >>>>> Detected OS: Windows 2000
> > >>>>> parsing buildfile C:\Documents and
> > >>>>> Settings\Administrator\Desktop\build.xml
> with
> > >>>>>  URI =
> > >>>>>
> >
>
file:///C:/Documents%20and%20Settings/Administrator/Desktop/build.xml
> > >>>>> Project base dir set to: C:\Documents and
> > >>>>> Settings\Administrator\Desktop
> > >>>>> Build sequence for target(s) `test' is
> [test]
> > >>>>> Complete build sequence is [test, ]
> > >>>>>
> > >>>>> test:
> > >>>>>      [move] Moving 1 file to C:\Documents
> and
> > >>>>> Settings\Administrator\Desktop
> > >>>>>      [move] Attempting to rename:
> C:\Documents
> > and
> > >>>>> Settings\Administrator\Deskto
> > >>>>> p\bi.jar to C:\Documents and
> > Settings\Administrator\Desktop\Bi.jar
> > >>>>>      [move] Copying C:\Documents and
> > >>>>> Settings\Administrator\Desktop\bi.jar to C:
> > >>>>> \Documents and
> > Settings\Administrator\Desktop\Bi.jar
> > >>>>>
> > >>>>> BUILD FAILED
> > >>>>> C:\Documents and
> > Settings\Administrator\Desktop\build.xml:3: 
> > >>>>> Failed to
> > >>>>> copy C:\D
> > >>>>> ocuments and
> > Settings\Administrator\Desktop\bi.jar to
> > C:\Documents 
> > >>>>> and
> > >>>>> Settings\
> > >>>>> Administrator\Desktop\Bi.jar due to
> > C:\Documents and
> > >>>>> Settings\Administrator\Desk
> > >>>>> top\bi.jar (The system cannot find the file
> > specified)
> > >>>>>         at
> >
>
org.apache.tools.ant.taskdefs.Move.copyFile(Move.java:274)
> > >>>>>         at
> >
>
org.apache.tools.ant.taskdefs.Move.moveFile(Move.java:226)
> > >>>>>         at
> > >>>>>
> >
>
org.apache.tools.ant.taskdefs.Move.doFileOperations(Move.java:153)
> > >>>>>         at
> >
>
org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:430)
> > >>>>>         at
> > >>>>>
> >
>
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
> > >>>>>         at
> > org.apache.tools.ant.Task.perform(Task.java:364)
> > >>>>>         at
> >
> org.apache.tools.ant.Target.execute(Target.java:341)
> > >>>>>         at
> >
>
org.apache.tools.ant.Target.performTasks(Target.java:369)
> > >>>>>         at
> > >>>>>
> >
>
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
> > >>>>>         at
> > >>>>>
> >
>
org.apache.tools.ant.Project.executeTarget(Project.java:1185)
> > >>>>>         at
> > >>>>>
> >
>
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
> > >>>>> cutor.java:40)
> > >>>>>         at
> > >>>>>
> >
>
org.apache.tools.ant.Project.executeTargets(Project.java:1068)
> > >>>>>         at
> > org.apache.tools.ant.Main.runBuild(Main.java:668)
> > >>>>>         at
> > org.apache.tools.ant.Main.startAnt(Main.java:187)
> > >>>>>         at 
> > >>>>>
> >
>
org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
> > >>>>>         at 
> > >>>>>
> >
>
org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
> > >>>>> Caused by: java.io.FileNotFoundException:
> > C:\Documents and
> > >>>>> Settings\Administrato
> > >>>>> r\Desktop\bi.jar (The system cannot find the
> > file specified)
> > >>>>>         at
> java.io.FileInputStream.open(Native
> > Method)
> > >>>>>         at
> >
>
java.io.FileInputStream.<init>(FileInputStream.java:106)
> > >>>>>         at
> > >>>>>
> >
>
org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:630)
> > >>>>>         at
> 
=== message truncated ===


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: Failed to execute task move in Windows

Posted by Matt Benson <gu...@yahoo.com>.
I'm about to commit it.  File.equals() should be fine
in this case.

-Matt

--- "Alexey N. Solofnenko" <A....@mdl.com>
wrote:

> No, it is not.
> 
> - Alexey.
> 
> Rhino wrote:
> > Do we know _for sure_ that this bug is fixed in
> 1.7?
> >
> > -- 
> > Rhino
> >
> > ----- Original Message ----- From: "Scot P.
> Floess" 
> > <fl...@mindspring.com>
> > To: "Ant Users List" <us...@ant.apache.org>
> > Sent: Wednesday, May 10, 2006 3:16 PM
> > Subject: Re: Failed to execute task move in
> Windows
> >
> >
> >> When is 1.7 coming out?
> >>
> >> Anthony Goubard wrote:
> >>> Hi,
> >>>
> >>> Yes, I filled a bug about it 6 months ago. And
> then a few weeks 
> >>> later I fixed the bug. I've submitted the patch
> with the bug but the 
> >>> patch is not applied yet to the source code.
> >>>
>
http://issues.apache.org/bugzilla/show_bug.cgi?id=37701
> >>>
> >>> Hope this help for the patch to be in 1.7.
> >>>
> >>> Anthony
> >>>
> >>> Alexey N. Solofnenko wrote:
> >>>
> >>>> I think there was a bug with <move> that just
> changes character 
> >>>> case on a case-insensitive file systems. <move>
> thought that the 
> >>>> destination file already exists, so it deleted
> it, but instead the 
> >>>> original file was deleted. I think it was fixed
> in 1.7.
> >>>>
> >>>> - Alexey.
> >>>>
> >>>> Leon Pu wrote:
> >>>>
> >>>>> Hi all,
> >>>>>
> >>>>> my build file with task move failed in
> Windows, but the same build 
> >>>>> file
> >>>>> works in Linux. Could anybody tell me why?
> >>>>>
> >>>>> [build-script]
> >>>>> <project default="test">
> >>>>>   <target name="test">
> >>>>>     <move file="bi.jar" tofile="Bi.jar" />
> >>>>>   </target>
> >>>>> </project>
> >>>>> [build-script]
> >>>>>
> >>>>> [error-message]
> >>>>> Apache Ant version 1.6.5 compiled on June 2
> 2005
> >>>>> Buildfile: build.xml
> >>>>> Detected Java version: 1.4 in:
> C:\java\jdk\j2sdk1.4.2_09\jre
> >>>>> Detected OS: Windows 2000
> >>>>> parsing buildfile C:\Documents and
> >>>>> Settings\Administrator\Desktop\build.xml with
> >>>>>  URI =
> >>>>>
>
file:///C:/Documents%20and%20Settings/Administrator/Desktop/build.xml
> >>>>> Project base dir set to: C:\Documents and
> >>>>> Settings\Administrator\Desktop
> >>>>> Build sequence for target(s) `test' is [test]
> >>>>> Complete build sequence is [test, ]
> >>>>>
> >>>>> test:
> >>>>>      [move] Moving 1 file to C:\Documents and
> >>>>> Settings\Administrator\Desktop
> >>>>>      [move] Attempting to rename: C:\Documents
> and
> >>>>> Settings\Administrator\Deskto
> >>>>> p\bi.jar to C:\Documents and
> Settings\Administrator\Desktop\Bi.jar
> >>>>>      [move] Copying C:\Documents and
> >>>>> Settings\Administrator\Desktop\bi.jar to C:
> >>>>> \Documents and
> Settings\Administrator\Desktop\Bi.jar
> >>>>>
> >>>>> BUILD FAILED
> >>>>> C:\Documents and
> Settings\Administrator\Desktop\build.xml:3: 
> >>>>> Failed to
> >>>>> copy C:\D
> >>>>> ocuments and
> Settings\Administrator\Desktop\bi.jar to
> C:\Documents 
> >>>>> and
> >>>>> Settings\
> >>>>> Administrator\Desktop\Bi.jar due to
> C:\Documents and
> >>>>> Settings\Administrator\Desk
> >>>>> top\bi.jar (The system cannot find the file
> specified)
> >>>>>         at
>
org.apache.tools.ant.taskdefs.Move.copyFile(Move.java:274)
> >>>>>         at
>
org.apache.tools.ant.taskdefs.Move.moveFile(Move.java:226)
> >>>>>         at
> >>>>>
>
org.apache.tools.ant.taskdefs.Move.doFileOperations(Move.java:153)
> >>>>>         at
>
org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:430)
> >>>>>         at
> >>>>>
>
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
> >>>>>         at
> org.apache.tools.ant.Task.perform(Task.java:364)
> >>>>>         at
> org.apache.tools.ant.Target.execute(Target.java:341)
> >>>>>         at
>
org.apache.tools.ant.Target.performTasks(Target.java:369)
> >>>>>         at
> >>>>>
>
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
> >>>>>         at
> >>>>>
>
org.apache.tools.ant.Project.executeTarget(Project.java:1185)
> >>>>>         at
> >>>>>
>
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
> >>>>> cutor.java:40)
> >>>>>         at
> >>>>>
>
org.apache.tools.ant.Project.executeTargets(Project.java:1068)
> >>>>>         at
> org.apache.tools.ant.Main.runBuild(Main.java:668)
> >>>>>         at
> org.apache.tools.ant.Main.startAnt(Main.java:187)
> >>>>>         at 
> >>>>>
>
org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
> >>>>>         at 
> >>>>>
>
org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
> >>>>> Caused by: java.io.FileNotFoundException:
> C:\Documents and
> >>>>> Settings\Administrato
> >>>>> r\Desktop\bi.jar (The system cannot find the
> file specified)
> >>>>>         at java.io.FileInputStream.open(Native
> Method)
> >>>>>         at
>
java.io.FileInputStream.<init>(FileInputStream.java:106)
> >>>>>         at
> >>>>>
>
org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:630)
> >>>>>         at
>
org.apache.tools.ant.taskdefs.Move.copyFile(Move.java:262)
> >>>>>         ... 15 more
> >>>>> --- Nested Exception ---
> >>>>> java.io.FileNotFoundException: C:\Documents
> and
> >>>>> Settings\Administrator\Desktop\b
> >>>>> i.jar (The system cannot find the file
> specified)
> >>>>>         at java.io.FileInputStream.open(Native
> Method)
> >>>>>         at
>
java.io.FileInputStream.<init>(FileInputStream.java:106)
> >>>>>         at
> >>>>>
>
org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:630)
> >>>>>         at
>
org.apache.tools.ant.taskdefs.Move.copyFile(Move.java:262)
> >>>>>         at
>
org.apache.tools.ant.taskdefs.Move.moveFile(Move.java:226)
> >>>>>         at
> >>>>>
>
org.apache.tools.ant.taskdefs.Move.doFileOperations(Move.java:153)
> >>>>>         at
>
org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:430)
> >>>>>         at
> >>>>>
>
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
> >>>>>         at
> org.apache.tools.ant.Task.perform(Task.java:364)
> >>>>>         at
> org.apache.tools.ant.Target.execute(Target.java:341)
> >>>>>         at
>
org.apache.tools.ant.Target.performTasks(Target.java:369)
> >>>>>         at
> >>>>>
>
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
> 
=== message truncated ===


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: Failed to execute task move in Windows

Posted by "Alexey N. Solofnenko" <A....@mdl.com>.
No, it is not.

- Alexey.

Rhino wrote:
> Do we know _for sure_ that this bug is fixed in 1.7?
>
> -- 
> Rhino
>
> ----- Original Message ----- From: "Scot P. Floess" 
> <fl...@mindspring.com>
> To: "Ant Users List" <us...@ant.apache.org>
> Sent: Wednesday, May 10, 2006 3:16 PM
> Subject: Re: Failed to execute task move in Windows
>
>
>> When is 1.7 coming out?
>>
>> Anthony Goubard wrote:
>>> Hi,
>>>
>>> Yes, I filled a bug about it 6 months ago. And then a few weeks 
>>> later I fixed the bug. I've submitted the patch with the bug but the 
>>> patch is not applied yet to the source code.
>>> http://issues.apache.org/bugzilla/show_bug.cgi?id=37701
>>>
>>> Hope this help for the patch to be in 1.7.
>>>
>>> Anthony
>>>
>>> Alexey N. Solofnenko wrote:
>>>
>>>> I think there was a bug with <move> that just changes character 
>>>> case on a case-insensitive file systems. <move> thought that the 
>>>> destination file already exists, so it deleted it, but instead the 
>>>> original file was deleted. I think it was fixed in 1.7.
>>>>
>>>> - Alexey.
>>>>
>>>> Leon Pu wrote:
>>>>
>>>>> Hi all,
>>>>>
>>>>> my build file with task move failed in Windows, but the same build 
>>>>> file
>>>>> works in Linux. Could anybody tell me why?
>>>>>
>>>>> [build-script]
>>>>> <project default="test">
>>>>>   <target name="test">
>>>>>     <move file="bi.jar" tofile="Bi.jar" />
>>>>>   </target>
>>>>> </project>
>>>>> [build-script]
>>>>>
>>>>> [error-message]
>>>>> Apache Ant version 1.6.5 compiled on June 2 2005
>>>>> Buildfile: build.xml
>>>>> Detected Java version: 1.4 in: C:\java\jdk\j2sdk1.4.2_09\jre
>>>>> Detected OS: Windows 2000
>>>>> parsing buildfile C:\Documents and
>>>>> Settings\Administrator\Desktop\build.xml with
>>>>>  URI =
>>>>> file:///C:/Documents%20and%20Settings/Administrator/Desktop/build.xml
>>>>> Project base dir set to: C:\Documents and
>>>>> Settings\Administrator\Desktop
>>>>> Build sequence for target(s) `test' is [test]
>>>>> Complete build sequence is [test, ]
>>>>>
>>>>> test:
>>>>>      [move] Moving 1 file to C:\Documents and
>>>>> Settings\Administrator\Desktop
>>>>>      [move] Attempting to rename: C:\Documents and
>>>>> Settings\Administrator\Deskto
>>>>> p\bi.jar to C:\Documents and Settings\Administrator\Desktop\Bi.jar
>>>>>      [move] Copying C:\Documents and
>>>>> Settings\Administrator\Desktop\bi.jar to C:
>>>>> \Documents and Settings\Administrator\Desktop\Bi.jar
>>>>>
>>>>> BUILD FAILED
>>>>> C:\Documents and Settings\Administrator\Desktop\build.xml:3: 
>>>>> Failed to
>>>>> copy C:\D
>>>>> ocuments and Settings\Administrator\Desktop\bi.jar to C:\Documents 
>>>>> and
>>>>> Settings\
>>>>> Administrator\Desktop\Bi.jar due to C:\Documents and
>>>>> Settings\Administrator\Desk
>>>>> top\bi.jar (The system cannot find the file specified)
>>>>>         at org.apache.tools.ant.taskdefs.Move.copyFile(Move.java:274)
>>>>>         at org.apache.tools.ant.taskdefs.Move.moveFile(Move.java:226)
>>>>>         at
>>>>> org.apache.tools.ant.taskdefs.Move.doFileOperations(Move.java:153)
>>>>>         at org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:430)
>>>>>         at
>>>>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>>>>>         at org.apache.tools.ant.Task.perform(Task.java:364)
>>>>>         at org.apache.tools.ant.Target.execute(Target.java:341)
>>>>>         at org.apache.tools.ant.Target.performTasks(Target.java:369)
>>>>>         at
>>>>> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
>>>>>         at
>>>>> org.apache.tools.ant.Project.executeTarget(Project.java:1185)
>>>>>         at
>>>>> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
>>>>> cutor.java:40)
>>>>>         at
>>>>> org.apache.tools.ant.Project.executeTargets(Project.java:1068)
>>>>>         at org.apache.tools.ant.Main.runBuild(Main.java:668)
>>>>>         at org.apache.tools.ant.Main.startAnt(Main.java:187)
>>>>>         at 
>>>>> org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
>>>>>         at 
>>>>> org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
>>>>> Caused by: java.io.FileNotFoundException: C:\Documents and
>>>>> Settings\Administrato
>>>>> r\Desktop\bi.jar (The system cannot find the file specified)
>>>>>         at java.io.FileInputStream.open(Native Method)
>>>>>         at java.io.FileInputStream.<init>(FileInputStream.java:106)
>>>>>         at
>>>>> org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:630)
>>>>>         at org.apache.tools.ant.taskdefs.Move.copyFile(Move.java:262)
>>>>>         ... 15 more
>>>>> --- Nested Exception ---
>>>>> java.io.FileNotFoundException: C:\Documents and
>>>>> Settings\Administrator\Desktop\b
>>>>> i.jar (The system cannot find the file specified)
>>>>>         at java.io.FileInputStream.open(Native Method)
>>>>>         at java.io.FileInputStream.<init>(FileInputStream.java:106)
>>>>>         at
>>>>> org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:630)
>>>>>         at org.apache.tools.ant.taskdefs.Move.copyFile(Move.java:262)
>>>>>         at org.apache.tools.ant.taskdefs.Move.moveFile(Move.java:226)
>>>>>         at
>>>>> org.apache.tools.ant.taskdefs.Move.doFileOperations(Move.java:153)
>>>>>         at org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:430)
>>>>>         at
>>>>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>>>>>         at org.apache.tools.ant.Task.perform(Task.java:364)
>>>>>         at org.apache.tools.ant.Target.execute(Target.java:341)
>>>>>         at org.apache.tools.ant.Target.performTasks(Target.java:369)
>>>>>         at
>>>>> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
>>>>>         at
>>>>> org.apache.tools.ant.Project.executeTarget(Project.java:1185)
>>>>>         at
>>>>> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
>>>>> cutor.java:40)
>>>>>         at
>>>>> org.apache.tools.ant.Project.executeTargets(Project.java:1068)
>>>>>         at org.apache.tools.ant.Main.runBuild(Main.java:668)
>>>>>         at org.apache.tools.ant.Main.startAnt(Main.java:187)
>>>>>         at 
>>>>> org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
>>>>>         at 
>>>>> org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
>>>>>
>>>>> Total time: 1 second
>>>>> [error-message]
>>>>>
>>>>>
>>>>> Best regards,
>>>>> Leon
>>>>>
>>>>> __________________________________________________
>>>>> Do You Yahoo!?
>>>>> Tired of spam?  Yahoo! Mail has the best spam protection around 
>>>>> http://mail.yahoo.com
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>>>>> For additional commands, e-mail: user-help@ant.apache.org
>>>>>
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>>>> For additional commands, e-mail: user-help@ant.apache.org
>>>>
>>>>
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>>> For additional commands, e-mail: user-help@ant.apache.org
>>>
>>>
>>
>> -- 
>> Scot P. Floess
>> 27 Lake Royale
>> Louisburg, NC  27549
>>
>> 252-478-8087 (Home)
>> 919-754-4592 (Work)
>>
>> Chief Architect JPlate  http://sourceforge.net/projects/jplate
>> Chief Architect JavaPIM http://sourceforge.net/projects/javapim
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>> For additional commands, e-mail: user-help@ant.apache.org
>>
>>
>> -- 
>> No virus found in this incoming message.
>> Checked by AVG Free Edition.
>> Version: 7.1.392 / Virus Database: 268.5.5/335 - Release Date: 
>> 09/05/2006
>>
>>
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: Failed to execute task move in Windows

Posted by Rhino <rh...@sympatico.ca>.
Do we know _for sure_ that this bug is fixed in 1.7?

--
Rhino

----- Original Message ----- 
From: "Scot P. Floess" <fl...@mindspring.com>
To: "Ant Users List" <us...@ant.apache.org>
Sent: Wednesday, May 10, 2006 3:16 PM
Subject: Re: Failed to execute task move in Windows


> When is 1.7 coming out?
>
> Anthony Goubard wrote:
>> Hi,
>>
>> Yes, I filled a bug about it 6 months ago. And then a few weeks later I 
>> fixed the bug. I've submitted the patch with the bug but the patch is not 
>> applied yet to the source code.
>> http://issues.apache.org/bugzilla/show_bug.cgi?id=37701
>>
>> Hope this help for the patch to be in 1.7.
>>
>> Anthony
>>
>> Alexey N. Solofnenko wrote:
>>
>>> I think there was a bug with <move> that just changes character case on 
>>> a case-insensitive file systems. <move> thought that the destination 
>>> file already exists, so it deleted it, but instead the original file was 
>>> deleted. I think it was fixed in 1.7.
>>>
>>> - Alexey.
>>>
>>> Leon Pu wrote:
>>>
>>>> Hi all,
>>>>
>>>> my build file with task move failed in Windows, but the same build file
>>>> works in Linux. Could anybody tell me why?
>>>>
>>>> [build-script]
>>>> <project default="test">
>>>>   <target name="test">
>>>>     <move file="bi.jar" tofile="Bi.jar" />
>>>>   </target>
>>>> </project>
>>>> [build-script]
>>>>
>>>> [error-message]
>>>> Apache Ant version 1.6.5 compiled on June 2 2005
>>>> Buildfile: build.xml
>>>> Detected Java version: 1.4 in: C:\java\jdk\j2sdk1.4.2_09\jre
>>>> Detected OS: Windows 2000
>>>> parsing buildfile C:\Documents and
>>>> Settings\Administrator\Desktop\build.xml with
>>>>  URI =
>>>> file:///C:/Documents%20and%20Settings/Administrator/Desktop/build.xml
>>>> Project base dir set to: C:\Documents and
>>>> Settings\Administrator\Desktop
>>>> Build sequence for target(s) `test' is [test]
>>>> Complete build sequence is [test, ]
>>>>
>>>> test:
>>>>      [move] Moving 1 file to C:\Documents and
>>>> Settings\Administrator\Desktop
>>>>      [move] Attempting to rename: C:\Documents and
>>>> Settings\Administrator\Deskto
>>>> p\bi.jar to C:\Documents and Settings\Administrator\Desktop\Bi.jar
>>>>      [move] Copying C:\Documents and
>>>> Settings\Administrator\Desktop\bi.jar to C:
>>>> \Documents and Settings\Administrator\Desktop\Bi.jar
>>>>
>>>> BUILD FAILED
>>>> C:\Documents and Settings\Administrator\Desktop\build.xml:3: Failed to
>>>> copy C:\D
>>>> ocuments and Settings\Administrator\Desktop\bi.jar to C:\Documents and
>>>> Settings\
>>>> Administrator\Desktop\Bi.jar due to C:\Documents and
>>>> Settings\Administrator\Desk
>>>> top\bi.jar (The system cannot find the file specified)
>>>>         at org.apache.tools.ant.taskdefs.Move.copyFile(Move.java:274)
>>>>         at org.apache.tools.ant.taskdefs.Move.moveFile(Move.java:226)
>>>>         at
>>>> org.apache.tools.ant.taskdefs.Move.doFileOperations(Move.java:153)
>>>>         at org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:430)
>>>>         at
>>>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>>>>         at org.apache.tools.ant.Task.perform(Task.java:364)
>>>>         at org.apache.tools.ant.Target.execute(Target.java:341)
>>>>         at org.apache.tools.ant.Target.performTasks(Target.java:369)
>>>>         at
>>>> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
>>>>         at
>>>> org.apache.tools.ant.Project.executeTarget(Project.java:1185)
>>>>         at
>>>> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
>>>> cutor.java:40)
>>>>         at
>>>> org.apache.tools.ant.Project.executeTargets(Project.java:1068)
>>>>         at org.apache.tools.ant.Main.runBuild(Main.java:668)
>>>>         at org.apache.tools.ant.Main.startAnt(Main.java:187)
>>>>         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
>>>>         at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
>>>> Caused by: java.io.FileNotFoundException: C:\Documents and
>>>> Settings\Administrato
>>>> r\Desktop\bi.jar (The system cannot find the file specified)
>>>>         at java.io.FileInputStream.open(Native Method)
>>>>         at java.io.FileInputStream.<init>(FileInputStream.java:106)
>>>>         at
>>>> org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:630)
>>>>         at org.apache.tools.ant.taskdefs.Move.copyFile(Move.java:262)
>>>>         ... 15 more
>>>> --- Nested Exception ---
>>>> java.io.FileNotFoundException: C:\Documents and
>>>> Settings\Administrator\Desktop\b
>>>> i.jar (The system cannot find the file specified)
>>>>         at java.io.FileInputStream.open(Native Method)
>>>>         at java.io.FileInputStream.<init>(FileInputStream.java:106)
>>>>         at
>>>> org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:630)
>>>>         at org.apache.tools.ant.taskdefs.Move.copyFile(Move.java:262)
>>>>         at org.apache.tools.ant.taskdefs.Move.moveFile(Move.java:226)
>>>>         at
>>>> org.apache.tools.ant.taskdefs.Move.doFileOperations(Move.java:153)
>>>>         at org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:430)
>>>>         at
>>>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>>>>         at org.apache.tools.ant.Task.perform(Task.java:364)
>>>>         at org.apache.tools.ant.Target.execute(Target.java:341)
>>>>         at org.apache.tools.ant.Target.performTasks(Target.java:369)
>>>>         at
>>>> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
>>>>         at
>>>> org.apache.tools.ant.Project.executeTarget(Project.java:1185)
>>>>         at
>>>> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
>>>> cutor.java:40)
>>>>         at
>>>> org.apache.tools.ant.Project.executeTargets(Project.java:1068)
>>>>         at org.apache.tools.ant.Main.runBuild(Main.java:668)
>>>>         at org.apache.tools.ant.Main.startAnt(Main.java:187)
>>>>         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
>>>>         at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
>>>>
>>>> Total time: 1 second
>>>> [error-message]
>>>>
>>>>
>>>> Best regards,
>>>> Leon
>>>>
>>>> __________________________________________________
>>>> Do You Yahoo!?
>>>> Tired of spam?  Yahoo! Mail has the best spam protection around 
>>>> http://mail.yahoo.com
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>>>> For additional commands, e-mail: user-help@ant.apache.org
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>>> For additional commands, e-mail: user-help@ant.apache.org
>>>
>>>
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>> For additional commands, e-mail: user-help@ant.apache.org
>>
>>
>
> -- 
> Scot P. Floess
> 27 Lake Royale
> Louisburg, NC  27549
>
> 252-478-8087 (Home)
> 919-754-4592 (Work)
>
> Chief Architect JPlate  http://sourceforge.net/projects/jplate
> Chief Architect JavaPIM http://sourceforge.net/projects/javapim
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
> -- 
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.392 / Virus Database: 268.5.5/335 - Release Date: 09/05/2006
>
> 



-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.392 / Virus Database: 268.5.5/335 - Release Date: 09/05/2006


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: Failed to execute task move in Windows

Posted by "Scot P. Floess" <fl...@mindspring.com>.
When is 1.7 coming out?

Anthony Goubard wrote:
> Hi,
>
> Yes, I filled a bug about it 6 months ago. And then a few weeks later 
> I fixed the bug. I've submitted the patch with the bug but the patch 
> is not applied yet to the source code.
> http://issues.apache.org/bugzilla/show_bug.cgi?id=37701
>
> Hope this help for the patch to be in 1.7.
>
> Anthony
>
> Alexey N. Solofnenko wrote:
>
>> I think there was a bug with <move> that just changes character case 
>> on a case-insensitive file systems. <move> thought that the 
>> destination file already exists, so it deleted it, but instead the 
>> original file was deleted. I think it was fixed in 1.7.
>>
>> - Alexey.
>>
>> Leon Pu wrote:
>>
>>> Hi all,
>>>
>>> my build file with task move failed in Windows, but the same build file
>>> works in Linux. Could anybody tell me why?
>>>
>>> [build-script]
>>> <project default="test">
>>>   <target name="test">
>>>     <move file="bi.jar" tofile="Bi.jar" />
>>>   </target>
>>> </project>
>>> [build-script]
>>>
>>> [error-message]
>>> Apache Ant version 1.6.5 compiled on June 2 2005
>>> Buildfile: build.xml
>>> Detected Java version: 1.4 in: C:\java\jdk\j2sdk1.4.2_09\jre
>>> Detected OS: Windows 2000
>>> parsing buildfile C:\Documents and
>>> Settings\Administrator\Desktop\build.xml with
>>>  URI =
>>> file:///C:/Documents%20and%20Settings/Administrator/Desktop/build.xml
>>> Project base dir set to: C:\Documents and
>>> Settings\Administrator\Desktop
>>> Build sequence for target(s) `test' is [test]
>>> Complete build sequence is [test, ]
>>>
>>> test:
>>>      [move] Moving 1 file to C:\Documents and
>>> Settings\Administrator\Desktop
>>>      [move] Attempting to rename: C:\Documents and
>>> Settings\Administrator\Deskto
>>> p\bi.jar to C:\Documents and Settings\Administrator\Desktop\Bi.jar
>>>      [move] Copying C:\Documents and
>>> Settings\Administrator\Desktop\bi.jar to C:
>>> \Documents and Settings\Administrator\Desktop\Bi.jar
>>>
>>> BUILD FAILED
>>> C:\Documents and Settings\Administrator\Desktop\build.xml:3: Failed to
>>> copy C:\D
>>> ocuments and Settings\Administrator\Desktop\bi.jar to C:\Documents and
>>> Settings\
>>> Administrator\Desktop\Bi.jar due to C:\Documents and
>>> Settings\Administrator\Desk
>>> top\bi.jar (The system cannot find the file specified)
>>>         at org.apache.tools.ant.taskdefs.Move.copyFile(Move.java:274)
>>>         at org.apache.tools.ant.taskdefs.Move.moveFile(Move.java:226)
>>>         at
>>> org.apache.tools.ant.taskdefs.Move.doFileOperations(Move.java:153)
>>>         at org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:430)
>>>         at
>>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>>>         at org.apache.tools.ant.Task.perform(Task.java:364)
>>>         at org.apache.tools.ant.Target.execute(Target.java:341)
>>>         at org.apache.tools.ant.Target.performTasks(Target.java:369)
>>>         at
>>> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
>>>         at
>>> org.apache.tools.ant.Project.executeTarget(Project.java:1185)
>>>         at
>>> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
>>> cutor.java:40)
>>>         at
>>> org.apache.tools.ant.Project.executeTargets(Project.java:1068)
>>>         at org.apache.tools.ant.Main.runBuild(Main.java:668)
>>>         at org.apache.tools.ant.Main.startAnt(Main.java:187)
>>>         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
>>>         at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
>>> Caused by: java.io.FileNotFoundException: C:\Documents and
>>> Settings\Administrato
>>> r\Desktop\bi.jar (The system cannot find the file specified)
>>>         at java.io.FileInputStream.open(Native Method)
>>>         at java.io.FileInputStream.<init>(FileInputStream.java:106)
>>>         at
>>> org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:630)
>>>         at org.apache.tools.ant.taskdefs.Move.copyFile(Move.java:262)
>>>         ... 15 more
>>> --- Nested Exception ---
>>> java.io.FileNotFoundException: C:\Documents and
>>> Settings\Administrator\Desktop\b
>>> i.jar (The system cannot find the file specified)
>>>         at java.io.FileInputStream.open(Native Method)
>>>         at java.io.FileInputStream.<init>(FileInputStream.java:106)
>>>         at
>>> org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:630)
>>>         at org.apache.tools.ant.taskdefs.Move.copyFile(Move.java:262)
>>>         at org.apache.tools.ant.taskdefs.Move.moveFile(Move.java:226)
>>>         at
>>> org.apache.tools.ant.taskdefs.Move.doFileOperations(Move.java:153)
>>>         at org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:430)
>>>         at
>>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>>>         at org.apache.tools.ant.Task.perform(Task.java:364)
>>>         at org.apache.tools.ant.Target.execute(Target.java:341)
>>>         at org.apache.tools.ant.Target.performTasks(Target.java:369)
>>>         at
>>> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
>>>         at
>>> org.apache.tools.ant.Project.executeTarget(Project.java:1185)
>>>         at
>>> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
>>> cutor.java:40)
>>>         at
>>> org.apache.tools.ant.Project.executeTargets(Project.java:1068)
>>>         at org.apache.tools.ant.Main.runBuild(Main.java:668)
>>>         at org.apache.tools.ant.Main.startAnt(Main.java:187)
>>>         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
>>>         at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
>>>
>>> Total time: 1 second
>>> [error-message]
>>>
>>>
>>> Best regards,
>>> Leon
>>>
>>> __________________________________________________
>>> Do You Yahoo!?
>>> Tired of spam?  Yahoo! Mail has the best spam protection around 
>>> http://mail.yahoo.com
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>>> For additional commands, e-mail: user-help@ant.apache.org
>>>   
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>> For additional commands, e-mail: user-help@ant.apache.org
>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>

-- 
Scot P. Floess
27 Lake Royale
Louisburg, NC  27549

252-478-8087 (Home)
919-754-4592 (Work)

Chief Architect JPlate  http://sourceforge.net/projects/jplate
Chief Architect JavaPIM http://sourceforge.net/projects/javapim


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: Failed to execute task move in Windows

Posted by Anthony Goubard <an...@wanadoo.nl>.
Hi,

 Yes, I filled a bug about it 6 months ago. And then a few weeks later I 
fixed the bug. I've submitted the patch with the bug but the patch is 
not applied yet to the source code.
http://issues.apache.org/bugzilla/show_bug.cgi?id=37701

Hope this help for the patch to be in 1.7.

Anthony

Alexey N. Solofnenko wrote:

> I think there was a bug with <move> that just changes character case 
> on a case-insensitive file systems. <move> thought that the 
> destination file already exists, so it deleted it, but instead the 
> original file was deleted. I think it was fixed in 1.7.
>
> - Alexey.
>
> Leon Pu wrote:
>
>> Hi all,
>>
>> my build file with task move failed in Windows, but the same build file
>> works in Linux. Could anybody tell me why?
>>
>> [build-script]
>> <project default="test">
>>   <target name="test">
>>     <move file="bi.jar" tofile="Bi.jar" />
>>   </target>
>> </project>
>> [build-script]
>>
>> [error-message]
>> Apache Ant version 1.6.5 compiled on June 2 2005
>> Buildfile: build.xml
>> Detected Java version: 1.4 in: C:\java\jdk\j2sdk1.4.2_09\jre
>> Detected OS: Windows 2000
>> parsing buildfile C:\Documents and
>> Settings\Administrator\Desktop\build.xml with
>>  URI =
>> file:///C:/Documents%20and%20Settings/Administrator/Desktop/build.xml
>> Project base dir set to: C:\Documents and
>> Settings\Administrator\Desktop
>> Build sequence for target(s) `test' is [test]
>> Complete build sequence is [test, ]
>>
>> test:
>>      [move] Moving 1 file to C:\Documents and
>> Settings\Administrator\Desktop
>>      [move] Attempting to rename: C:\Documents and
>> Settings\Administrator\Deskto
>> p\bi.jar to C:\Documents and Settings\Administrator\Desktop\Bi.jar
>>      [move] Copying C:\Documents and
>> Settings\Administrator\Desktop\bi.jar to C:
>> \Documents and Settings\Administrator\Desktop\Bi.jar
>>
>> BUILD FAILED
>> C:\Documents and Settings\Administrator\Desktop\build.xml:3: Failed to
>> copy C:\D
>> ocuments and Settings\Administrator\Desktop\bi.jar to C:\Documents and
>> Settings\
>> Administrator\Desktop\Bi.jar due to C:\Documents and
>> Settings\Administrator\Desk
>> top\bi.jar (The system cannot find the file specified)
>>         at org.apache.tools.ant.taskdefs.Move.copyFile(Move.java:274)
>>         at org.apache.tools.ant.taskdefs.Move.moveFile(Move.java:226)
>>         at
>> org.apache.tools.ant.taskdefs.Move.doFileOperations(Move.java:153)
>>         at org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:430)
>>         at
>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>>         at org.apache.tools.ant.Task.perform(Task.java:364)
>>         at org.apache.tools.ant.Target.execute(Target.java:341)
>>         at org.apache.tools.ant.Target.performTasks(Target.java:369)
>>         at
>> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
>>         at
>> org.apache.tools.ant.Project.executeTarget(Project.java:1185)
>>         at
>> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
>> cutor.java:40)
>>         at
>> org.apache.tools.ant.Project.executeTargets(Project.java:1068)
>>         at org.apache.tools.ant.Main.runBuild(Main.java:668)
>>         at org.apache.tools.ant.Main.startAnt(Main.java:187)
>>         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
>>         at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
>> Caused by: java.io.FileNotFoundException: C:\Documents and
>> Settings\Administrato
>> r\Desktop\bi.jar (The system cannot find the file specified)
>>         at java.io.FileInputStream.open(Native Method)
>>         at java.io.FileInputStream.<init>(FileInputStream.java:106)
>>         at
>> org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:630)
>>         at org.apache.tools.ant.taskdefs.Move.copyFile(Move.java:262)
>>         ... 15 more
>> --- Nested Exception ---
>> java.io.FileNotFoundException: C:\Documents and
>> Settings\Administrator\Desktop\b
>> i.jar (The system cannot find the file specified)
>>         at java.io.FileInputStream.open(Native Method)
>>         at java.io.FileInputStream.<init>(FileInputStream.java:106)
>>         at
>> org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:630)
>>         at org.apache.tools.ant.taskdefs.Move.copyFile(Move.java:262)
>>         at org.apache.tools.ant.taskdefs.Move.moveFile(Move.java:226)
>>         at
>> org.apache.tools.ant.taskdefs.Move.doFileOperations(Move.java:153)
>>         at org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:430)
>>         at
>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>>         at org.apache.tools.ant.Task.perform(Task.java:364)
>>         at org.apache.tools.ant.Target.execute(Target.java:341)
>>         at org.apache.tools.ant.Target.performTasks(Target.java:369)
>>         at
>> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
>>         at
>> org.apache.tools.ant.Project.executeTarget(Project.java:1185)
>>         at
>> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
>> cutor.java:40)
>>         at
>> org.apache.tools.ant.Project.executeTargets(Project.java:1068)
>>         at org.apache.tools.ant.Main.runBuild(Main.java:668)
>>         at org.apache.tools.ant.Main.startAnt(Main.java:187)
>>         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
>>         at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
>>
>> Total time: 1 second
>> [error-message]
>>
>>
>> Best regards,
>> Leon
>>
>> __________________________________________________
>> Do You Yahoo!?
>> Tired of spam?  Yahoo! Mail has the best spam protection around 
>> http://mail.yahoo.com
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>> For additional commands, e-mail: user-help@ant.apache.org
>>   
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: Failed to execute task move in Windows

Posted by "Alexey N. Solofnenko" <A....@mdl.com>.
I think there was a bug with <move> that just changes character case on 
a case-insensitive file systems. <move> thought that the destination 
file already exists, so it deleted it, but instead the original file was 
deleted. I think it was fixed in 1.7.

- Alexey.

Leon Pu wrote:
> Hi all,
>
> my build file with task move failed in Windows, but the same build file
> works in Linux. Could anybody tell me why?
>
> [build-script]
> <project default="test">
>   <target name="test">
>     <move file="bi.jar" tofile="Bi.jar" />
>   </target>
> </project>
> [build-script]
>
> [error-message]
> Apache Ant version 1.6.5 compiled on June 2 2005
> Buildfile: build.xml
> Detected Java version: 1.4 in: C:\java\jdk\j2sdk1.4.2_09\jre
> Detected OS: Windows 2000
> parsing buildfile C:\Documents and
> Settings\Administrator\Desktop\build.xml with
>  URI =
> file:///C:/Documents%20and%20Settings/Administrator/Desktop/build.xml
> Project base dir set to: C:\Documents and
> Settings\Administrator\Desktop
> Build sequence for target(s) `test' is [test]
> Complete build sequence is [test, ]
>
> test:
>      [move] Moving 1 file to C:\Documents and
> Settings\Administrator\Desktop
>      [move] Attempting to rename: C:\Documents and
> Settings\Administrator\Deskto
> p\bi.jar to C:\Documents and Settings\Administrator\Desktop\Bi.jar
>      [move] Copying C:\Documents and
> Settings\Administrator\Desktop\bi.jar to C:
> \Documents and Settings\Administrator\Desktop\Bi.jar
>
> BUILD FAILED
> C:\Documents and Settings\Administrator\Desktop\build.xml:3: Failed to
> copy C:\D
> ocuments and Settings\Administrator\Desktop\bi.jar to C:\Documents and
> Settings\
> Administrator\Desktop\Bi.jar due to C:\Documents and
> Settings\Administrator\Desk
> top\bi.jar (The system cannot find the file specified)
>         at org.apache.tools.ant.taskdefs.Move.copyFile(Move.java:274)
>         at org.apache.tools.ant.taskdefs.Move.moveFile(Move.java:226)
>         at
> org.apache.tools.ant.taskdefs.Move.doFileOperations(Move.java:153)
>         at org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:430)
>         at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>         at org.apache.tools.ant.Task.perform(Task.java:364)
>         at org.apache.tools.ant.Target.execute(Target.java:341)
>         at org.apache.tools.ant.Target.performTasks(Target.java:369)
>         at
> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
>         at
> org.apache.tools.ant.Project.executeTarget(Project.java:1185)
>         at
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
> cutor.java:40)
>         at
> org.apache.tools.ant.Project.executeTargets(Project.java:1068)
>         at org.apache.tools.ant.Main.runBuild(Main.java:668)
>         at org.apache.tools.ant.Main.startAnt(Main.java:187)
>         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
>         at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
> Caused by: java.io.FileNotFoundException: C:\Documents and
> Settings\Administrato
> r\Desktop\bi.jar (The system cannot find the file specified)
>         at java.io.FileInputStream.open(Native Method)
>         at java.io.FileInputStream.<init>(FileInputStream.java:106)
>         at
> org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:630)
>         at org.apache.tools.ant.taskdefs.Move.copyFile(Move.java:262)
>         ... 15 more
> --- Nested Exception ---
> java.io.FileNotFoundException: C:\Documents and
> Settings\Administrator\Desktop\b
> i.jar (The system cannot find the file specified)
>         at java.io.FileInputStream.open(Native Method)
>         at java.io.FileInputStream.<init>(FileInputStream.java:106)
>         at
> org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:630)
>         at org.apache.tools.ant.taskdefs.Move.copyFile(Move.java:262)
>         at org.apache.tools.ant.taskdefs.Move.moveFile(Move.java:226)
>         at
> org.apache.tools.ant.taskdefs.Move.doFileOperations(Move.java:153)
>         at org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:430)
>         at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>         at org.apache.tools.ant.Task.perform(Task.java:364)
>         at org.apache.tools.ant.Target.execute(Target.java:341)
>         at org.apache.tools.ant.Target.performTasks(Target.java:369)
>         at
> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
>         at
> org.apache.tools.ant.Project.executeTarget(Project.java:1185)
>         at
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
> cutor.java:40)
>         at
> org.apache.tools.ant.Project.executeTargets(Project.java:1068)
>         at org.apache.tools.ant.Main.runBuild(Main.java:668)
>         at org.apache.tools.ant.Main.startAnt(Main.java:187)
>         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
>         at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
>
> Total time: 1 second
> [error-message]
>
>
> Best regards,
> Leon
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>   

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: Failed to execute task move in Windows

Posted by Rhino <rh...@sympatico.ca>.
Thank you for the sanity check, Scot!

You're right, the single quotes within the double quotes is probably not 
necessary after all. I found that I needed to add the single quotes for a 
task that tried to execute a VBScript so that Windows handed it to the 
VBScript engine correctly but this probably doesn't apply to Leon's problem; 
he probably doesn't need them.

Sorry about that! I had the same problem as Leon a few months back and the 
single quotes were how I solved it but I had a somewhat different problem 
than Leon so I should have taken that into account and not mentioned the 
single quotes as being the key to the solution; he'll probably be just fine 
with only the double quotes around the whole path and file name.

--
Rhino

----- Original Message ----- 
From: "Scot P. Floess" <fl...@mindspring.com>
To: "Ant Users List" <us...@ant.apache.org>
Sent: Wednesday, May 10, 2006 10:55 AM
Subject: Re: Failed to execute task move in Windows


> Question, why are you including single quotes withing the double quotes?
>
> <property name="old.name" value="'c:\Documents and 
> Settings\Administrator\Desktop\bi.jar'" description="The old name of the 
> file."/>
> <property name="new.name" value="'c:\Documents and 
> Settings\Administrator\Desktop\Bi.jar'" description="The new name of the 
> file."/>
>
> I'm not sure of the behavior doing that, but I am fairly confident this
> should be sufficient:
>
> <property name="old.name" value="c:\Documents and 
> Settings\Administrator\Desktop\bi.jar" description="The old name of the 
> file."/>
> <property name="new.name" value="c:\Documents and 
> Settings\Administrator\Desktop\Bi.jar" description="The new name of the 
> file."/>
>
>
>
> Leon Pu wrote:
>> --- Rhino <rh...@sympatico.ca> wrote:
>>
>>
>>> ----- Original Message ----- 
>>> From: "Leon Pu" <le...@yahoo.com.cn>
>>> To: "Ant Usenet" <us...@ant.apache.org>
>>> Sent: Wednesday, May 10, 2006 10:13 AM
>>> Subject: Failed to execute task move in Windows
>>>
>>>
>>>
>>>> Hi all,
>>>>
>>>> my build file with task move failed in Windows, but the same build
>>>>
>>> file
>>>
>>>> works in Linux. Could anybody tell me why?
>>>>
>>>> [build-script]
>>>> <project default="test">
>>>>  <target name="test">
>>>>    <move file="bi.jar" tofile="Bi.jar" />
>>>>  </target>
>>>> </project>
>>>> [build-script]
>>>>
>>>> [error-message]
>>>> Apache Ant version 1.6.5 compiled on June 2 2005
>>>> Buildfile: build.xml
>>>> Detected Java version: 1.4 in: C:\java\jdk\j2sdk1.4.2_09\jre
>>>> Detected OS: Windows 2000
>>>> parsing buildfile C:\Documents and
>>>> Settings\Administrator\Desktop\build.xml with
>>>> URI =
>>>>
>>>>
>>> file:///C:/Documents%20and%20Settings/Administrator/Desktop/build.xml
>>>
>>>> Project base dir set to: C:\Documents and
>>>> Settings\Administrator\Desktop
>>>> Build sequence for target(s) `test' is [test]
>>>> Complete build sequence is [test, ]
>>>>
>>>> test:
>>>>     [move] Moving 1 file to C:\Documents and
>>>> Settings\Administrator\Desktop
>>>>     [move] Attempting to rename: C:\Documents and
>>>> Settings\Administrator\Deskto
>>>> p\bi.jar to C:\Documents and Settings\Administrator\Desktop\Bi.jar
>>>>     [move] Copying C:\Documents and
>>>> Settings\Administrator\Desktop\bi.jar to C:
>>>> \Documents and Settings\Administrator\Desktop\Bi.jar
>>>>
>>>> BUILD FAILED
>>>> C:\Documents and Settings\Administrator\Desktop\build.xml:3: Failed
>>>>
>>> to
>>>
>>>> copy C:\D
>>>> ocuments and Settings\Administrator\Desktop\bi.jar to C:\Documents
>>>>
>>> and
>>>
>>>> Settings\
>>>> Administrator\Desktop\Bi.jar due to C:\Documents and
>>>> Settings\Administrator\Desk
>>>> top\bi.jar (The system cannot find the file specified)
>>>>        at
>>>>
>>> org.apache.tools.ant.taskdefs.Move.copyFile(Move.java:274)
>>>
>>>>        at
>>>>
>>> org.apache.tools.ant.taskdefs.Move.moveFile(Move.java:226)
>>>
>>>>        at
>>>> org.apache.tools.ant.taskdefs.Move.doFileOperations(Move.java:153)
>>>>        at org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:430)
>>>>        at
>>>>
>>>>
>>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>>>
>>>>        at org.apache.tools.ant.Task.perform(Task.java:364)
>>>>        at org.apache.tools.ant.Target.execute(Target.java:341)
>>>>        at org.apache.tools.ant.Target.performTasks(Target.java:369)
>>>>        at
>>>>
>>>>
>>> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
>>>
>>>>        at
>>>> org.apache.tools.ant.Project.executeTarget(Project.java:1185)
>>>>        at
>>>>
>>>>
>>> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
>>>
>>>> cutor.java:40)
>>>>        at
>>>> org.apache.tools.ant.Project.executeTargets(Project.java:1068)
>>>>        at org.apache.tools.ant.Main.runBuild(Main.java:668)
>>>>        at org.apache.tools.ant.Main.startAnt(Main.java:187)
>>>>        at
>>>>
>>> org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
>>>
>>>>        at
>>>>
>>> org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
>>>
>>>> Caused by: java.io.FileNotFoundException: C:\Documents and
>>>> Settings\Administrato
>>>> r\Desktop\bi.jar (The system cannot find the file specified)
>>>>        at java.io.FileInputStream.open(Native Method)
>>>>        at java.io.FileInputStream.<init>(FileInputStream.java:106)
>>>>        at
>>>> org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:630)
>>>>        at
>>>>
>>> org.apache.tools.ant.taskdefs.Move.copyFile(Move.java:262)
>>>
>>>>        ... 15 more
>>>> --- Nested Exception ---
>>>> java.io.FileNotFoundException: C:\Documents and
>>>> Settings\Administrator\Desktop\b
>>>> i.jar (The system cannot find the file specified)
>>>>        at java.io.FileInputStream.open(Native Method)
>>>>        at java.io.FileInputStream.<init>(FileInputStream.java:106)
>>>>        at
>>>> org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:630)
>>>>        at
>>>>
>>> org.apache.tools.ant.taskdefs.Move.copyFile(Move.java:262)
>>>
>>>>        at
>>>>
>>> org.apache.tools.ant.taskdefs.Move.moveFile(Move.java:226)
>>>
>>>>        at
>>>> org.apache.tools.ant.taskdefs.Move.doFileOperations(Move.java:153)
>>>>        at org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:430)
>>>>        at
>>>>
>>>>
>>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>>>
>>>>        at org.apache.tools.ant.Task.perform(Task.java:364)
>>>>        at org.apache.tools.ant.Target.execute(Target.java:341)
>>>>        at org.apache.tools.ant.Target.performTasks(Target.java:369)
>>>>        at
>>>>
>>>>
>>> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
>>>
>>>>        at
>>>> org.apache.tools.ant.Project.executeTarget(Project.java:1185)
>>>>        at
>>>>
>>>>
>>> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
>>>
>>>> cutor.java:40)
>>>>        at
>>>> org.apache.tools.ant.Project.executeTargets(Project.java:1068)
>>>>        at org.apache.tools.ant.Main.runBuild(Main.java:668)
>>>>        at org.apache.tools.ant.Main.startAnt(Main.java:187)
>>>>        at
>>>>
>>> org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
>>>
>>>>        at
>>>>
>>> org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
>>>
>>>> Total time: 1 second
>>>> [error-message]
>>>>
>>>>
>>>>
>>> The messages seem pretty clear: Ant could not find the bi.jar file in
>>> the
>>> path that it searched: C:\Documents and
>>> Settings\Administrator\Desktop.
>>>
>>> Is your file in that exact path? Is the current name of the file
>>> bi.jar or
>>> is the spelling slightly different? If either value is wrong, fix it
>>> and
>>> your move task should work.
>>>
>>> If both the path and file name are correct, it might be an encoding
>>> issue;
>>> the blanks in "Documents and Settings" appear to be getting turned
>>> into
>>> "%20", which is normal. The antidote to that problem is to use
>>> apostrophes
>>> (sometimes called single quotes) around the path and file name. For
>>> example,
>>> notice the apostrophes within the regular quotes in the value
>>> parameters of
>>> the old.name and new.name properties:
>>>
>>> [build-script]
>>> <project default="test">
>>>
>>> <property name="old.name" value="'c:\Documents and
>>> Settings\Administrator\Desktop\bi.jar'" description="The old name of
>>> the
>>> file."/>
>>> <property name="new.name" value="'c:\Documents and
>>> Settings\Administrator\Desktop\Bi.jar'" description="The new name of
>>> the
>>> file."/>
>>>
>>>  <target name="test">
>>>     <move file="${old.name}" tofile="${new.name}" />
>>>  </target>
>>> </project>
>>> [build-script]
>>>
>>
>> Hi Rhino,
>>
>> thank you for your reply, but the bi.jar definitely exists on the same
>> directory with build.xml.
>>
>> I don't know what's the exact logic Ant handle task move in Windows,
>> but it seems there is problem. Please refer to following verbose output
>> in my error message.
>>
>> [quote]
>> test:
>>      [move] Moving 1 file to C:\Documents and
>> Settings\Administrator\Desktop
>>      [move] Attempting to rename: C:\Documents and
>> Settings\Administrator\Deskto
>> p\bi.jar to C:\Documents and Settings\Administrator\Desktop\Bi.jar
>>      [move] Copying C:\Documents and
>> Settings\Administrator\Desktop\bi.jar to C:
>> \Documents and Settings\Administrator\Desktop\Bi.jar
>>
>> BUILD FAILED
>> [quote]
>>
>> In the third [move] tag, there is a copy operation for bi.jar to
>> Bi.jar, but the bi.jar has already been renamed to Bi.jar in second
>> tag.
>>
>>
>> Best regards,
>> Leon
>>
>> __________________________________________________
>> Do You Yahoo!?
>> Tired of spam?  Yahoo! Mail has the best spam protection around
>> http://mail.yahoo.com
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>> For additional commands, e-mail: user-help@ant.apache.org
>>
>>
>>
>
> -- 
> Scot P. Floess
> 27 Lake Royale
> Louisburg, NC  27549
>
> 252-478-8087 (Home)
> 919-754-4592 (Work)
>
> Chief Architect JPlate  http://sourceforge.net/projects/jplate
> Chief Architect JavaPIM http://sourceforge.net/projects/javapim
>
>


--------------------------------------------------------------------------------


No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.392 / Virus Database: 268.5.5/335 - Release Date: 09/05/2006



-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.392 / Virus Database: 268.5.5/335 - Release Date: 09/05/2006


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: Failed to execute task move in Windows

Posted by Rhino <rh...@sympatico.ca>.
----- Original Message ----- 
From: "Leon Pu" <le...@yahoo.com.cn>
To: "Ant Users List" <us...@ant.apache.org>
Sent: Wednesday, May 10, 2006 11:43 AM
Subject: Re: Failed to execute task move in Windows


> Hi Rhino,
>
> the reason of my problem was the file and path name in Windows is
> case-insensitive, that's why Ant failed to move bi.jar to Bi.jar.
>
> It works with following build file.
>
> <project default="test">
>  <target name="test">
>    <move file="bi.jar" tofile="_bi.jar" />
>    <move file="_bi.jar" tofile="Bi.jar" />
>  </target>
> </project>
>

Yes, I saw Jeffrey's explanation and it solved the problem.

I'm sorry to say that I assumed your problem was more trivial than it 
actually was. Since I had given you bad advice, I was trying to do the exact 
same rename in my own Ant script but I was having the same problem: the 
move/rename was DELETING the file! Luckily, Jeffrey explained the situation 
and his solution worked perfectly.

> Thanks to Jeffrey's reminder and your warmly help.
>
I'm sorry to have given you bad advice. I've never done a move task before 
but I assumed it would be very simple. I clearly underestimated the ability 
of Ant and Windows to make a simple situation more complicated. I see that I 
should have actually tried my proposed solution before suggesting it to you!

Again, I'm sorry to waste your time with a bad solution.

And thanks to Jeffrey for catching my mistake so quickly before it wasted 
many hours of my time and yours!

There really ought to be a note about this in the Ant manual. I'm sure lots 
of people rename files in Windows with the move task!

--
Rhino

>
> --- Rhino <rh...@sympatico.ca> wrote:
>
>> Sorry, Leon, I'm not sure what you're saying. Is the script working
>> now,
>> either with or without the single quotes?
>>
>> Did you check to make sure that the file name and path name were
>> exactly
>> correct? Were they both correct?
>>
>> I'm sorry to have mentioned the single quotes; they are probably only
>> going
>> to be necessary if you are trying to execute a VBScript in the
>> VBScript
>> engine or something like that. In your case, you are just renaming a
>> file so
>> the single quotes shouldn't be needed.
>>
>> --
>> Rhino
>>
>> ----- Original Message ----- 
>> From: "Leon Pu" <le...@yahoo.com.cn>
>> To: "Ant Users List" <us...@ant.apache.org>; <fl...@mindspring.com>
>> Sent: Wednesday, May 10, 2006 11:02 AM
>> Subject: Re: Failed to execute task move in Windows
>>
>>
>> > Hi Scot,
>> >
>> > the result of Rhino's build script without single quotes is same
>> with
>> > mine.
>> >
>> > Anyway, the old.name file will disappear after execution.
>> >
>> >
>> > Best regards,
>> > Leon
>> >
>> > --- "Scot P. Floess" <fl...@mindspring.com> wrote:
>> >
>> >> Question, why are you including single quotes withing the double
>> >> quotes?
>> >>
>> >> <property name="old.name" value="'c:\Documents and
>> >> Settings\Administrator\Desktop\bi.jar'" description="The old name
>> of
>> >> the file."/>
>> >> <property name="new.name" value="'c:\Documents and
>> >> Settings\Administrator\Desktop\Bi.jar'" description="The new name
>> of
>> >> the file."/>
>> >>
>> >> I'm not sure of the behavior doing that, but I am fairly confident
>> >> this
>> >> should be sufficient:
>> >>
>> >> <property name="old.name" value="c:\Documents and
>> >> Settings\Administrator\Desktop\bi.jar" description="The old name
>> of
>> >> the file."/>
>> >> <property name="new.name" value="c:\Documents and
>> >> Settings\Administrator\Desktop\Bi.jar" description="The new name
>> of
>> >> the file."/>
>> >>
>> >>
>> >>
>> >> Leon Pu wrote:
>> >> > --- Rhino <rh...@sympatico.ca> wrote:
>> >> >
>> >> >
>> >> >> ----- Original Message ----- 
>> >> >> From: "Leon Pu" <le...@yahoo.com.cn>
>> >> >> To: "Ant Usenet" <us...@ant.apache.org>
>> >> >> Sent: Wednesday, May 10, 2006 10:13 AM
>> >> >> Subject: Failed to execute task move in Windows
>> >> >>
>> >> >>
>> >> >>
>> >> >>> Hi all,
>> >> >>>
>> >> >>> my build file with task move failed in Windows, but the same
>> >> build
>> >> >>>
>> >> >> file
>> >> >>
>> >> >>> works in Linux. Could anybody tell me why?
>> >> >>>
>> >> >>> [build-script]
>> >> >>> <project default="test">
>> >> >>>  <target name="test">
>> >> >>>    <move file="bi.jar" tofile="Bi.jar" />
>> >> >>>  </target>
>> >> >>> </project>
>> >> >>> [build-script]
>> >> >>>
>> >> >>> [error-message]
>> >> >>> Apache Ant version 1.6.5 compiled on June 2 2005
>> >> >>> Buildfile: build.xml
>> >> >>> Detected Java version: 1.4 in: C:\java\jdk\j2sdk1.4.2_09\jre
>> >> >>> Detected OS: Windows 2000
>> >> >>> parsing buildfile C:\Documents and
>> >> >>> Settings\Administrator\Desktop\build.xml with
>> >> >>> URI =
>> >> >>>
>> >> >>>
>> >> >>
>> >>
>> file:///C:/Documents%20and%20Settings/Administrator/Desktop/build.xml
>> >> >>
>> >> >>> Project base dir set to: C:\Documents and
>> >> >>> Settings\Administrator\Desktop
>> >> >>> Build sequence for target(s) `test' is [test]
>> >> >>> Complete build sequence is [test, ]
>> >> >>>
>> >> >>> test:
>> >> >>>     [move] Moving 1 file to C:\Documents and
>> >> >>> Settings\Administrator\Desktop
>> >> >>>     [move] Attempting to rename: C:\Documents and
>> >> >>> Settings\Administrator\Deskto
>> >> >>> p\bi.jar to C:\Documents and
>> >> Settings\Administrator\Desktop\Bi.jar
>> >> >>>     [move] Copying C:\Documents and
>> >> >>> Settings\Administrator\Desktop\bi.jar to C:
>> >> >>> \Documents and Settings\Administrator\Desktop\Bi.jar
>> >> >>>
>> >> >>> BUILD FAILED
>> >> >>> C:\Documents and Settings\Administrator\Desktop\build.xml:3:
>> >> Failed
>> >> >>>
>> >> >> to
>> >> >>
>> >> >>> copy C:\D
>> >> >>> ocuments and Settings\Administrator\Desktop\bi.jar to
>> >> C:\Documents
>> >> >>>
>> >> >> and
>> >> >>
>> >> >>> Settings\
>> >> >>> Administrator\Desktop\Bi.jar due to C:\Documents and
>> >> >>> Settings\Administrator\Desk
>> >> >>> top\bi.jar (The system cannot find the file specified)
>> >> >>>        at
>> >> >>>
>> >> >> org.apache.tools.ant.taskdefs.Move.copyFile(Move.java:274)
>> >> >>
>> >> >>>        at
>> >> >>>
>> >> >> org.apache.tools.ant.taskdefs.Move.moveFile(Move.java:226)
>> >> >>
>> >> >>>        at
>> >> >>>
>> >> org.apache.tools.ant.taskdefs.Move.doFileOperations(Move.java:153)
>> >> >>>        at
>> >> org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:430)
>> >> >>>        at
>> >> >>>
>> >> >>>
>> >> >>
>> >>
>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>> >> >>
>> >> >>>        at org.apache.tools.ant.Task.perform(Task.java:364)
>> >> >>>        at org.apache.tools.ant.Target.execute(Target.java:341)
>> >> >>>        at
>> >> org.apache.tools.ant.Target.performTasks(Target.java:369)
>> >> >>>        at
>> >> >>>
>> >> >>>
>> >> >>
>> >>
>> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
>> >> >>
>> >> >>>        at
>> >> >>> org.apache.tools.ant.Project.executeTarget(Project.java:1185)
>> >> >>>        at
>> >> >>>
>> >> >>>
>> >> >>
>> >>
>> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
>> >> >>
>> >> >>> cutor.java:40)
>> >> >>>        at
>> >> >>> org.apache.tools.ant.Project.executeTargets(Project.java:1068)
>> >> >>>        at org.apache.tools.ant.Main.runBuild(Main.java:668)
>> >> >>>        at org.apache.tools.ant.Main.startAnt(Main.java:187)
>> >> >>>        at
>> >> >>>
>> >> >> org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
>> >> >>
>> >> >>>        at
>> >> >>>
>> >> >> org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
>> >> >>
>> >> >>> Caused by: java.io.FileNotFoundException: C:\Documents and
>> >> >>> Settings\Administrato
>> >> >>> r\Desktop\bi.jar (The system cannot find the file specified)
>> >> >>>        at java.io.FileInputStream.open(Native Method)
>> >> >>>        at
>> >> java.io.FileInputStream.<init>(FileInputStream.java:106)
>> >> >>>        at
>> >> >>>
>> org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:630)
>> >> >>>        at
>> >> >>>
>> >> >> org.apache.tools.ant.taskdefs.Move.copyFile(Move.java:262)
>> >> >>
>> >> >>>        ... 15 more
>> >> >>> --- Nested Exception ---
>> >> >>> java.io.FileNotFoundException: C:\Documents and
>> >> >>> Settings\Administrator\Desktop\b
>> >> >>> i.jar (The system cannot find the file specified)
>> >> >>>        at java.io.FileInputStream.open(Native Method)
>> >> >>>        at
>> >> java.io.FileInputStream.<init>(FileInputStream.java:106)
>> >> >>>        at
>> >> >>>
>> org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:630)
>> >> >>>        at
>> >> >>>
>> >> >> org.apache.tools.ant.taskdefs.Move.copyFile(Move.java:262)
>> >> >>
>> >> >>>        at
>> >> >>>
>> >> >> org.apache.tools.ant.taskdefs.Move.moveFile(Move.java:226)
>> >> >>
>> >> >>>        at
>> >> >>>
>> >> org.apache.tools.ant.taskdefs.Move.doFileOperations(Move.java:153)
>> >> >>>        at
>> >> org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:430)
>> >> >>>        at
>> >> >>>
>> >> >>>
>> >> >>
>> >>
>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>> >> >>
>> >> >>>        at org.apache.tools.ant.Task.perform(Task.java:364)
>> >> >>>        at org.apache.tools.ant.Target.execute(Target.java:341)
>> >> >>>        at
>> >> org.apache.tools.ant.Target.performTasks(Target.java:369)
>> >> >>>        at
>> >> >>>
>> >> >>>
>> >> >>
>> >>
>> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
>> >> >>
>> >> >>>        at
>> >> >>> org.apache.tools.ant.Project.executeTarget(Project.java:1185)
>> >> >>>        at
>> >> >>>
>> >> >>>
>> >> >>
>> >>
>> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
>> >> >>
>> >> >>> cutor.java:40)
>> >> >>>        at
>> >> >>> org.apache.tools.ant.Project.executeTargets(Project.java:1068)
>> >> >>>        at org.apache.tools.ant.Main.runBuild(Main.java:668)
>> >> >>>        at org.apache.tools.ant.Main.startAnt(Main.java:187)
>> >> >>>        at
>> >> >>>
>> >> >> org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
>> >> >>
>> >> >>>        at
>> >> >>>
>> >> >> org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
>> >> >>
>> >> >>> Total time: 1 second
>> >> >>> [error-message]
>> >> >>>
>> >> >>>
>> >> >>>
>> >> >> The messages seem pretty clear: Ant could not find the bi.jar
>> file
>> >> in
>> >> >> the
>> >> >> path that it searched: C:\Documents and
>> >> >> Settings\Administrator\Desktop.
>> >> >>
>> >> >> Is your file in that exact path? Is the current name of the
>> file
>> >> >> bi.jar or
>> >> >> is the spelling slightly different? If either value is wrong,
>> fix
>> >> it
>> >> >> and
>> >> >> your move task should work.
>> >> >>
>> >> >> If both the path and file name are correct, it might be an
>> >> encoding
>> >> >> issue;
>> >> >> the blanks in "Documents and Settings" appear to be getting
>> turned
>> >> >> into
>> >> >> "%20", which is normal. The antidote to that problem is to use
>> >> >> apostrophes
>> >> >> (sometimes called single quotes) around the path and file name.
>> >> For
>> >> >> example,
>> >> >> notice the apostrophes within the regular quotes in the value
>> >> >> parameters of
>> >> >> the old.name and new.name properties:
>> >> >>
>> >> >> [build-script]
>> >> >> <project default="test">
>> >> >>
>> >> >> <property name="old.name" value="'c:\Documents and
>> >> >> Settings\Administrator\Desktop\bi.jar'" description="The old
>> name
>> >> of
>> >> >> the
>> >> >> file."/>
>> >> >> <property name="new.name" value="'c:\Documents and
>> >> >> Settings\Administrator\Desktop\Bi.jar'" description="The new
>> name
>> >> of
>> >> >> the
>> >> >> file."/>
>> >> >>
>> >> >>  <target name="test">
>> >> >>     <move file="${old.name}" tofile="${new.name}" />
>> >> >>  </target>
>> >> >> </project>
>> >> >> [build-script]
>> >> >>
>> >> >
>> >> > Hi Rhino,
>> >> >
>> >> > thank you for your reply, but the bi.jar definitely exists on
>> the
>> >> same
>> >> > directory with build.xml.
>> >> >
>> >> > I don't know what's the exact logic Ant handle task move in
>> >> Windows,
>> >> > but it seems there is problem. Please refer to following verbose
>> >> output
>> >> > in my error message.
>> >> >
>> >> > [quote]
>> >> > test:
>> >> >      [move] Moving 1 file to C:\Documents and
>> >> > Settings\Administrator\Desktop
>> >> >      [move] Attempting to rename: C:\Documents and
>> >> > Settings\Administrator\Deskto
>> >> > p\bi.jar to C:\Documents and
>> Settings\Administrator\Desktop\Bi.jar
>> >> >      [move] Copying C:\Documents and
>> >> > Settings\Administrator\Desktop\bi.jar to C:
>> >> > \Documents and Settings\Administrator\Desktop\Bi.jar
>> >> >
>> >> > BUILD FAILED
>> >> > [quote]
>> >> >
>> >> > In the third [move] tag, there is a copy operation for bi.jar to
>> >> > Bi.jar, but the bi.jar has already been renamed to Bi.jar in
>> second
>> >> > tag.
>> >> >
>> >> >
>> >> > Best regards,
>> >> > Leon
>> >
>> > __________________________________________________
>> > Do You Yahoo!?
>> > Tired of spam?  Yahoo! Mail has the best spam protection around
>> > http://mail.yahoo.com
>> >
>> >
>> ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>> > For additional commands, e-mail: user-help@ant.apache.org
>> >
>> >
>> > -- 
>> > No virus found in this incoming message.
>> > Checked by AVG Free Edition.
>> > Version: 7.1.392 / Virus Database: 268.5.5/335 - Release Date:
>> 09/05/2006
>> >
>> >
>>
>>
>>
>> -- 
>> No virus found in this outgoing message.
>> Checked by AVG Free Edition.
>> Version: 7.1.392 / Virus Database: 268.5.5/335 - Release Date:
>> 09/05/2006
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>> For additional commands, e-mail: user-help@ant.apache.org
>>
>>
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
> -- 
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.392 / Virus Database: 268.5.5/335 - Release Date: 09/05/2006
>
> 



-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.392 / Virus Database: 268.5.5/335 - Release Date: 09/05/2006


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: Failed to execute task move in Windows

Posted by Leon Pu <le...@yahoo.com.cn>.
Hi Rhino,

the reason of my problem was the file and path name in Windows is
case-insensitive, that's why Ant failed to move bi.jar to Bi.jar.

It works with following build file.

<project default="test">
  <target name="test">
    <move file="bi.jar" tofile="_bi.jar" />
    <move file="_bi.jar" tofile="Bi.jar" />
  </target>
</project>

Thanks to Jeffrey's reminder and your warmly help.


Best regards,
Leon

--- Rhino <rh...@sympatico.ca> wrote:

> Sorry, Leon, I'm not sure what you're saying. Is the script working
> now, 
> either with or without the single quotes?
> 
> Did you check to make sure that the file name and path name were
> exactly 
> correct? Were they both correct?
> 
> I'm sorry to have mentioned the single quotes; they are probably only
> going 
> to be necessary if you are trying to execute a VBScript in the
> VBScript 
> engine or something like that. In your case, you are just renaming a
> file so 
> the single quotes shouldn't be needed.
> 
> --
> Rhino
> 
> ----- Original Message ----- 
> From: "Leon Pu" <le...@yahoo.com.cn>
> To: "Ant Users List" <us...@ant.apache.org>; <fl...@mindspring.com>
> Sent: Wednesday, May 10, 2006 11:02 AM
> Subject: Re: Failed to execute task move in Windows
> 
> 
> > Hi Scot,
> >
> > the result of Rhino's build script without single quotes is same
> with
> > mine.
> >
> > Anyway, the old.name file will disappear after execution.
> >
> >
> > Best regards,
> > Leon
> >
> > --- "Scot P. Floess" <fl...@mindspring.com> wrote:
> >
> >> Question, why are you including single quotes withing the double
> >> quotes?
> >>
> >> <property name="old.name" value="'c:\Documents and
> >> Settings\Administrator\Desktop\bi.jar'" description="The old name
> of
> >> the file."/>
> >> <property name="new.name" value="'c:\Documents and
> >> Settings\Administrator\Desktop\Bi.jar'" description="The new name
> of
> >> the file."/>
> >>
> >> I'm not sure of the behavior doing that, but I am fairly confident
> >> this
> >> should be sufficient:
> >>
> >> <property name="old.name" value="c:\Documents and
> >> Settings\Administrator\Desktop\bi.jar" description="The old name
> of
> >> the file."/>
> >> <property name="new.name" value="c:\Documents and
> >> Settings\Administrator\Desktop\Bi.jar" description="The new name
> of
> >> the file."/>
> >>
> >>
> >>
> >> Leon Pu wrote:
> >> > --- Rhino <rh...@sympatico.ca> wrote:
> >> >
> >> >
> >> >> ----- Original Message ----- 
> >> >> From: "Leon Pu" <le...@yahoo.com.cn>
> >> >> To: "Ant Usenet" <us...@ant.apache.org>
> >> >> Sent: Wednesday, May 10, 2006 10:13 AM
> >> >> Subject: Failed to execute task move in Windows
> >> >>
> >> >>
> >> >>
> >> >>> Hi all,
> >> >>>
> >> >>> my build file with task move failed in Windows, but the same
> >> build
> >> >>>
> >> >> file
> >> >>
> >> >>> works in Linux. Could anybody tell me why?
> >> >>>
> >> >>> [build-script]
> >> >>> <project default="test">
> >> >>>  <target name="test">
> >> >>>    <move file="bi.jar" tofile="Bi.jar" />
> >> >>>  </target>
> >> >>> </project>
> >> >>> [build-script]
> >> >>>
> >> >>> [error-message]
> >> >>> Apache Ant version 1.6.5 compiled on June 2 2005
> >> >>> Buildfile: build.xml
> >> >>> Detected Java version: 1.4 in: C:\java\jdk\j2sdk1.4.2_09\jre
> >> >>> Detected OS: Windows 2000
> >> >>> parsing buildfile C:\Documents and
> >> >>> Settings\Administrator\Desktop\build.xml with
> >> >>> URI =
> >> >>>
> >> >>>
> >> >>
> >>
> file:///C:/Documents%20and%20Settings/Administrator/Desktop/build.xml
> >> >>
> >> >>> Project base dir set to: C:\Documents and
> >> >>> Settings\Administrator\Desktop
> >> >>> Build sequence for target(s) `test' is [test]
> >> >>> Complete build sequence is [test, ]
> >> >>>
> >> >>> test:
> >> >>>     [move] Moving 1 file to C:\Documents and
> >> >>> Settings\Administrator\Desktop
> >> >>>     [move] Attempting to rename: C:\Documents and
> >> >>> Settings\Administrator\Deskto
> >> >>> p\bi.jar to C:\Documents and
> >> Settings\Administrator\Desktop\Bi.jar
> >> >>>     [move] Copying C:\Documents and
> >> >>> Settings\Administrator\Desktop\bi.jar to C:
> >> >>> \Documents and Settings\Administrator\Desktop\Bi.jar
> >> >>>
> >> >>> BUILD FAILED
> >> >>> C:\Documents and Settings\Administrator\Desktop\build.xml:3:
> >> Failed
> >> >>>
> >> >> to
> >> >>
> >> >>> copy C:\D
> >> >>> ocuments and Settings\Administrator\Desktop\bi.jar to
> >> C:\Documents
> >> >>>
> >> >> and
> >> >>
> >> >>> Settings\
> >> >>> Administrator\Desktop\Bi.jar due to C:\Documents and
> >> >>> Settings\Administrator\Desk
> >> >>> top\bi.jar (The system cannot find the file specified)
> >> >>>        at
> >> >>>
> >> >> org.apache.tools.ant.taskdefs.Move.copyFile(Move.java:274)
> >> >>
> >> >>>        at
> >> >>>
> >> >> org.apache.tools.ant.taskdefs.Move.moveFile(Move.java:226)
> >> >>
> >> >>>        at
> >> >>>
> >> org.apache.tools.ant.taskdefs.Move.doFileOperations(Move.java:153)
> >> >>>        at
> >> org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:430)
> >> >>>        at
> >> >>>
> >> >>>
> >> >>
> >>
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
> >> >>
> >> >>>        at org.apache.tools.ant.Task.perform(Task.java:364)
> >> >>>        at org.apache.tools.ant.Target.execute(Target.java:341)
> >> >>>        at
> >> org.apache.tools.ant.Target.performTasks(Target.java:369)
> >> >>>        at
> >> >>>
> >> >>>
> >> >>
> >>
> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
> >> >>
> >> >>>        at
> >> >>> org.apache.tools.ant.Project.executeTarget(Project.java:1185)
> >> >>>        at
> >> >>>
> >> >>>
> >> >>
> >>
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
> >> >>
> >> >>> cutor.java:40)
> >> >>>        at
> >> >>> org.apache.tools.ant.Project.executeTargets(Project.java:1068)
> >> >>>        at org.apache.tools.ant.Main.runBuild(Main.java:668)
> >> >>>        at org.apache.tools.ant.Main.startAnt(Main.java:187)
> >> >>>        at
> >> >>>
> >> >> org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
> >> >>
> >> >>>        at
> >> >>>
> >> >> org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
> >> >>
> >> >>> Caused by: java.io.FileNotFoundException: C:\Documents and
> >> >>> Settings\Administrato
> >> >>> r\Desktop\bi.jar (The system cannot find the file specified)
> >> >>>        at java.io.FileInputStream.open(Native Method)
> >> >>>        at
> >> java.io.FileInputStream.<init>(FileInputStream.java:106)
> >> >>>        at
> >> >>>
> org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:630)
> >> >>>        at
> >> >>>
> >> >> org.apache.tools.ant.taskdefs.Move.copyFile(Move.java:262)
> >> >>
> >> >>>        ... 15 more
> >> >>> --- Nested Exception ---
> >> >>> java.io.FileNotFoundException: C:\Documents and
> >> >>> Settings\Administrator\Desktop\b
> >> >>> i.jar (The system cannot find the file specified)
> >> >>>        at java.io.FileInputStream.open(Native Method)
> >> >>>        at
> >> java.io.FileInputStream.<init>(FileInputStream.java:106)
> >> >>>        at
> >> >>>
> org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:630)
> >> >>>        at
> >> >>>
> >> >> org.apache.tools.ant.taskdefs.Move.copyFile(Move.java:262)
> >> >>
> >> >>>        at
> >> >>>
> >> >> org.apache.tools.ant.taskdefs.Move.moveFile(Move.java:226)
> >> >>
> >> >>>        at
> >> >>>
> >> org.apache.tools.ant.taskdefs.Move.doFileOperations(Move.java:153)
> >> >>>        at
> >> org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:430)
> >> >>>        at
> >> >>>
> >> >>>
> >> >>
> >>
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
> >> >>
> >> >>>        at org.apache.tools.ant.Task.perform(Task.java:364)
> >> >>>        at org.apache.tools.ant.Target.execute(Target.java:341)
> >> >>>        at
> >> org.apache.tools.ant.Target.performTasks(Target.java:369)
> >> >>>        at
> >> >>>
> >> >>>
> >> >>
> >>
> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
> >> >>
> >> >>>        at
> >> >>> org.apache.tools.ant.Project.executeTarget(Project.java:1185)
> >> >>>        at
> >> >>>
> >> >>>
> >> >>
> >>
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
> >> >>
> >> >>> cutor.java:40)
> >> >>>        at
> >> >>> org.apache.tools.ant.Project.executeTargets(Project.java:1068)
> >> >>>        at org.apache.tools.ant.Main.runBuild(Main.java:668)
> >> >>>        at org.apache.tools.ant.Main.startAnt(Main.java:187)
> >> >>>        at
> >> >>>
> >> >> org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
> >> >>
> >> >>>        at
> >> >>>
> >> >> org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
> >> >>
> >> >>> Total time: 1 second
> >> >>> [error-message]
> >> >>>
> >> >>>
> >> >>>
> >> >> The messages seem pretty clear: Ant could not find the bi.jar
> file
> >> in
> >> >> the
> >> >> path that it searched: C:\Documents and
> >> >> Settings\Administrator\Desktop.
> >> >>
> >> >> Is your file in that exact path? Is the current name of the
> file
> >> >> bi.jar or
> >> >> is the spelling slightly different? If either value is wrong,
> fix
> >> it
> >> >> and
> >> >> your move task should work.
> >> >>
> >> >> If both the path and file name are correct, it might be an
> >> encoding
> >> >> issue;
> >> >> the blanks in "Documents and Settings" appear to be getting
> turned
> >> >> into
> >> >> "%20", which is normal. The antidote to that problem is to use
> >> >> apostrophes
> >> >> (sometimes called single quotes) around the path and file name.
> >> For
> >> >> example,
> >> >> notice the apostrophes within the regular quotes in the value
> >> >> parameters of
> >> >> the old.name and new.name properties:
> >> >>
> >> >> [build-script]
> >> >> <project default="test">
> >> >>
> >> >> <property name="old.name" value="'c:\Documents and
> >> >> Settings\Administrator\Desktop\bi.jar'" description="The old
> name
> >> of
> >> >> the
> >> >> file."/>
> >> >> <property name="new.name" value="'c:\Documents and
> >> >> Settings\Administrator\Desktop\Bi.jar'" description="The new
> name
> >> of
> >> >> the
> >> >> file."/>
> >> >>
> >> >>  <target name="test">
> >> >>     <move file="${old.name}" tofile="${new.name}" />
> >> >>  </target>
> >> >> </project>
> >> >> [build-script]
> >> >>
> >> >
> >> > Hi Rhino,
> >> >
> >> > thank you for your reply, but the bi.jar definitely exists on
> the
> >> same
> >> > directory with build.xml.
> >> >
> >> > I don't know what's the exact logic Ant handle task move in
> >> Windows,
> >> > but it seems there is problem. Please refer to following verbose
> >> output
> >> > in my error message.
> >> >
> >> > [quote]
> >> > test:
> >> >      [move] Moving 1 file to C:\Documents and
> >> > Settings\Administrator\Desktop
> >> >      [move] Attempting to rename: C:\Documents and
> >> > Settings\Administrator\Deskto
> >> > p\bi.jar to C:\Documents and
> Settings\Administrator\Desktop\Bi.jar
> >> >      [move] Copying C:\Documents and
> >> > Settings\Administrator\Desktop\bi.jar to C:
> >> > \Documents and Settings\Administrator\Desktop\Bi.jar
> >> >
> >> > BUILD FAILED
> >> > [quote]
> >> >
> >> > In the third [move] tag, there is a copy operation for bi.jar to
> >> > Bi.jar, but the bi.jar has already been renamed to Bi.jar in
> second
> >> > tag.
> >> >
> >> >
> >> > Best regards,
> >> > Leon
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam protection around
> > http://mail.yahoo.com
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> > For additional commands, e-mail: user-help@ant.apache.org
> >
> >
> > -- 
> > No virus found in this incoming message.
> > Checked by AVG Free Edition.
> > Version: 7.1.392 / Virus Database: 268.5.5/335 - Release Date:
> 09/05/2006
> >
> > 
> 
> 
> 
> -- 
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.1.392 / Virus Database: 268.5.5/335 - Release Date:
> 09/05/2006
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: Failed to execute task move in Windows

Posted by Rhino <rh...@sympatico.ca>.
Sorry, Leon, I'm not sure what you're saying. Is the script working now, 
either with or without the single quotes?

Did you check to make sure that the file name and path name were exactly 
correct? Were they both correct?

I'm sorry to have mentioned the single quotes; they are probably only going 
to be necessary if you are trying to execute a VBScript in the VBScript 
engine or something like that. In your case, you are just renaming a file so 
the single quotes shouldn't be needed.

--
Rhino

----- Original Message ----- 
From: "Leon Pu" <le...@yahoo.com.cn>
To: "Ant Users List" <us...@ant.apache.org>; <fl...@mindspring.com>
Sent: Wednesday, May 10, 2006 11:02 AM
Subject: Re: Failed to execute task move in Windows


> Hi Scot,
>
> the result of Rhino's build script without single quotes is same with
> mine.
>
> Anyway, the old.name file will disappear after execution.
>
>
> Best regards,
> Leon
>
> --- "Scot P. Floess" <fl...@mindspring.com> wrote:
>
>> Question, why are you including single quotes withing the double
>> quotes?
>>
>> <property name="old.name" value="'c:\Documents and
>> Settings\Administrator\Desktop\bi.jar'" description="The old name of
>> the file."/>
>> <property name="new.name" value="'c:\Documents and
>> Settings\Administrator\Desktop\Bi.jar'" description="The new name of
>> the file."/>
>>
>> I'm not sure of the behavior doing that, but I am fairly confident
>> this
>> should be sufficient:
>>
>> <property name="old.name" value="c:\Documents and
>> Settings\Administrator\Desktop\bi.jar" description="The old name of
>> the file."/>
>> <property name="new.name" value="c:\Documents and
>> Settings\Administrator\Desktop\Bi.jar" description="The new name of
>> the file."/>
>>
>>
>>
>> Leon Pu wrote:
>> > --- Rhino <rh...@sympatico.ca> wrote:
>> >
>> >
>> >> ----- Original Message ----- 
>> >> From: "Leon Pu" <le...@yahoo.com.cn>
>> >> To: "Ant Usenet" <us...@ant.apache.org>
>> >> Sent: Wednesday, May 10, 2006 10:13 AM
>> >> Subject: Failed to execute task move in Windows
>> >>
>> >>
>> >>
>> >>> Hi all,
>> >>>
>> >>> my build file with task move failed in Windows, but the same
>> build
>> >>>
>> >> file
>> >>
>> >>> works in Linux. Could anybody tell me why?
>> >>>
>> >>> [build-script]
>> >>> <project default="test">
>> >>>  <target name="test">
>> >>>    <move file="bi.jar" tofile="Bi.jar" />
>> >>>  </target>
>> >>> </project>
>> >>> [build-script]
>> >>>
>> >>> [error-message]
>> >>> Apache Ant version 1.6.5 compiled on June 2 2005
>> >>> Buildfile: build.xml
>> >>> Detected Java version: 1.4 in: C:\java\jdk\j2sdk1.4.2_09\jre
>> >>> Detected OS: Windows 2000
>> >>> parsing buildfile C:\Documents and
>> >>> Settings\Administrator\Desktop\build.xml with
>> >>> URI =
>> >>>
>> >>>
>> >>
>> file:///C:/Documents%20and%20Settings/Administrator/Desktop/build.xml
>> >>
>> >>> Project base dir set to: C:\Documents and
>> >>> Settings\Administrator\Desktop
>> >>> Build sequence for target(s) `test' is [test]
>> >>> Complete build sequence is [test, ]
>> >>>
>> >>> test:
>> >>>     [move] Moving 1 file to C:\Documents and
>> >>> Settings\Administrator\Desktop
>> >>>     [move] Attempting to rename: C:\Documents and
>> >>> Settings\Administrator\Deskto
>> >>> p\bi.jar to C:\Documents and
>> Settings\Administrator\Desktop\Bi.jar
>> >>>     [move] Copying C:\Documents and
>> >>> Settings\Administrator\Desktop\bi.jar to C:
>> >>> \Documents and Settings\Administrator\Desktop\Bi.jar
>> >>>
>> >>> BUILD FAILED
>> >>> C:\Documents and Settings\Administrator\Desktop\build.xml:3:
>> Failed
>> >>>
>> >> to
>> >>
>> >>> copy C:\D
>> >>> ocuments and Settings\Administrator\Desktop\bi.jar to
>> C:\Documents
>> >>>
>> >> and
>> >>
>> >>> Settings\
>> >>> Administrator\Desktop\Bi.jar due to C:\Documents and
>> >>> Settings\Administrator\Desk
>> >>> top\bi.jar (The system cannot find the file specified)
>> >>>        at
>> >>>
>> >> org.apache.tools.ant.taskdefs.Move.copyFile(Move.java:274)
>> >>
>> >>>        at
>> >>>
>> >> org.apache.tools.ant.taskdefs.Move.moveFile(Move.java:226)
>> >>
>> >>>        at
>> >>>
>> org.apache.tools.ant.taskdefs.Move.doFileOperations(Move.java:153)
>> >>>        at
>> org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:430)
>> >>>        at
>> >>>
>> >>>
>> >>
>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>> >>
>> >>>        at org.apache.tools.ant.Task.perform(Task.java:364)
>> >>>        at org.apache.tools.ant.Target.execute(Target.java:341)
>> >>>        at
>> org.apache.tools.ant.Target.performTasks(Target.java:369)
>> >>>        at
>> >>>
>> >>>
>> >>
>> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
>> >>
>> >>>        at
>> >>> org.apache.tools.ant.Project.executeTarget(Project.java:1185)
>> >>>        at
>> >>>
>> >>>
>> >>
>> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
>> >>
>> >>> cutor.java:40)
>> >>>        at
>> >>> org.apache.tools.ant.Project.executeTargets(Project.java:1068)
>> >>>        at org.apache.tools.ant.Main.runBuild(Main.java:668)
>> >>>        at org.apache.tools.ant.Main.startAnt(Main.java:187)
>> >>>        at
>> >>>
>> >> org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
>> >>
>> >>>        at
>> >>>
>> >> org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
>> >>
>> >>> Caused by: java.io.FileNotFoundException: C:\Documents and
>> >>> Settings\Administrato
>> >>> r\Desktop\bi.jar (The system cannot find the file specified)
>> >>>        at java.io.FileInputStream.open(Native Method)
>> >>>        at
>> java.io.FileInputStream.<init>(FileInputStream.java:106)
>> >>>        at
>> >>> org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:630)
>> >>>        at
>> >>>
>> >> org.apache.tools.ant.taskdefs.Move.copyFile(Move.java:262)
>> >>
>> >>>        ... 15 more
>> >>> --- Nested Exception ---
>> >>> java.io.FileNotFoundException: C:\Documents and
>> >>> Settings\Administrator\Desktop\b
>> >>> i.jar (The system cannot find the file specified)
>> >>>        at java.io.FileInputStream.open(Native Method)
>> >>>        at
>> java.io.FileInputStream.<init>(FileInputStream.java:106)
>> >>>        at
>> >>> org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:630)
>> >>>        at
>> >>>
>> >> org.apache.tools.ant.taskdefs.Move.copyFile(Move.java:262)
>> >>
>> >>>        at
>> >>>
>> >> org.apache.tools.ant.taskdefs.Move.moveFile(Move.java:226)
>> >>
>> >>>        at
>> >>>
>> org.apache.tools.ant.taskdefs.Move.doFileOperations(Move.java:153)
>> >>>        at
>> org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:430)
>> >>>        at
>> >>>
>> >>>
>> >>
>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>> >>
>> >>>        at org.apache.tools.ant.Task.perform(Task.java:364)
>> >>>        at org.apache.tools.ant.Target.execute(Target.java:341)
>> >>>        at
>> org.apache.tools.ant.Target.performTasks(Target.java:369)
>> >>>        at
>> >>>
>> >>>
>> >>
>> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
>> >>
>> >>>        at
>> >>> org.apache.tools.ant.Project.executeTarget(Project.java:1185)
>> >>>        at
>> >>>
>> >>>
>> >>
>> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
>> >>
>> >>> cutor.java:40)
>> >>>        at
>> >>> org.apache.tools.ant.Project.executeTargets(Project.java:1068)
>> >>>        at org.apache.tools.ant.Main.runBuild(Main.java:668)
>> >>>        at org.apache.tools.ant.Main.startAnt(Main.java:187)
>> >>>        at
>> >>>
>> >> org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
>> >>
>> >>>        at
>> >>>
>> >> org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
>> >>
>> >>> Total time: 1 second
>> >>> [error-message]
>> >>>
>> >>>
>> >>>
>> >> The messages seem pretty clear: Ant could not find the bi.jar file
>> in
>> >> the
>> >> path that it searched: C:\Documents and
>> >> Settings\Administrator\Desktop.
>> >>
>> >> Is your file in that exact path? Is the current name of the file
>> >> bi.jar or
>> >> is the spelling slightly different? If either value is wrong, fix
>> it
>> >> and
>> >> your move task should work.
>> >>
>> >> If both the path and file name are correct, it might be an
>> encoding
>> >> issue;
>> >> the blanks in "Documents and Settings" appear to be getting turned
>> >> into
>> >> "%20", which is normal. The antidote to that problem is to use
>> >> apostrophes
>> >> (sometimes called single quotes) around the path and file name.
>> For
>> >> example,
>> >> notice the apostrophes within the regular quotes in the value
>> >> parameters of
>> >> the old.name and new.name properties:
>> >>
>> >> [build-script]
>> >> <project default="test">
>> >>
>> >> <property name="old.name" value="'c:\Documents and
>> >> Settings\Administrator\Desktop\bi.jar'" description="The old name
>> of
>> >> the
>> >> file."/>
>> >> <property name="new.name" value="'c:\Documents and
>> >> Settings\Administrator\Desktop\Bi.jar'" description="The new name
>> of
>> >> the
>> >> file."/>
>> >>
>> >>  <target name="test">
>> >>     <move file="${old.name}" tofile="${new.name}" />
>> >>  </target>
>> >> </project>
>> >> [build-script]
>> >>
>> >
>> > Hi Rhino,
>> >
>> > thank you for your reply, but the bi.jar definitely exists on the
>> same
>> > directory with build.xml.
>> >
>> > I don't know what's the exact logic Ant handle task move in
>> Windows,
>> > but it seems there is problem. Please refer to following verbose
>> output
>> > in my error message.
>> >
>> > [quote]
>> > test:
>> >      [move] Moving 1 file to C:\Documents and
>> > Settings\Administrator\Desktop
>> >      [move] Attempting to rename: C:\Documents and
>> > Settings\Administrator\Deskto
>> > p\bi.jar to C:\Documents and Settings\Administrator\Desktop\Bi.jar
>> >      [move] Copying C:\Documents and
>> > Settings\Administrator\Desktop\bi.jar to C:
>> > \Documents and Settings\Administrator\Desktop\Bi.jar
>> >
>> > BUILD FAILED
>> > [quote]
>> >
>> > In the third [move] tag, there is a copy operation for bi.jar to
>> > Bi.jar, but the bi.jar has already been renamed to Bi.jar in second
>> > tag.
>> >
>> >
>> > Best regards,
>> > Leon
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
> -- 
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.392 / Virus Database: 268.5.5/335 - Release Date: 09/05/2006
>
> 



-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.392 / Virus Database: 268.5.5/335 - Release Date: 09/05/2006


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: Failed to execute task move in Windows

Posted by Leon Pu <le...@yahoo.com.cn>.
Hi Scot,

the result of Rhino's build script without single quotes is same with
mine.

Anyway, the old.name file will disappear after execution.


Best regards,
Leon

--- "Scot P. Floess" <fl...@mindspring.com> wrote:

> Question, why are you including single quotes withing the double
> quotes?
> 
> <property name="old.name" value="'c:\Documents and
> Settings\Administrator\Desktop\bi.jar'" description="The old name of
> the file."/>
> <property name="new.name" value="'c:\Documents and
> Settings\Administrator\Desktop\Bi.jar'" description="The new name of
> the file."/>
> 
> I'm not sure of the behavior doing that, but I am fairly confident
> this 
> should be sufficient:
> 
> <property name="old.name" value="c:\Documents and
> Settings\Administrator\Desktop\bi.jar" description="The old name of
> the file."/>
> <property name="new.name" value="c:\Documents and
> Settings\Administrator\Desktop\Bi.jar" description="The new name of
> the file."/>
> 
> 
> 
> Leon Pu wrote:
> > --- Rhino <rh...@sympatico.ca> wrote:
> >
> >   
> >> ----- Original Message ----- 
> >> From: "Leon Pu" <le...@yahoo.com.cn>
> >> To: "Ant Usenet" <us...@ant.apache.org>
> >> Sent: Wednesday, May 10, 2006 10:13 AM
> >> Subject: Failed to execute task move in Windows
> >>
> >>
> >>     
> >>> Hi all,
> >>>
> >>> my build file with task move failed in Windows, but the same
> build
> >>>       
> >> file
> >>     
> >>> works in Linux. Could anybody tell me why?
> >>>
> >>> [build-script]
> >>> <project default="test">
> >>>  <target name="test">
> >>>    <move file="bi.jar" tofile="Bi.jar" />
> >>>  </target>
> >>> </project>
> >>> [build-script]
> >>>
> >>> [error-message]
> >>> Apache Ant version 1.6.5 compiled on June 2 2005
> >>> Buildfile: build.xml
> >>> Detected Java version: 1.4 in: C:\java\jdk\j2sdk1.4.2_09\jre
> >>> Detected OS: Windows 2000
> >>> parsing buildfile C:\Documents and
> >>> Settings\Administrator\Desktop\build.xml with
> >>> URI =
> >>>
> >>>       
> >>
> file:///C:/Documents%20and%20Settings/Administrator/Desktop/build.xml
> >>     
> >>> Project base dir set to: C:\Documents and
> >>> Settings\Administrator\Desktop
> >>> Build sequence for target(s) `test' is [test]
> >>> Complete build sequence is [test, ]
> >>>
> >>> test:
> >>>     [move] Moving 1 file to C:\Documents and
> >>> Settings\Administrator\Desktop
> >>>     [move] Attempting to rename: C:\Documents and
> >>> Settings\Administrator\Deskto
> >>> p\bi.jar to C:\Documents and
> Settings\Administrator\Desktop\Bi.jar
> >>>     [move] Copying C:\Documents and
> >>> Settings\Administrator\Desktop\bi.jar to C:
> >>> \Documents and Settings\Administrator\Desktop\Bi.jar
> >>>
> >>> BUILD FAILED
> >>> C:\Documents and Settings\Administrator\Desktop\build.xml:3:
> Failed
> >>>       
> >> to
> >>     
> >>> copy C:\D
> >>> ocuments and Settings\Administrator\Desktop\bi.jar to
> C:\Documents
> >>>       
> >> and
> >>     
> >>> Settings\
> >>> Administrator\Desktop\Bi.jar due to C:\Documents and
> >>> Settings\Administrator\Desk
> >>> top\bi.jar (The system cannot find the file specified)
> >>>        at
> >>>       
> >> org.apache.tools.ant.taskdefs.Move.copyFile(Move.java:274)
> >>     
> >>>        at
> >>>       
> >> org.apache.tools.ant.taskdefs.Move.moveFile(Move.java:226)
> >>     
> >>>        at
> >>>
> org.apache.tools.ant.taskdefs.Move.doFileOperations(Move.java:153)
> >>>        at
> org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:430)
> >>>        at
> >>>
> >>>       
> >>
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
> >>     
> >>>        at org.apache.tools.ant.Task.perform(Task.java:364)
> >>>        at org.apache.tools.ant.Target.execute(Target.java:341)
> >>>        at
> org.apache.tools.ant.Target.performTasks(Target.java:369)
> >>>        at
> >>>
> >>>       
> >>
> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
> >>     
> >>>        at
> >>> org.apache.tools.ant.Project.executeTarget(Project.java:1185)
> >>>        at
> >>>
> >>>       
> >>
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
> >>     
> >>> cutor.java:40)
> >>>        at
> >>> org.apache.tools.ant.Project.executeTargets(Project.java:1068)
> >>>        at org.apache.tools.ant.Main.runBuild(Main.java:668)
> >>>        at org.apache.tools.ant.Main.startAnt(Main.java:187)
> >>>        at
> >>>       
> >> org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
> >>     
> >>>        at
> >>>       
> >> org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
> >>     
> >>> Caused by: java.io.FileNotFoundException: C:\Documents and
> >>> Settings\Administrato
> >>> r\Desktop\bi.jar (The system cannot find the file specified)
> >>>        at java.io.FileInputStream.open(Native Method)
> >>>        at
> java.io.FileInputStream.<init>(FileInputStream.java:106)
> >>>        at
> >>> org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:630)
> >>>        at
> >>>       
> >> org.apache.tools.ant.taskdefs.Move.copyFile(Move.java:262)
> >>     
> >>>        ... 15 more
> >>> --- Nested Exception ---
> >>> java.io.FileNotFoundException: C:\Documents and
> >>> Settings\Administrator\Desktop\b
> >>> i.jar (The system cannot find the file specified)
> >>>        at java.io.FileInputStream.open(Native Method)
> >>>        at
> java.io.FileInputStream.<init>(FileInputStream.java:106)
> >>>        at
> >>> org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:630)
> >>>        at
> >>>       
> >> org.apache.tools.ant.taskdefs.Move.copyFile(Move.java:262)
> >>     
> >>>        at
> >>>       
> >> org.apache.tools.ant.taskdefs.Move.moveFile(Move.java:226)
> >>     
> >>>        at
> >>>
> org.apache.tools.ant.taskdefs.Move.doFileOperations(Move.java:153)
> >>>        at
> org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:430)
> >>>        at
> >>>
> >>>       
> >>
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
> >>     
> >>>        at org.apache.tools.ant.Task.perform(Task.java:364)
> >>>        at org.apache.tools.ant.Target.execute(Target.java:341)
> >>>        at
> org.apache.tools.ant.Target.performTasks(Target.java:369)
> >>>        at
> >>>
> >>>       
> >>
> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
> >>     
> >>>        at
> >>> org.apache.tools.ant.Project.executeTarget(Project.java:1185)
> >>>        at
> >>>
> >>>       
> >>
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
> >>     
> >>> cutor.java:40)
> >>>        at
> >>> org.apache.tools.ant.Project.executeTargets(Project.java:1068)
> >>>        at org.apache.tools.ant.Main.runBuild(Main.java:668)
> >>>        at org.apache.tools.ant.Main.startAnt(Main.java:187)
> >>>        at
> >>>       
> >> org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
> >>     
> >>>        at
> >>>       
> >> org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
> >>     
> >>> Total time: 1 second
> >>> [error-message]
> >>>
> >>>
> >>>       
> >> The messages seem pretty clear: Ant could not find the bi.jar file
> in
> >> the 
> >> path that it searched: C:\Documents and
> >> Settings\Administrator\Desktop.
> >>
> >> Is your file in that exact path? Is the current name of the file
> >> bi.jar or 
> >> is the spelling slightly different? If either value is wrong, fix
> it
> >> and 
> >> your move task should work.
> >>
> >> If both the path and file name are correct, it might be an
> encoding
> >> issue; 
> >> the blanks in "Documents and Settings" appear to be getting turned
> >> into 
> >> "%20", which is normal. The antidote to that problem is to use
> >> apostrophes 
> >> (sometimes called single quotes) around the path and file name.
> For
> >> example, 
> >> notice the apostrophes within the regular quotes in the value
> >> parameters of 
> >> the old.name and new.name properties:
> >>
> >> [build-script]
> >> <project default="test">
> >>
> >> <property name="old.name" value="'c:\Documents and 
> >> Settings\Administrator\Desktop\bi.jar'" description="The old name
> of
> >> the 
> >> file."/>
> >> <property name="new.name" value="'c:\Documents and 
> >> Settings\Administrator\Desktop\Bi.jar'" description="The new name
> of
> >> the 
> >> file."/>
> >>
> >>  <target name="test">
> >>     <move file="${old.name}" tofile="${new.name}" />
> >>  </target>
> >> </project>
> >> [build-script]
> >>     
> >
> > Hi Rhino,
> >
> > thank you for your reply, but the bi.jar definitely exists on the
> same
> > directory with build.xml.
> >
> > I don't know what's the exact logic Ant handle task move in
> Windows,
> > but it seems there is problem. Please refer to following verbose
> output
> > in my error message.
> >
> > [quote]
> > test:
> >      [move] Moving 1 file to C:\Documents and
> > Settings\Administrator\Desktop
> >      [move] Attempting to rename: C:\Documents and
> > Settings\Administrator\Deskto
> > p\bi.jar to C:\Documents and Settings\Administrator\Desktop\Bi.jar
> >      [move] Copying C:\Documents and
> > Settings\Administrator\Desktop\bi.jar to C:
> > \Documents and Settings\Administrator\Desktop\Bi.jar
> >
> > BUILD FAILED
> > [quote]
> >
> > In the third [move] tag, there is a copy operation for bi.jar to
> > Bi.jar, but the bi.jar has already been renamed to Bi.jar in second
> > tag.
> >
> >
> > Best regards,
> > Leon

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: Failed to execute task move in Windows

Posted by "Scot P. Floess" <fl...@mindspring.com>.
Question, why are you including single quotes withing the double quotes?

<property name="old.name" value="'c:\Documents and Settings\Administrator\Desktop\bi.jar'" description="The old name of the file."/>
<property name="new.name" value="'c:\Documents and Settings\Administrator\Desktop\Bi.jar'" description="The new name of the file."/>

I'm not sure of the behavior doing that, but I am fairly confident this 
should be sufficient:

<property name="old.name" value="c:\Documents and Settings\Administrator\Desktop\bi.jar" description="The old name of the file."/>
<property name="new.name" value="c:\Documents and Settings\Administrator\Desktop\Bi.jar" description="The new name of the file."/>



Leon Pu wrote:
> --- Rhino <rh...@sympatico.ca> wrote:
>
>   
>> ----- Original Message ----- 
>> From: "Leon Pu" <le...@yahoo.com.cn>
>> To: "Ant Usenet" <us...@ant.apache.org>
>> Sent: Wednesday, May 10, 2006 10:13 AM
>> Subject: Failed to execute task move in Windows
>>
>>
>>     
>>> Hi all,
>>>
>>> my build file with task move failed in Windows, but the same build
>>>       
>> file
>>     
>>> works in Linux. Could anybody tell me why?
>>>
>>> [build-script]
>>> <project default="test">
>>>  <target name="test">
>>>    <move file="bi.jar" tofile="Bi.jar" />
>>>  </target>
>>> </project>
>>> [build-script]
>>>
>>> [error-message]
>>> Apache Ant version 1.6.5 compiled on June 2 2005
>>> Buildfile: build.xml
>>> Detected Java version: 1.4 in: C:\java\jdk\j2sdk1.4.2_09\jre
>>> Detected OS: Windows 2000
>>> parsing buildfile C:\Documents and
>>> Settings\Administrator\Desktop\build.xml with
>>> URI =
>>>
>>>       
>> file:///C:/Documents%20and%20Settings/Administrator/Desktop/build.xml
>>     
>>> Project base dir set to: C:\Documents and
>>> Settings\Administrator\Desktop
>>> Build sequence for target(s) `test' is [test]
>>> Complete build sequence is [test, ]
>>>
>>> test:
>>>     [move] Moving 1 file to C:\Documents and
>>> Settings\Administrator\Desktop
>>>     [move] Attempting to rename: C:\Documents and
>>> Settings\Administrator\Deskto
>>> p\bi.jar to C:\Documents and Settings\Administrator\Desktop\Bi.jar
>>>     [move] Copying C:\Documents and
>>> Settings\Administrator\Desktop\bi.jar to C:
>>> \Documents and Settings\Administrator\Desktop\Bi.jar
>>>
>>> BUILD FAILED
>>> C:\Documents and Settings\Administrator\Desktop\build.xml:3: Failed
>>>       
>> to
>>     
>>> copy C:\D
>>> ocuments and Settings\Administrator\Desktop\bi.jar to C:\Documents
>>>       
>> and
>>     
>>> Settings\
>>> Administrator\Desktop\Bi.jar due to C:\Documents and
>>> Settings\Administrator\Desk
>>> top\bi.jar (The system cannot find the file specified)
>>>        at
>>>       
>> org.apache.tools.ant.taskdefs.Move.copyFile(Move.java:274)
>>     
>>>        at
>>>       
>> org.apache.tools.ant.taskdefs.Move.moveFile(Move.java:226)
>>     
>>>        at
>>> org.apache.tools.ant.taskdefs.Move.doFileOperations(Move.java:153)
>>>        at org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:430)
>>>        at
>>>
>>>       
>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>>     
>>>        at org.apache.tools.ant.Task.perform(Task.java:364)
>>>        at org.apache.tools.ant.Target.execute(Target.java:341)
>>>        at org.apache.tools.ant.Target.performTasks(Target.java:369)
>>>        at
>>>
>>>       
>> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
>>     
>>>        at
>>> org.apache.tools.ant.Project.executeTarget(Project.java:1185)
>>>        at
>>>
>>>       
>> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
>>     
>>> cutor.java:40)
>>>        at
>>> org.apache.tools.ant.Project.executeTargets(Project.java:1068)
>>>        at org.apache.tools.ant.Main.runBuild(Main.java:668)
>>>        at org.apache.tools.ant.Main.startAnt(Main.java:187)
>>>        at
>>>       
>> org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
>>     
>>>        at
>>>       
>> org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
>>     
>>> Caused by: java.io.FileNotFoundException: C:\Documents and
>>> Settings\Administrato
>>> r\Desktop\bi.jar (The system cannot find the file specified)
>>>        at java.io.FileInputStream.open(Native Method)
>>>        at java.io.FileInputStream.<init>(FileInputStream.java:106)
>>>        at
>>> org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:630)
>>>        at
>>>       
>> org.apache.tools.ant.taskdefs.Move.copyFile(Move.java:262)
>>     
>>>        ... 15 more
>>> --- Nested Exception ---
>>> java.io.FileNotFoundException: C:\Documents and
>>> Settings\Administrator\Desktop\b
>>> i.jar (The system cannot find the file specified)
>>>        at java.io.FileInputStream.open(Native Method)
>>>        at java.io.FileInputStream.<init>(FileInputStream.java:106)
>>>        at
>>> org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:630)
>>>        at
>>>       
>> org.apache.tools.ant.taskdefs.Move.copyFile(Move.java:262)
>>     
>>>        at
>>>       
>> org.apache.tools.ant.taskdefs.Move.moveFile(Move.java:226)
>>     
>>>        at
>>> org.apache.tools.ant.taskdefs.Move.doFileOperations(Move.java:153)
>>>        at org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:430)
>>>        at
>>>
>>>       
>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>>     
>>>        at org.apache.tools.ant.Task.perform(Task.java:364)
>>>        at org.apache.tools.ant.Target.execute(Target.java:341)
>>>        at org.apache.tools.ant.Target.performTasks(Target.java:369)
>>>        at
>>>
>>>       
>> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
>>     
>>>        at
>>> org.apache.tools.ant.Project.executeTarget(Project.java:1185)
>>>        at
>>>
>>>       
>> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
>>     
>>> cutor.java:40)
>>>        at
>>> org.apache.tools.ant.Project.executeTargets(Project.java:1068)
>>>        at org.apache.tools.ant.Main.runBuild(Main.java:668)
>>>        at org.apache.tools.ant.Main.startAnt(Main.java:187)
>>>        at
>>>       
>> org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
>>     
>>>        at
>>>       
>> org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
>>     
>>> Total time: 1 second
>>> [error-message]
>>>
>>>
>>>       
>> The messages seem pretty clear: Ant could not find the bi.jar file in
>> the 
>> path that it searched: C:\Documents and
>> Settings\Administrator\Desktop.
>>
>> Is your file in that exact path? Is the current name of the file
>> bi.jar or 
>> is the spelling slightly different? If either value is wrong, fix it
>> and 
>> your move task should work.
>>
>> If both the path and file name are correct, it might be an encoding
>> issue; 
>> the blanks in "Documents and Settings" appear to be getting turned
>> into 
>> "%20", which is normal. The antidote to that problem is to use
>> apostrophes 
>> (sometimes called single quotes) around the path and file name. For
>> example, 
>> notice the apostrophes within the regular quotes in the value
>> parameters of 
>> the old.name and new.name properties:
>>
>> [build-script]
>> <project default="test">
>>
>> <property name="old.name" value="'c:\Documents and 
>> Settings\Administrator\Desktop\bi.jar'" description="The old name of
>> the 
>> file."/>
>> <property name="new.name" value="'c:\Documents and 
>> Settings\Administrator\Desktop\Bi.jar'" description="The new name of
>> the 
>> file."/>
>>
>>  <target name="test">
>>     <move file="${old.name}" tofile="${new.name}" />
>>  </target>
>> </project>
>> [build-script]
>>     
>
> Hi Rhino,
>
> thank you for your reply, but the bi.jar definitely exists on the same
> directory with build.xml.
>
> I don't know what's the exact logic Ant handle task move in Windows,
> but it seems there is problem. Please refer to following verbose output
> in my error message.
>
> [quote]
> test:
>      [move] Moving 1 file to C:\Documents and
> Settings\Administrator\Desktop
>      [move] Attempting to rename: C:\Documents and
> Settings\Administrator\Deskto
> p\bi.jar to C:\Documents and Settings\Administrator\Desktop\Bi.jar
>      [move] Copying C:\Documents and
> Settings\Administrator\Desktop\bi.jar to C:
> \Documents and Settings\Administrator\Desktop\Bi.jar
>
> BUILD FAILED
> [quote]
>
> In the third [move] tag, there is a copy operation for bi.jar to
> Bi.jar, but the bi.jar has already been renamed to Bi.jar in second
> tag.
>
>
> Best regards,
> Leon
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
>   

-- 
Scot P. Floess
27 Lake Royale
Louisburg, NC  27549

252-478-8087 (Home)
919-754-4592 (Work)

Chief Architect JPlate  http://sourceforge.net/projects/jplate
Chief Architect JavaPIM http://sourceforge.net/projects/javapim


Re: Failed to execute task move in Windows

Posted by Leon Pu <le...@yahoo.com.cn>.
--- Rhino <rh...@sympatico.ca> wrote:

> 
> ----- Original Message ----- 
> From: "Leon Pu" <le...@yahoo.com.cn>
> To: "Ant Usenet" <us...@ant.apache.org>
> Sent: Wednesday, May 10, 2006 10:13 AM
> Subject: Failed to execute task move in Windows
> 
> 
> > Hi all,
> >
> > my build file with task move failed in Windows, but the same build
> file
> > works in Linux. Could anybody tell me why?
> >
> > [build-script]
> > <project default="test">
> >  <target name="test">
> >    <move file="bi.jar" tofile="Bi.jar" />
> >  </target>
> > </project>
> > [build-script]
> >
> > [error-message]
> > Apache Ant version 1.6.5 compiled on June 2 2005
> > Buildfile: build.xml
> > Detected Java version: 1.4 in: C:\java\jdk\j2sdk1.4.2_09\jre
> > Detected OS: Windows 2000
> > parsing buildfile C:\Documents and
> > Settings\Administrator\Desktop\build.xml with
> > URI =
> >
> file:///C:/Documents%20and%20Settings/Administrator/Desktop/build.xml
> > Project base dir set to: C:\Documents and
> > Settings\Administrator\Desktop
> > Build sequence for target(s) `test' is [test]
> > Complete build sequence is [test, ]
> >
> > test:
> >     [move] Moving 1 file to C:\Documents and
> > Settings\Administrator\Desktop
> >     [move] Attempting to rename: C:\Documents and
> > Settings\Administrator\Deskto
> > p\bi.jar to C:\Documents and Settings\Administrator\Desktop\Bi.jar
> >     [move] Copying C:\Documents and
> > Settings\Administrator\Desktop\bi.jar to C:
> > \Documents and Settings\Administrator\Desktop\Bi.jar
> >
> > BUILD FAILED
> > C:\Documents and Settings\Administrator\Desktop\build.xml:3: Failed
> to
> > copy C:\D
> > ocuments and Settings\Administrator\Desktop\bi.jar to C:\Documents
> and
> > Settings\
> > Administrator\Desktop\Bi.jar due to C:\Documents and
> > Settings\Administrator\Desk
> > top\bi.jar (The system cannot find the file specified)
> >        at
> org.apache.tools.ant.taskdefs.Move.copyFile(Move.java:274)
> >        at
> org.apache.tools.ant.taskdefs.Move.moveFile(Move.java:226)
> >        at
> > org.apache.tools.ant.taskdefs.Move.doFileOperations(Move.java:153)
> >        at org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:430)
> >        at
> >
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
> >        at org.apache.tools.ant.Task.perform(Task.java:364)
> >        at org.apache.tools.ant.Target.execute(Target.java:341)
> >        at org.apache.tools.ant.Target.performTasks(Target.java:369)
> >        at
> >
> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
> >        at
> > org.apache.tools.ant.Project.executeTarget(Project.java:1185)
> >        at
> >
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
> > cutor.java:40)
> >        at
> > org.apache.tools.ant.Project.executeTargets(Project.java:1068)
> >        at org.apache.tools.ant.Main.runBuild(Main.java:668)
> >        at org.apache.tools.ant.Main.startAnt(Main.java:187)
> >        at
> org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
> >        at
> org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
> > Caused by: java.io.FileNotFoundException: C:\Documents and
> > Settings\Administrato
> > r\Desktop\bi.jar (The system cannot find the file specified)
> >        at java.io.FileInputStream.open(Native Method)
> >        at java.io.FileInputStream.<init>(FileInputStream.java:106)
> >        at
> > org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:630)
> >        at
> org.apache.tools.ant.taskdefs.Move.copyFile(Move.java:262)
> >        ... 15 more
> > --- Nested Exception ---
> > java.io.FileNotFoundException: C:\Documents and
> > Settings\Administrator\Desktop\b
> > i.jar (The system cannot find the file specified)
> >        at java.io.FileInputStream.open(Native Method)
> >        at java.io.FileInputStream.<init>(FileInputStream.java:106)
> >        at
> > org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:630)
> >        at
> org.apache.tools.ant.taskdefs.Move.copyFile(Move.java:262)
> >        at
> org.apache.tools.ant.taskdefs.Move.moveFile(Move.java:226)
> >        at
> > org.apache.tools.ant.taskdefs.Move.doFileOperations(Move.java:153)
> >        at org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:430)
> >        at
> >
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
> >        at org.apache.tools.ant.Task.perform(Task.java:364)
> >        at org.apache.tools.ant.Target.execute(Target.java:341)
> >        at org.apache.tools.ant.Target.performTasks(Target.java:369)
> >        at
> >
> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
> >        at
> > org.apache.tools.ant.Project.executeTarget(Project.java:1185)
> >        at
> >
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
> > cutor.java:40)
> >        at
> > org.apache.tools.ant.Project.executeTargets(Project.java:1068)
> >        at org.apache.tools.ant.Main.runBuild(Main.java:668)
> >        at org.apache.tools.ant.Main.startAnt(Main.java:187)
> >        at
> org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
> >        at
> org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
> >
> > Total time: 1 second
> > [error-message]
> >
> >
> The messages seem pretty clear: Ant could not find the bi.jar file in
> the 
> path that it searched: C:\Documents and
> Settings\Administrator\Desktop.
> 
> Is your file in that exact path? Is the current name of the file
> bi.jar or 
> is the spelling slightly different? If either value is wrong, fix it
> and 
> your move task should work.
> 
> If both the path and file name are correct, it might be an encoding
> issue; 
> the blanks in "Documents and Settings" appear to be getting turned
> into 
> "%20", which is normal. The antidote to that problem is to use
> apostrophes 
> (sometimes called single quotes) around the path and file name. For
> example, 
> notice the apostrophes within the regular quotes in the value
> parameters of 
> the old.name and new.name properties:
> 
> [build-script]
> <project default="test">
> 
> <property name="old.name" value="'c:\Documents and 
> Settings\Administrator\Desktop\bi.jar'" description="The old name of
> the 
> file."/>
> <property name="new.name" value="'c:\Documents and 
> Settings\Administrator\Desktop\Bi.jar'" description="The new name of
> the 
> file."/>
> 
>  <target name="test">
>     <move file="${old.name}" tofile="${new.name}" />
>  </target>
> </project>
> [build-script]

Hi Rhino,

thank you for your reply, but the bi.jar definitely exists on the same
directory with build.xml.

I don't know what's the exact logic Ant handle task move in Windows,
but it seems there is problem. Please refer to following verbose output
in my error message.

[quote]
test:
     [move] Moving 1 file to C:\Documents and
Settings\Administrator\Desktop
     [move] Attempting to rename: C:\Documents and
Settings\Administrator\Deskto
p\bi.jar to C:\Documents and Settings\Administrator\Desktop\Bi.jar
     [move] Copying C:\Documents and
Settings\Administrator\Desktop\bi.jar to C:
\Documents and Settings\Administrator\Desktop\Bi.jar

BUILD FAILED
[quote]

In the third [move] tag, there is a copy operation for bi.jar to
Bi.jar, but the bi.jar has already been renamed to Bi.jar in second
tag.


Best regards,
Leon

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: Failed to execute task move in Windows

Posted by Rhino <rh...@sympatico.ca>.
----- Original Message ----- 
From: "Leon Pu" <le...@yahoo.com.cn>
To: "Ant Usenet" <us...@ant.apache.org>
Sent: Wednesday, May 10, 2006 10:13 AM
Subject: Failed to execute task move in Windows


> Hi all,
>
> my build file with task move failed in Windows, but the same build file
> works in Linux. Could anybody tell me why?
>
> [build-script]
> <project default="test">
>  <target name="test">
>    <move file="bi.jar" tofile="Bi.jar" />
>  </target>
> </project>
> [build-script]
>
> [error-message]
> Apache Ant version 1.6.5 compiled on June 2 2005
> Buildfile: build.xml
> Detected Java version: 1.4 in: C:\java\jdk\j2sdk1.4.2_09\jre
> Detected OS: Windows 2000
> parsing buildfile C:\Documents and
> Settings\Administrator\Desktop\build.xml with
> URI =
> file:///C:/Documents%20and%20Settings/Administrator/Desktop/build.xml
> Project base dir set to: C:\Documents and
> Settings\Administrator\Desktop
> Build sequence for target(s) `test' is [test]
> Complete build sequence is [test, ]
>
> test:
>     [move] Moving 1 file to C:\Documents and
> Settings\Administrator\Desktop
>     [move] Attempting to rename: C:\Documents and
> Settings\Administrator\Deskto
> p\bi.jar to C:\Documents and Settings\Administrator\Desktop\Bi.jar
>     [move] Copying C:\Documents and
> Settings\Administrator\Desktop\bi.jar to C:
> \Documents and Settings\Administrator\Desktop\Bi.jar
>
> BUILD FAILED
> C:\Documents and Settings\Administrator\Desktop\build.xml:3: Failed to
> copy C:\D
> ocuments and Settings\Administrator\Desktop\bi.jar to C:\Documents and
> Settings\
> Administrator\Desktop\Bi.jar due to C:\Documents and
> Settings\Administrator\Desk
> top\bi.jar (The system cannot find the file specified)
>        at org.apache.tools.ant.taskdefs.Move.copyFile(Move.java:274)
>        at org.apache.tools.ant.taskdefs.Move.moveFile(Move.java:226)
>        at
> org.apache.tools.ant.taskdefs.Move.doFileOperations(Move.java:153)
>        at org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:430)
>        at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>        at org.apache.tools.ant.Task.perform(Task.java:364)
>        at org.apache.tools.ant.Target.execute(Target.java:341)
>        at org.apache.tools.ant.Target.performTasks(Target.java:369)
>        at
> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
>        at
> org.apache.tools.ant.Project.executeTarget(Project.java:1185)
>        at
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
> cutor.java:40)
>        at
> org.apache.tools.ant.Project.executeTargets(Project.java:1068)
>        at org.apache.tools.ant.Main.runBuild(Main.java:668)
>        at org.apache.tools.ant.Main.startAnt(Main.java:187)
>        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
>        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
> Caused by: java.io.FileNotFoundException: C:\Documents and
> Settings\Administrato
> r\Desktop\bi.jar (The system cannot find the file specified)
>        at java.io.FileInputStream.open(Native Method)
>        at java.io.FileInputStream.<init>(FileInputStream.java:106)
>        at
> org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:630)
>        at org.apache.tools.ant.taskdefs.Move.copyFile(Move.java:262)
>        ... 15 more
> --- Nested Exception ---
> java.io.FileNotFoundException: C:\Documents and
> Settings\Administrator\Desktop\b
> i.jar (The system cannot find the file specified)
>        at java.io.FileInputStream.open(Native Method)
>        at java.io.FileInputStream.<init>(FileInputStream.java:106)
>        at
> org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:630)
>        at org.apache.tools.ant.taskdefs.Move.copyFile(Move.java:262)
>        at org.apache.tools.ant.taskdefs.Move.moveFile(Move.java:226)
>        at
> org.apache.tools.ant.taskdefs.Move.doFileOperations(Move.java:153)
>        at org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:430)
>        at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>        at org.apache.tools.ant.Task.perform(Task.java:364)
>        at org.apache.tools.ant.Target.execute(Target.java:341)
>        at org.apache.tools.ant.Target.performTasks(Target.java:369)
>        at
> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
>        at
> org.apache.tools.ant.Project.executeTarget(Project.java:1185)
>        at
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
> cutor.java:40)
>        at
> org.apache.tools.ant.Project.executeTargets(Project.java:1068)
>        at org.apache.tools.ant.Main.runBuild(Main.java:668)
>        at org.apache.tools.ant.Main.startAnt(Main.java:187)
>        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
>        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
>
> Total time: 1 second
> [error-message]
>
>
The messages seem pretty clear: Ant could not find the bi.jar file in the 
path that it searched: C:\Documents and Settings\Administrator\Desktop.

Is your file in that exact path? Is the current name of the file bi.jar or 
is the spelling slightly different? If either value is wrong, fix it and 
your move task should work.

If both the path and file name are correct, it might be an encoding issue; 
the blanks in "Documents and Settings" appear to be getting turned into 
"%20", which is normal. The antidote to that problem is to use apostrophes 
(sometimes called single quotes) around the path and file name. For example, 
notice the apostrophes within the regular quotes in the value parameters of 
the old.name and new.name properties:

[build-script]
<project default="test">

<property name="old.name" value="'c:\Documents and 
Settings\Administrator\Desktop\bi.jar'" description="The old name of the 
file."/>
<property name="new.name" value="'c:\Documents and 
Settings\Administrator\Desktop\Bi.jar'" description="The new name of the 
file."/>

 <target name="test">
    <move file="${old.name}" tofile="${new.name}" />
 </target>
</project>
[build-script]

--
Rhino 



-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.392 / Virus Database: 268.5.5/335 - Release Date: 09/05/2006


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: Failed to execute task move in Windows

Posted by Rhino <rh...@sympatico.ca>.
Thank you for shedding light on this, Anthony!

Now I understand why the file disappeared.

At the very least, there should be a big note in the article for the move 
task warning that the file will be deleted in these circumstances but I'd be 
a LOT happier if this behaviour were FIXED, not just noted. It certainly 
feels like a bug - and a very serious one! - to me. Deleting a file 
unexpectedly could be catastrophic. Just imagine someone trying to rename 
the Windows registry and deleting it instead!

--
Rhino


----- Original Message ----- 
From: "Scot P. Floess" <fl...@mindspring.com>
To: "Ant Users List" <us...@ant.apache.org>
Sent: Wednesday, May 10, 2006 3:12 PM
Subject: Re: Failed to execute task move in Windows


> Ah...yeah...right :|
>
> Well the world would be a better place if everyone just ran Linux ;)
>
> Anthony Goubard wrote:
>> The problem is that the move task delete the destination before moving 
>> the file, so I let you guess what happens in this case.
>> http://issues.apache.org/bugzilla/show_bug.cgi?id=37701
>>
>> Anthony
>> Scot P. Floess wrote:
>>
>>> I've not look at the code behind the move target...but I would guess 
>>> it's java.io.File?  If so...not sure why it would do that either 
>>> <confused> ;)
>>>
>>> Rhino wrote:
>>>
>>>> Jeffrey,
>>>>  Thank you for the insight: you are absolutely right!
>>>>  I'm still a bit mystified though. When my target and property were set 
>>>> like this:
>>>>  <property name="path" value="C:\Documents and 
>>>> Settings\Administrator\Desktop" description="Path to jar which is to be 
>>>> renamed"/>
>>>> <target name="rename" description="Rename file.">
>>>>  <move file="${path}\bi.jar" tofile="${path}\Bi.jar" />
>>>> </target>
>>>>  the task failed and claimed that bi.jar could not be found; when I 
>>>> checked the directory, the jar file had been DELETED!! What's that all 
>>>> about? I could see the rename failing but why would Ant and/or Windows 
>>>> DELETE the file??
>>>>  -- 
>>>> Rhino
>>>>
>>>>     ----- Original Message -----
>>>>     *From:* Jeffrey E Care <ma...@us.ibm.com>
>>>>     *To:* Ant Users List <ma...@ant.apache.org>
>>>>     *Sent:* Wednesday, May 10, 2006 11:05 AM
>>>>     *Subject:* Re: Failed to execute task move in Windows
>>>>
>>>>
>>>>     Windows file systems are case-insensitive while being
>>>>     case-preserving; if all you want to do is to change the case
>>>>     you'll need to use an intermediate file (i.e. move to temp_Bi.jar,
>>>>     then move to Bi.jar).
>>>> 
>>>> ____________________________________________________________________________________________
>>>>
>>>>     Jeffrey E. (Jeff) Care        _carej@us.ibm.com_ 
>>>> <ma...@us.ibm.com>
>>>>     IBM WebSphere Application Server Development        WAS Pyxis Lead 
>>>> Release Engineer
>>>>     WebSphere Mosiac        WebSphere Brandmark
>>>>
>>>>
>>>>
>>>>
>>>>     Leon Pu <le...@yahoo.com.cn> wrote on 05/10/2006 10:13:32 AM:
>>>>
>>>>     > Hi all,
>>>>     >
>>>>     > my build file with task move failed in Windows, but the same
>>>>     build file
>>>>     > works in Linux. Could anybody tell me why?
>>>>     >
>>>>     > [build-script]
>>>>     > <project default="test">
>>>>     >   <target name="test">
>>>>     >     <move file="bi.jar" tofile="Bi.jar" />
>>>>     >   </target>
>>>>     > </project>
>>>>     > [build-script]
>>>>     >
>>>>     > [error-message]
>>>>     > Apache Ant version 1.6.5 compiled on June 2 2005
>>>>     > Buildfile: build.xml
>>>>     > Detected Java version: 1.4 in: C:\java\jdk\j2sdk1.4.2_09\jre
>>>>     > Detected OS: Windows 2000
>>>>     > parsing buildfile C:\Documents and
>>>>     > Settings\Administrator\Desktop\build.xml with
>>>>     >  URI =
>>>>     >
>>>> 
>>>> file:///C:/Documents%20and%20Settings/Administrator/Desktop/build.xml
>>>>     > Project base dir set to: C:\Documents and
>>>>     > Settings\Administrator\Desktop
>>>>     > Build sequence for target(s) `test' is [test]
>>>>     > Complete build sequence is [test, ]
>>>>     >
>>>>     > test:
>>>>     >      [move] Moving 1 file to C:\Documents and
>>>>     > Settings\Administrator\Desktop
>>>>     >      [move] Attempting to rename: C:\Documents and
>>>>     > Settings\Administrator\Deskto
>>>>     > p\bi.jar to C:\Documents and 
>>>> Settings\Administrator\Desktop\Bi.jar
>>>>     >      [move] Copying C:\Documents and
>>>>     > Settings\Administrator\Desktop\bi.jar to C:
>>>>     > \Documents and Settings\Administrator\Desktop\Bi.jar
>>>>     >
>>>>     > BUILD FAILED
>>>>     > C:\Documents and Settings\Administrator\Desktop\build.xml:3:
>>>>     Failed to
>>>>     > copy C:\D
>>>>     > ocuments and Settings\Administrator\Desktop\bi.jar to
>>>>     C:\Documents and
>>>>     > Settings\
>>>>     > Administrator\Desktop\Bi.jar due to C:\Documents and
>>>>     > Settings\Administrator\Desk
>>>>     > top\bi.jar (The system cannot find the file specified)
>>>>     >         at
>>>>     org.apache.tools.ant.taskdefs.Move.copyFile(Move.java:274)
>>>>     >         at
>>>>     org.apache.tools.ant.taskdefs.Move.moveFile(Move.java:226)
>>>>     >         at
>>>>     > 
>>>> org.apache.tools.ant.taskdefs.Move.doFileOperations(Move.java:153)
>>>>     >         at 
>>>> org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:430)
>>>>     >         at
>>>>     > 
>>>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>>>>     >         at org.apache.tools.ant.Task.perform(Task.java:364)
>>>>     >         at org.apache.tools.ant.Target.execute(Target.java:341)
>>>>     >         at 
>>>> org.apache.tools.ant.Target.performTasks(Target.java:369)
>>>>     >         at
>>>>     > 
>>>> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
>>>>     >         at
>>>>     > org.apache.tools.ant.Project.executeTarget(Project.java:1185)
>>>>     >         at
>>>>     >
>>>> 
>>>> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
>>>>     > cutor.java:40)
>>>>     >         at
>>>>     > org.apache.tools.ant.Project.executeTargets(Project.java:1068)
>>>>     >         at org.apache.tools.ant.Main.runBuild(Main.java:668)
>>>>     >         at org.apache.tools.ant.Main.startAnt(Main.java:187)
>>>>     >         at
>>>>     org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
>>>>     >         at
>>>>     org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
>>>>     > Caused by: java.io.FileNotFoundException: C:\Documents and
>>>>     > Settings\Administrato
>>>>     > r\Desktop\bi.jar (The system cannot find the file specified)
>>>>     >         at java.io.FileInputStream.open(Native Method)
>>>>     >         at 
>>>> java.io.FileInputStream.<init>(FileInputStream.java:106)
>>>>     >         at
>>>>     > org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:630)
>>>>     >         at
>>>>     org.apache.tools.ant.taskdefs.Move.copyFile(Move.java:262)
>>>>     >         ... 15 more
>>>>     > --- Nested Exception ---
>>>>     > java.io.FileNotFoundException: C:\Documents and
>>>>     > Settings\Administrator\Desktop\b
>>>>     > i.jar (The system cannot find the file specified)
>>>>     >         at java.io.FileInputStream.open(Native Method)
>>>>     >         at 
>>>> java.io.FileInputStream.<init>(FileInputStream.java:106)
>>>>     >         at
>>>>     > org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:630)
>>>>     >         at
>>>>     org.apache.tools.ant.taskdefs.Move.copyFile(Move.java:262)
>>>>     >         at
>>>>     org.apache.tools.ant.taskdefs.Move.moveFile(Move.java:226)
>>>>     >         at
>>>>     > 
>>>> org.apache.tools.ant.taskdefs.Move.doFileOperations(Move.java:153)
>>>>     >         at 
>>>> org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:430)
>>>>     >         at
>>>>     > 
>>>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>>>>     >         at org.apache.tools.ant.Task.perform(Task.java:364)
>>>>     >         at org.apache.tools.ant.Target.execute(Target.java:341)
>>>>     >         at 
>>>> org.apache.tools.ant.Target.performTasks(Target.java:369)
>>>>     >         at
>>>>     > 
>>>> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
>>>>     >         at
>>>>     > org.apache.tools.ant.Project.executeTarget(Project.java:1185)
>>>>     >         at
>>>>     >
>>>> 
>>>> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
>>>>     > cutor.java:40)
>>>>     >         at
>>>>     > org.apache.tools.ant.Project.executeTargets(Project.java:1068)
>>>>     >         at org.apache.tools.ant.Main.runBuild(Main.java:668)
>>>>     >         at org.apache.tools.ant.Main.startAnt(Main.java:187)
>>>>     >         at
>>>>     org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
>>>>     >         at
>>>>     org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
>>>>     >
>>>>     > Total time: 1 second
>>>>     > [error-message]
>>>>     >
>>>>     >
>>>>     > Best regards,
>>>>     > Leon
>>>>     >
>>>>     > __________________________________________________
>>>>     > Do You Yahoo!?
>>>>     > Tired of spam?  Yahoo! Mail has the best spam protection around
>>>>     > http://mail.yahoo.com
>>>>     >
>>>>     >
>>>>     ---------------------------------------------------------------------
>>>>     > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>>>>     > For additional commands, e-mail: user-help@ant.apache.org
>>>>     >
>>>>
>>>>     ------------------------------------------------------------------------
>>>>
>>>>     No virus found in this incoming message.
>>>>     Checked by AVG Free Edition.
>>>>     Version: 7.1.392 / Virus Database: 268.5.5/335 - Release Date:
>>>>     09/05/2006
>>>>
>>>> ------------------------------------------------------------------------
>>>>
>>>>
>>>> No virus found in this outgoing message.
>>>> Checked by AVG Free Edition.
>>>> Version: 7.1.392 / Virus Database: 268.5.5/335 - Release Date: 
>>>> 09/05/2006
>>>>
>>>>   ------------------------------------------------------------------------
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>>>> For additional commands, e-mail: user-help@ant.apache.org
>>>
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>> For additional commands, e-mail: user-help@ant.apache.org
>>
>>
>
> -- 
> Scot P. Floess
> 27 Lake Royale
> Louisburg, NC  27549
>
> 252-478-8087 (Home)
> 919-754-4592 (Work)
>
> Chief Architect JPlate  http://sourceforge.net/projects/jplate
> Chief Architect JavaPIM http://sourceforge.net/projects/javapim
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
> -- 
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.392 / Virus Database: 268.5.5/335 - Release Date: 09/05/2006
>
> 



-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.392 / Virus Database: 268.5.5/335 - Release Date: 09/05/2006


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: Failed to execute task move in Windows

Posted by "Scot P. Floess" <fl...@mindspring.com>.
Ah...yeah...right :|

Well the world would be a better place if everyone just ran Linux ;)

Anthony Goubard wrote:
> The problem is that the move task delete the destination before moving 
> the file, so I let you guess what happens in this case.
> http://issues.apache.org/bugzilla/show_bug.cgi?id=37701
>
> Anthony
> Scot P. Floess wrote:
>
>> I've not look at the code behind the move target...but I would guess 
>> it's java.io.File?  If so...not sure why it would do that either 
>> <confused> ;)
>>
>> Rhino wrote:
>>
>>> Jeffrey,
>>>  
>>> Thank you for the insight: you are absolutely right!
>>>  
>>> I'm still a bit mystified though. When my target and property were 
>>> set like this:
>>>  
>>> <property name="path" value="C:\Documents and 
>>> Settings\Administrator\Desktop" description="Path to jar which is to 
>>> be renamed"/>
>>> <target name="rename" description="Rename file.">
>>>  <move file="${path}\bi.jar" tofile="${path}\Bi.jar" />
>>> </target>
>>>  
>>> the task failed and claimed that bi.jar could not be found; when I 
>>> checked the directory, the jar file had been DELETED!! What's that 
>>> all about? I could see the rename failing but why would Ant and/or 
>>> Windows DELETE the file??
>>>  
>>> -- 
>>> Rhino
>>>  
>>>
>>>     ----- Original Message -----
>>>     *From:* Jeffrey E Care <ma...@us.ibm.com>
>>>     *To:* Ant Users List <ma...@ant.apache.org>
>>>     *Sent:* Wednesday, May 10, 2006 11:05 AM
>>>     *Subject:* Re: Failed to execute task move in Windows
>>>
>>>
>>>     Windows file systems are case-insensitive while being
>>>     case-preserving; if all you want to do is to change the case
>>>     you'll need to use an intermediate file (i.e. move to temp_Bi.jar,
>>>     then move to Bi.jar).
>>>     
>>> ____________________________________________________________________________________________ 
>>>
>>>
>>>     Jeffrey E. (Jeff) Care        _carej@us.ibm.com_ 
>>> <ma...@us.ibm.com>
>>>     IBM WebSphere Application Server Development        WAS Pyxis 
>>> Lead Release Engineer
>>>     WebSphere Mosiac        WebSphere Brandmark
>>>
>>>
>>>
>>>
>>>     Leon Pu <le...@yahoo.com.cn> wrote on 05/10/2006 10:13:32 AM:
>>>
>>>     > Hi all,
>>>     >
>>>     > my build file with task move failed in Windows, but the same
>>>     build file
>>>     > works in Linux. Could anybody tell me why?
>>>     >
>>>     > [build-script]
>>>     > <project default="test">
>>>     >   <target name="test">
>>>     >     <move file="bi.jar" tofile="Bi.jar" />
>>>     >   </target>
>>>     > </project>
>>>     > [build-script]
>>>     >
>>>     > [error-message]
>>>     > Apache Ant version 1.6.5 compiled on June 2 2005
>>>     > Buildfile: build.xml
>>>     > Detected Java version: 1.4 in: C:\java\jdk\j2sdk1.4.2_09\jre
>>>     > Detected OS: Windows 2000
>>>     > parsing buildfile C:\Documents and
>>>     > Settings\Administrator\Desktop\build.xml with
>>>     >  URI =
>>>     >
>>>     
>>> file:///C:/Documents%20and%20Settings/Administrator/Desktop/build.xml
>>>     > Project base dir set to: C:\Documents and
>>>     > Settings\Administrator\Desktop
>>>     > Build sequence for target(s) `test' is [test]
>>>     > Complete build sequence is [test, ]
>>>     >
>>>     > test:
>>>     >      [move] Moving 1 file to C:\Documents and
>>>     > Settings\Administrator\Desktop
>>>     >      [move] Attempting to rename: C:\Documents and
>>>     > Settings\Administrator\Deskto
>>>     > p\bi.jar to C:\Documents and 
>>> Settings\Administrator\Desktop\Bi.jar
>>>     >      [move] Copying C:\Documents and
>>>     > Settings\Administrator\Desktop\bi.jar to C:
>>>     > \Documents and Settings\Administrator\Desktop\Bi.jar
>>>     >
>>>     > BUILD FAILED
>>>     > C:\Documents and Settings\Administrator\Desktop\build.xml:3:
>>>     Failed to
>>>     > copy C:\D
>>>     > ocuments and Settings\Administrator\Desktop\bi.jar to
>>>     C:\Documents and
>>>     > Settings\
>>>     > Administrator\Desktop\Bi.jar due to C:\Documents and
>>>     > Settings\Administrator\Desk
>>>     > top\bi.jar (The system cannot find the file specified)
>>>     >         at
>>>     org.apache.tools.ant.taskdefs.Move.copyFile(Move.java:274)
>>>     >         at
>>>     org.apache.tools.ant.taskdefs.Move.moveFile(Move.java:226)
>>>     >         at
>>>     > 
>>> org.apache.tools.ant.taskdefs.Move.doFileOperations(Move.java:153)
>>>     >         at 
>>> org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:430)
>>>     >         at
>>>     > 
>>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>>>     >         at org.apache.tools.ant.Task.perform(Task.java:364)
>>>     >         at org.apache.tools.ant.Target.execute(Target.java:341)
>>>     >         at 
>>> org.apache.tools.ant.Target.performTasks(Target.java:369)
>>>     >         at
>>>     > 
>>> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
>>>     >         at
>>>     > org.apache.tools.ant.Project.executeTarget(Project.java:1185)
>>>     >         at
>>>     >
>>>     
>>> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
>>>     > cutor.java:40)
>>>     >         at
>>>     > org.apache.tools.ant.Project.executeTargets(Project.java:1068)
>>>     >         at org.apache.tools.ant.Main.runBuild(Main.java:668)
>>>     >         at org.apache.tools.ant.Main.startAnt(Main.java:187)
>>>     >         at
>>>     org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
>>>     >         at
>>>     org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
>>>     > Caused by: java.io.FileNotFoundException: C:\Documents and
>>>     > Settings\Administrato
>>>     > r\Desktop\bi.jar (The system cannot find the file specified)
>>>     >         at java.io.FileInputStream.open(Native Method)
>>>     >         at 
>>> java.io.FileInputStream.<init>(FileInputStream.java:106)
>>>     >         at
>>>     > org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:630)
>>>     >         at
>>>     org.apache.tools.ant.taskdefs.Move.copyFile(Move.java:262)
>>>     >         ... 15 more
>>>     > --- Nested Exception ---
>>>     > java.io.FileNotFoundException: C:\Documents and
>>>     > Settings\Administrator\Desktop\b
>>>     > i.jar (The system cannot find the file specified)
>>>     >         at java.io.FileInputStream.open(Native Method)
>>>     >         at 
>>> java.io.FileInputStream.<init>(FileInputStream.java:106)
>>>     >         at
>>>     > org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:630)
>>>     >         at
>>>     org.apache.tools.ant.taskdefs.Move.copyFile(Move.java:262)
>>>     >         at
>>>     org.apache.tools.ant.taskdefs.Move.moveFile(Move.java:226)
>>>     >         at
>>>     > 
>>> org.apache.tools.ant.taskdefs.Move.doFileOperations(Move.java:153)
>>>     >         at 
>>> org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:430)
>>>     >         at
>>>     > 
>>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>>>     >         at org.apache.tools.ant.Task.perform(Task.java:364)
>>>     >         at org.apache.tools.ant.Target.execute(Target.java:341)
>>>     >         at 
>>> org.apache.tools.ant.Target.performTasks(Target.java:369)
>>>     >         at
>>>     > 
>>> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
>>>     >         at
>>>     > org.apache.tools.ant.Project.executeTarget(Project.java:1185)
>>>     >         at
>>>     >
>>>     
>>> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
>>>     > cutor.java:40)
>>>     >         at
>>>     > org.apache.tools.ant.Project.executeTargets(Project.java:1068)
>>>     >         at org.apache.tools.ant.Main.runBuild(Main.java:668)
>>>     >         at org.apache.tools.ant.Main.startAnt(Main.java:187)
>>>     >         at
>>>     org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
>>>     >         at
>>>     org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
>>>     >
>>>     > Total time: 1 second
>>>     > [error-message]
>>>     >
>>>     >
>>>     > Best regards,
>>>     > Leon
>>>     >
>>>     > __________________________________________________
>>>     > Do You Yahoo!?
>>>     > Tired of spam?  Yahoo! Mail has the best spam protection around
>>>     > http://mail.yahoo.com
>>>     >
>>>     >
>>>     
>>> ---------------------------------------------------------------------
>>>     > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>>>     > For additional commands, e-mail: user-help@ant.apache.org
>>>     >
>>>
>>>     
>>> ------------------------------------------------------------------------ 
>>>
>>>     No virus found in this incoming message.
>>>     Checked by AVG Free Edition.
>>>     Version: 7.1.392 / Virus Database: 268.5.5/335 - Release Date:
>>>     09/05/2006
>>>
>>> ------------------------------------------------------------------------ 
>>>
>>>
>>> No virus found in this outgoing message.
>>> Checked by AVG Free Edition.
>>> Version: 7.1.392 / Virus Database: 268.5.5/335 - Release Date: 
>>> 09/05/2006
>>>
>>>   
>>> ------------------------------------------------------------------------ 
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>>> For additional commands, e-mail: user-help@ant.apache.org
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>

-- 
Scot P. Floess
27 Lake Royale
Louisburg, NC  27549

252-478-8087 (Home)
919-754-4592 (Work)

Chief Architect JPlate  http://sourceforge.net/projects/jplate
Chief Architect JavaPIM http://sourceforge.net/projects/javapim


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: Failed to execute task move in Windows

Posted by Anthony Goubard <an...@wanadoo.nl>.
The problem is that the move task delete the destination before moving 
the file, so I let you guess what happens in this case.
http://issues.apache.org/bugzilla/show_bug.cgi?id=37701

Anthony
Scot P. Floess wrote:

> I've not look at the code behind the move target...but I would guess 
> it's java.io.File?  If so...not sure why it would do that either 
> <confused> ;)
>
> Rhino wrote:
>
>> Jeffrey,
>>  
>> Thank you for the insight: you are absolutely right!
>>  
>> I'm still a bit mystified though. When my target and property were 
>> set like this:
>>  
>> <property name="path" value="C:\Documents and 
>> Settings\Administrator\Desktop" description="Path to jar which is to 
>> be renamed"/>
>> <target name="rename" description="Rename file.">
>>  <move file="${path}\bi.jar" tofile="${path}\Bi.jar" />
>> </target>
>>  
>> the task failed and claimed that bi.jar could not be found; when I 
>> checked the directory, the jar file had been DELETED!! What's that 
>> all about? I could see the rename failing but why would Ant and/or 
>> Windows DELETE the file??
>>  
>> -- 
>> Rhino
>>  
>>
>>     ----- Original Message -----
>>     *From:* Jeffrey E Care <ma...@us.ibm.com>
>>     *To:* Ant Users List <ma...@ant.apache.org>
>>     *Sent:* Wednesday, May 10, 2006 11:05 AM
>>     *Subject:* Re: Failed to execute task move in Windows
>>
>>
>>     Windows file systems are case-insensitive while being
>>     case-preserving; if all you want to do is to change the case
>>     you'll need to use an intermediate file (i.e. move to temp_Bi.jar,
>>     then move to Bi.jar).
>>     
>> ____________________________________________________________________________________________ 
>>
>>
>>     Jeffrey E. (Jeff) Care    
>>     _carej@us.ibm.com_ <ma...@us.ibm.com>
>>     IBM WebSphere Application Server Development    
>>     WAS Pyxis Lead Release Engineer
>>     WebSphere Mosiac    
>>     WebSphere Brandmark
>>
>>
>>
>>
>>     Leon Pu <le...@yahoo.com.cn> wrote on 05/10/2006 10:13:32 AM:
>>
>>     > Hi all,
>>     >
>>     > my build file with task move failed in Windows, but the same
>>     build file
>>     > works in Linux. Could anybody tell me why?
>>     >
>>     > [build-script]
>>     > <project default="test">
>>     >   <target name="test">
>>     >     <move file="bi.jar" tofile="Bi.jar" />
>>     >   </target>
>>     > </project>
>>     > [build-script]
>>     >
>>     > [error-message]
>>     > Apache Ant version 1.6.5 compiled on June 2 2005
>>     > Buildfile: build.xml
>>     > Detected Java version: 1.4 in: C:\java\jdk\j2sdk1.4.2_09\jre
>>     > Detected OS: Windows 2000
>>     > parsing buildfile C:\Documents and
>>     > Settings\Administrator\Desktop\build.xml with
>>     >  URI =
>>     >
>>     
>> file:///C:/Documents%20and%20Settings/Administrator/Desktop/build.xml
>>     > Project base dir set to: C:\Documents and
>>     > Settings\Administrator\Desktop
>>     > Build sequence for target(s) `test' is [test]
>>     > Complete build sequence is [test, ]
>>     >
>>     > test:
>>     >      [move] Moving 1 file to C:\Documents and
>>     > Settings\Administrator\Desktop
>>     >      [move] Attempting to rename: C:\Documents and
>>     > Settings\Administrator\Deskto
>>     > p\bi.jar to C:\Documents and Settings\Administrator\Desktop\Bi.jar
>>     >      [move] Copying C:\Documents and
>>     > Settings\Administrator\Desktop\bi.jar to C:
>>     > \Documents and Settings\Administrator\Desktop\Bi.jar
>>     >
>>     > BUILD FAILED
>>     > C:\Documents and Settings\Administrator\Desktop\build.xml:3:
>>     Failed to
>>     > copy C:\D
>>     > ocuments and Settings\Administrator\Desktop\bi.jar to
>>     C:\Documents and
>>     > Settings\
>>     > Administrator\Desktop\Bi.jar due to C:\Documents and
>>     > Settings\Administrator\Desk
>>     > top\bi.jar (The system cannot find the file specified)
>>     >         at
>>     org.apache.tools.ant.taskdefs.Move.copyFile(Move.java:274)
>>     >         at
>>     org.apache.tools.ant.taskdefs.Move.moveFile(Move.java:226)
>>     >         at
>>     > org.apache.tools.ant.taskdefs.Move.doFileOperations(Move.java:153)
>>     >         at 
>> org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:430)
>>     >         at
>>     > 
>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>>     >         at org.apache.tools.ant.Task.perform(Task.java:364)
>>     >         at org.apache.tools.ant.Target.execute(Target.java:341)
>>     >         at 
>> org.apache.tools.ant.Target.performTasks(Target.java:369)
>>     >         at
>>     > 
>> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
>>     >         at
>>     > org.apache.tools.ant.Project.executeTarget(Project.java:1185)
>>     >         at
>>     >
>>     
>> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
>>     > cutor.java:40)
>>     >         at
>>     > org.apache.tools.ant.Project.executeTargets(Project.java:1068)
>>     >         at org.apache.tools.ant.Main.runBuild(Main.java:668)
>>     >         at org.apache.tools.ant.Main.startAnt(Main.java:187)
>>     >         at
>>     org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
>>     >         at
>>     org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
>>     > Caused by: java.io.FileNotFoundException: C:\Documents and
>>     > Settings\Administrato
>>     > r\Desktop\bi.jar (The system cannot find the file specified)
>>     >         at java.io.FileInputStream.open(Native Method)
>>     >         at 
>> java.io.FileInputStream.<init>(FileInputStream.java:106)
>>     >         at
>>     > org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:630)
>>     >         at
>>     org.apache.tools.ant.taskdefs.Move.copyFile(Move.java:262)
>>     >         ... 15 more
>>     > --- Nested Exception ---
>>     > java.io.FileNotFoundException: C:\Documents and
>>     > Settings\Administrator\Desktop\b
>>     > i.jar (The system cannot find the file specified)
>>     >         at java.io.FileInputStream.open(Native Method)
>>     >         at 
>> java.io.FileInputStream.<init>(FileInputStream.java:106)
>>     >         at
>>     > org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:630)
>>     >         at
>>     org.apache.tools.ant.taskdefs.Move.copyFile(Move.java:262)
>>     >         at
>>     org.apache.tools.ant.taskdefs.Move.moveFile(Move.java:226)
>>     >         at
>>     > org.apache.tools.ant.taskdefs.Move.doFileOperations(Move.java:153)
>>     >         at 
>> org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:430)
>>     >         at
>>     > 
>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>>     >         at org.apache.tools.ant.Task.perform(Task.java:364)
>>     >         at org.apache.tools.ant.Target.execute(Target.java:341)
>>     >         at 
>> org.apache.tools.ant.Target.performTasks(Target.java:369)
>>     >         at
>>     > 
>> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
>>     >         at
>>     > org.apache.tools.ant.Project.executeTarget(Project.java:1185)
>>     >         at
>>     >
>>     
>> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
>>     > cutor.java:40)
>>     >         at
>>     > org.apache.tools.ant.Project.executeTargets(Project.java:1068)
>>     >         at org.apache.tools.ant.Main.runBuild(Main.java:668)
>>     >         at org.apache.tools.ant.Main.startAnt(Main.java:187)
>>     >         at
>>     org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
>>     >         at
>>     org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
>>     >
>>     > Total time: 1 second
>>     > [error-message]
>>     >
>>     >
>>     > Best regards,
>>     > Leon
>>     >
>>     > __________________________________________________
>>     > Do You Yahoo!?
>>     > Tired of spam?  Yahoo! Mail has the best spam protection around
>>     > http://mail.yahoo.com
>>     >
>>     >
>>     
>> ---------------------------------------------------------------------
>>     > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>>     > For additional commands, e-mail: user-help@ant.apache.org
>>     >
>>
>>     
>> ------------------------------------------------------------------------
>>     No virus found in this incoming message.
>>     Checked by AVG Free Edition.
>>     Version: 7.1.392 / Virus Database: 268.5.5/335 - Release Date:
>>     09/05/2006
>>
>> ------------------------------------------------------------------------
>>
>> No virus found in this outgoing message.
>> Checked by AVG Free Edition.
>> Version: 7.1.392 / Virus Database: 268.5.5/335 - Release Date: 
>> 09/05/2006
>>
>>   
>> ------------------------------------------------------------------------
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>> For additional commands, e-mail: user-help@ant.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: Failed to execute task move in Windows

Posted by "Scot P. Floess" <fl...@mindspring.com>.
I've not look at the code behind the move target...but I would guess 
it's java.io.File?  If so...not sure why it would do that either 
<confused> ;)

Rhino wrote:
> Jeffrey,
>  
> Thank you for the insight: you are absolutely right!
>  
> I'm still a bit mystified though. When my target and property were set 
> like this:
>  
> <property name="path" value="C:\Documents and 
> Settings\Administrator\Desktop" description="Path to jar which is to 
> be renamed"/>
> <target name="rename" description="Rename file.">
>  <move file="${path}\bi.jar" tofile="${path}\Bi.jar" />
> </target>
>  
> the task failed and claimed that bi.jar could not be found; when I 
> checked the directory, the jar file had been DELETED!! What's that all 
> about? I could see the rename failing but why would Ant and/or Windows 
> DELETE the file??
>  
> --
> Rhino
>  
>
>     ----- Original Message -----
>     *From:* Jeffrey E Care <ma...@us.ibm.com>
>     *To:* Ant Users List <ma...@ant.apache.org>
>     *Sent:* Wednesday, May 10, 2006 11:05 AM
>     *Subject:* Re: Failed to execute task move in Windows
>
>
>     Windows file systems are case-insensitive while being
>     case-preserving; if all you want to do is to change the case
>     you'll need to use an intermediate file (i.e. move to temp_Bi.jar,
>     then move to Bi.jar).
>     ____________________________________________________________________________________________
>
>     Jeffrey E. (Jeff) Care 	
>     _carej@us.ibm.com_ <ma...@us.ibm.com>
>     IBM WebSphere Application Server Development 	
>     WAS Pyxis Lead Release Engineer
>     WebSphere Mosiac 	
>     WebSphere Brandmark
>
>
>
>
>     Leon Pu <le...@yahoo.com.cn> wrote on 05/10/2006 10:13:32 AM:
>
>     > Hi all,
>     >
>     > my build file with task move failed in Windows, but the same
>     build file
>     > works in Linux. Could anybody tell me why?
>     >
>     > [build-script]
>     > <project default="test">
>     >   <target name="test">
>     >     <move file="bi.jar" tofile="Bi.jar" />
>     >   </target>
>     > </project>
>     > [build-script]
>     >
>     > [error-message]
>     > Apache Ant version 1.6.5 compiled on June 2 2005
>     > Buildfile: build.xml
>     > Detected Java version: 1.4 in: C:\java\jdk\j2sdk1.4.2_09\jre
>     > Detected OS: Windows 2000
>     > parsing buildfile C:\Documents and
>     > Settings\Administrator\Desktop\build.xml with
>     >  URI =
>     >
>     file:///C:/Documents%20and%20Settings/Administrator/Desktop/build.xml
>     > Project base dir set to: C:\Documents and
>     > Settings\Administrator\Desktop
>     > Build sequence for target(s) `test' is [test]
>     > Complete build sequence is [test, ]
>     >
>     > test:
>     >      [move] Moving 1 file to C:\Documents and
>     > Settings\Administrator\Desktop
>     >      [move] Attempting to rename: C:\Documents and
>     > Settings\Administrator\Deskto
>     > p\bi.jar to C:\Documents and Settings\Administrator\Desktop\Bi.jar
>     >      [move] Copying C:\Documents and
>     > Settings\Administrator\Desktop\bi.jar to C:
>     > \Documents and Settings\Administrator\Desktop\Bi.jar
>     >
>     > BUILD FAILED
>     > C:\Documents and Settings\Administrator\Desktop\build.xml:3:
>     Failed to
>     > copy C:\D
>     > ocuments and Settings\Administrator\Desktop\bi.jar to
>     C:\Documents and
>     > Settings\
>     > Administrator\Desktop\Bi.jar due to C:\Documents and
>     > Settings\Administrator\Desk
>     > top\bi.jar (The system cannot find the file specified)
>     >         at
>     org.apache.tools.ant.taskdefs.Move.copyFile(Move.java:274)
>     >         at
>     org.apache.tools.ant.taskdefs.Move.moveFile(Move.java:226)
>     >         at
>     > org.apache.tools.ant.taskdefs.Move.doFileOperations(Move.java:153)
>     >         at org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:430)
>     >         at
>     > org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>     >         at org.apache.tools.ant.Task.perform(Task.java:364)
>     >         at org.apache.tools.ant.Target.execute(Target.java:341)
>     >         at org.apache.tools.ant.Target.performTasks(Target.java:369)
>     >         at
>     > org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
>     >         at
>     > org.apache.tools.ant.Project.executeTarget(Project.java:1185)
>     >         at
>     >
>     org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
>     > cutor.java:40)
>     >         at
>     > org.apache.tools.ant.Project.executeTargets(Project.java:1068)
>     >         at org.apache.tools.ant.Main.runBuild(Main.java:668)
>     >         at org.apache.tools.ant.Main.startAnt(Main.java:187)
>     >         at
>     org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
>     >         at
>     org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
>     > Caused by: java.io.FileNotFoundException: C:\Documents and
>     > Settings\Administrato
>     > r\Desktop\bi.jar (The system cannot find the file specified)
>     >         at java.io.FileInputStream.open(Native Method)
>     >         at java.io.FileInputStream.<init>(FileInputStream.java:106)
>     >         at
>     > org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:630)
>     >         at
>     org.apache.tools.ant.taskdefs.Move.copyFile(Move.java:262)
>     >         ... 15 more
>     > --- Nested Exception ---
>     > java.io.FileNotFoundException: C:\Documents and
>     > Settings\Administrator\Desktop\b
>     > i.jar (The system cannot find the file specified)
>     >         at java.io.FileInputStream.open(Native Method)
>     >         at java.io.FileInputStream.<init>(FileInputStream.java:106)
>     >         at
>     > org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:630)
>     >         at
>     org.apache.tools.ant.taskdefs.Move.copyFile(Move.java:262)
>     >         at
>     org.apache.tools.ant.taskdefs.Move.moveFile(Move.java:226)
>     >         at
>     > org.apache.tools.ant.taskdefs.Move.doFileOperations(Move.java:153)
>     >         at org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:430)
>     >         at
>     > org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>     >         at org.apache.tools.ant.Task.perform(Task.java:364)
>     >         at org.apache.tools.ant.Target.execute(Target.java:341)
>     >         at org.apache.tools.ant.Target.performTasks(Target.java:369)
>     >         at
>     > org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
>     >         at
>     > org.apache.tools.ant.Project.executeTarget(Project.java:1185)
>     >         at
>     >
>     org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
>     > cutor.java:40)
>     >         at
>     > org.apache.tools.ant.Project.executeTargets(Project.java:1068)
>     >         at org.apache.tools.ant.Main.runBuild(Main.java:668)
>     >         at org.apache.tools.ant.Main.startAnt(Main.java:187)
>     >         at
>     org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
>     >         at
>     org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
>     >
>     > Total time: 1 second
>     > [error-message]
>     >
>     >
>     > Best regards,
>     > Leon
>     >
>     > __________________________________________________
>     > Do You Yahoo!?
>     > Tired of spam?  Yahoo! Mail has the best spam protection around
>     > http://mail.yahoo.com
>     >
>     >
>     ---------------------------------------------------------------------
>     > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>     > For additional commands, e-mail: user-help@ant.apache.org
>     >
>
>     ------------------------------------------------------------------------
>     No virus found in this incoming message.
>     Checked by AVG Free Edition.
>     Version: 7.1.392 / Virus Database: 268.5.5/335 - Release Date:
>     09/05/2006
>
> ------------------------------------------------------------------------
>
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.1.392 / Virus Database: 268.5.5/335 - Release Date: 09/05/2006
>
>   
> ------------------------------------------------------------------------
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org

-- 
Scot P. Floess
27 Lake Royale
Louisburg, NC  27549

252-478-8087 (Home)
919-754-4592 (Work)

Chief Architect JPlate  http://sourceforge.net/projects/jplate
Chief Architect JavaPIM http://sourceforge.net/projects/javapim


Re: Failed to execute task move in Windows

Posted by Rhino <rh...@sympatico.ca>.
Jeffrey,

Thank you for the insight: you are absolutely right!

I'm still a bit mystified though. When my target and property were set like this:

<property name="path" value="C:\Documents and Settings\Administrator\Desktop" description="Path to jar which is to be renamed"/>

<target name="rename" description="Rename file.">
 <move file="${path}\bi.jar" tofile="${path}\Bi.jar" />
</target>

the task failed and claimed that bi.jar could not be found; when I checked the directory, the jar file had been DELETED!! What's that all about? I could see the rename failing but why would Ant and/or Windows DELETE the file??

--
Rhino

  ----- Original Message ----- 
  From: Jeffrey E Care 
  To: Ant Users List 
  Sent: Wednesday, May 10, 2006 11:05 AM
  Subject: Re: Failed to execute task move in Windows



  Windows file systems are case-insensitive while being case-preserving; if all you want to do is to change the case you'll need to use an intermediate file (i.e. move to temp_Bi.jar, then move to Bi.jar).
        ____________________________________________________________________________________________  
        Jeffrey E. (Jeff) Care  carej@us.ibm.com  
        IBM WebSphere Application Server Development  WAS Pyxis Lead Release Engineer  
           



  Leon Pu <le...@yahoo.com.cn> wrote on 05/10/2006 10:13:32 AM:

  > Hi all,
  > 
  > my build file with task move failed in Windows, but the same build file
  > works in Linux. Could anybody tell me why?
  > 
  > [build-script]
  > <project default="test">
  >   <target name="test">
  >     <move file="bi.jar" tofile="Bi.jar" />
  >   </target>
  > </project>
  > [build-script]
  > 
  > [error-message]
  > Apache Ant version 1.6.5 compiled on June 2 2005
  > Buildfile: build.xml
  > Detected Java version: 1.4 in: C:\java\jdk\j2sdk1.4.2_09\jre
  > Detected OS: Windows 2000
  > parsing buildfile C:\Documents and
  > Settings\Administrator\Desktop\build.xml with
  >  URI =
  > file:///C:/Documents%20and%20Settings/Administrator/Desktop/build.xml
  > Project base dir set to: C:\Documents and
  > Settings\Administrator\Desktop
  > Build sequence for target(s) `test' is [test]
  > Complete build sequence is [test, ]
  > 
  > test:
  >      [move] Moving 1 file to C:\Documents and
  > Settings\Administrator\Desktop
  >      [move] Attempting to rename: C:\Documents and
  > Settings\Administrator\Deskto
  > p\bi.jar to C:\Documents and Settings\Administrator\Desktop\Bi.jar
  >      [move] Copying C:\Documents and
  > Settings\Administrator\Desktop\bi.jar to C:
  > \Documents and Settings\Administrator\Desktop\Bi.jar
  > 
  > BUILD FAILED
  > C:\Documents and Settings\Administrator\Desktop\build.xml:3: Failed to
  > copy C:\D
  > ocuments and Settings\Administrator\Desktop\bi.jar to C:\Documents and
  > Settings\
  > Administrator\Desktop\Bi.jar due to C:\Documents and
  > Settings\Administrator\Desk
  > top\bi.jar (The system cannot find the file specified)
  >         at org.apache.tools.ant.taskdefs.Move.copyFile(Move.java:274)
  >         at org.apache.tools.ant.taskdefs.Move.moveFile(Move.java:226)
  >         at
  > org.apache.tools.ant.taskdefs.Move.doFileOperations(Move.java:153)
  >         at org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:430)
  >         at
  > org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
  >         at org.apache.tools.ant.Task.perform(Task.java:364)
  >         at org.apache.tools.ant.Target.execute(Target.java:341)
  >         at org.apache.tools.ant.Target.performTasks(Target.java:369)
  >         at
  > org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
  >         at
  > org.apache.tools.ant.Project.executeTarget(Project.java:1185)
  >         at
  > org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
  > cutor.java:40)
  >         at
  > org.apache.tools.ant.Project.executeTargets(Project.java:1068)
  >         at org.apache.tools.ant.Main.runBuild(Main.java:668)
  >         at org.apache.tools.ant.Main.startAnt(Main.java:187)
  >         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
  >         at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
  > Caused by: java.io.FileNotFoundException: C:\Documents and
  > Settings\Administrato
  > r\Desktop\bi.jar (The system cannot find the file specified)
  >         at java.io.FileInputStream.open(Native Method)
  >         at java.io.FileInputStream.<init>(FileInputStream.java:106)
  >         at
  > org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:630)
  >         at org.apache.tools.ant.taskdefs.Move.copyFile(Move.java:262)
  >         ... 15 more
  > --- Nested Exception ---
  > java.io.FileNotFoundException: C:\Documents and
  > Settings\Administrator\Desktop\b
  > i.jar (The system cannot find the file specified)
  >         at java.io.FileInputStream.open(Native Method)
  >         at java.io.FileInputStream.<init>(FileInputStream.java:106)
  >         at
  > org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:630)
  >         at org.apache.tools.ant.taskdefs.Move.copyFile(Move.java:262)
  >         at org.apache.tools.ant.taskdefs.Move.moveFile(Move.java:226)
  >         at
  > org.apache.tools.ant.taskdefs.Move.doFileOperations(Move.java:153)
  >         at org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:430)
  >         at
  > org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
  >         at org.apache.tools.ant.Task.perform(Task.java:364)
  >         at org.apache.tools.ant.Target.execute(Target.java:341)
  >         at org.apache.tools.ant.Target.performTasks(Target.java:369)
  >         at
  > org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
  >         at
  > org.apache.tools.ant.Project.executeTarget(Project.java:1185)
  >         at
  > org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
  > cutor.java:40)
  >         at
  > org.apache.tools.ant.Project.executeTargets(Project.java:1068)
  >         at org.apache.tools.ant.Main.runBuild(Main.java:668)
  >         at org.apache.tools.ant.Main.startAnt(Main.java:187)
  >         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
  >         at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
  > 
  > Total time: 1 second
  > [error-message]
  > 
  > 
  > Best regards,
  > Leon
  > 
  > __________________________________________________
  > Do You Yahoo!?
  > Tired of spam?  Yahoo! Mail has the best spam protection around 
  > http://mail.yahoo.com 
  > 
  > ---------------------------------------------------------------------
  > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
  > For additional commands, e-mail: user-help@ant.apache.org
  > 



------------------------------------------------------------------------------


  No virus found in this incoming message.
  Checked by AVG Free Edition.
  Version: 7.1.392 / Virus Database: 268.5.5/335 - Release Date: 09/05/2006

Re: Failed to execute task move in Windows

Posted by Leon Pu <le...@yahoo.com.cn>.
Hi Jeffrey,

you are right, I shiped the build script from Linux to Windows without
awaring the case-insensitive in Windows.

Thanks a lot.


Best regards,
Leon

--- Jeffrey E Care <ca...@us.ibm.com> wrote:

> Windows file systems are case-insensitive while being
> case-preserving; if 
> all you want to do is to change the case you'll need to use an 
> intermediate file (i.e. move to temp_Bi.jar, then move to Bi.jar).
> 
>
____________________________________________________________________________________________
> 
> 
> Jeffrey E. (Jeff) Care 
> carej@us.ibm.com 
> IBM WebSphere Application Server Development 
> WAS Pyxis Lead Release Engineer 
> 
> 
> 
> 
> Leon Pu <le...@yahoo.com.cn> wrote on 05/10/2006 10:13:32 AM:
> 
> > Hi all,
> > 
> > my build file with task move failed in Windows, but the same build
> file
> > works in Linux. Could anybody tell me why?
> > 
> > [build-script]
> > <project default="test">
> >   <target name="test">
> >     <move file="bi.jar" tofile="Bi.jar" />
> >   </target>
> > </project>
> > [build-script]
> > 
> > [error-message]
> > Apache Ant version 1.6.5 compiled on June 2 2005
> > Buildfile: build.xml
> > Detected Java version: 1.4 in: C:\java\jdk\j2sdk1.4.2_09\jre
> > Detected OS: Windows 2000
> > parsing buildfile C:\Documents and
> > Settings\Administrator\Desktop\build.xml with
> >  URI =
> >
> file:///C:/Documents%20and%20Settings/Administrator/Desktop/build.xml
> > Project base dir set to: C:\Documents and
> > Settings\Administrator\Desktop
> > Build sequence for target(s) `test' is [test]
> > Complete build sequence is [test, ]
> > 
> > test:
> >      [move] Moving 1 file to C:\Documents and
> > Settings\Administrator\Desktop
> >      [move] Attempting to rename: C:\Documents and
> > Settings\Administrator\Deskto
> > p\bi.jar to C:\Documents and Settings\Administrator\Desktop\Bi.jar
> >      [move] Copying C:\Documents and
> > Settings\Administrator\Desktop\bi.jar to C:
> > \Documents and Settings\Administrator\Desktop\Bi.jar
> > 
> > BUILD FAILED
> > C:\Documents and Settings\Administrator\Desktop\build.xml:3: Failed
> to
> > copy C:\D
> > ocuments and Settings\Administrator\Desktop\bi.jar to C:\Documents
> and
> > Settings\
> > Administrator\Desktop\Bi.jar due to C:\Documents and
> > Settings\Administrator\Desk
> > top\bi.jar (The system cannot find the file specified)
> >         at
> org.apache.tools.ant.taskdefs.Move.copyFile(Move.java:274)
> >         at
> org.apache.tools.ant.taskdefs.Move.moveFile(Move.java:226)
> >         at
> > org.apache.tools.ant.taskdefs.Move.doFileOperations(Move.java:153)
> >         at
> org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:430)
> >         at
> >
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
> >         at org.apache.tools.ant.Task.perform(Task.java:364)
> >         at org.apache.tools.ant.Target.execute(Target.java:341)
> >         at
> org.apache.tools.ant.Target.performTasks(Target.java:369)
> >         at
> >
> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
> >         at
> > org.apache.tools.ant.Project.executeTarget(Project.java:1185)
> >         at
> >
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
> > cutor.java:40)
> >         at
> > org.apache.tools.ant.Project.executeTargets(Project.java:1068)
> >         at org.apache.tools.ant.Main.runBuild(Main.java:668)
> >         at org.apache.tools.ant.Main.startAnt(Main.java:187)
> >         at
> org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
> >         at
> org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
> > Caused by: java.io.FileNotFoundException: C:\Documents and
> > Settings\Administrato
> > r\Desktop\bi.jar (The system cannot find the file specified)
> >         at java.io.FileInputStream.open(Native Method)
> >         at java.io.FileInputStream.<init>(FileInputStream.java:106)
> >         at
> > org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:630)
> >         at
> org.apache.tools.ant.taskdefs.Move.copyFile(Move.java:262)
> >         ... 15 more
> > --- Nested Exception ---
> > java.io.FileNotFoundException: C:\Documents and
> > Settings\Administrator\Desktop\b
> > i.jar (The system cannot find the file specified)
> >         at java.io.FileInputStream.open(Native Method)
> >         at java.io.FileInputStream.<init>(FileInputStream.java:106)
> >         at
> > org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:630)
> >         at
> org.apache.tools.ant.taskdefs.Move.copyFile(Move.java:262)
> >         at
> org.apache.tools.ant.taskdefs.Move.moveFile(Move.java:226)
> >         at
> > org.apache.tools.ant.taskdefs.Move.doFileOperations(Move.java:153)
> >         at
> org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:430)
> >         at
> >
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
> >         at org.apache.tools.ant.Task.perform(Task.java:364)
> >         at org.apache.tools.ant.Target.execute(Target.java:341)
> >         at
> org.apache.tools.ant.Target.performTasks(Target.java:369)
> >         at
> >
> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
> >         at
> > org.apache.tools.ant.Project.executeTarget(Project.java:1185)
> >         at
> >
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
> > cutor.java:40)
> >         at
> > org.apache.tools.ant.Project.executeTargets(Project.java:1068)
> >         at org.apache.tools.ant.Main.runBuild(Main.java:668)
> >         at org.apache.tools.ant.Main.startAnt(Main.java:187)
> >         at
> org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
> >         at
> org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
> > 
> > Total time: 1 second
> > [error-message]
> > 
> > 
> > Best regards,
> > Leon
> > 
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam protection around 
> > http://mail.yahoo.com 
> > 
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> > For additional commands, e-mail: user-help@ant.apache.org
> > 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: Failed to execute task move in Windows

Posted by Jeffrey E Care <ca...@us.ibm.com>.
Windows file systems are case-insensitive while being case-preserving; if 
all you want to do is to change the case you'll need to use an 
intermediate file (i.e. move to temp_Bi.jar, then move to Bi.jar).

____________________________________________________________________________________________ 

Jeffrey E. (Jeff) Care 
carej@us.ibm.com 
IBM WebSphere Application Server Development 
WAS Pyxis Lead Release Engineer 




Leon Pu <le...@yahoo.com.cn> wrote on 05/10/2006 10:13:32 AM:

> Hi all,
> 
> my build file with task move failed in Windows, but the same build file
> works in Linux. Could anybody tell me why?
> 
> [build-script]
> <project default="test">
>   <target name="test">
>     <move file="bi.jar" tofile="Bi.jar" />
>   </target>
> </project>
> [build-script]
> 
> [error-message]
> Apache Ant version 1.6.5 compiled on June 2 2005
> Buildfile: build.xml
> Detected Java version: 1.4 in: C:\java\jdk\j2sdk1.4.2_09\jre
> Detected OS: Windows 2000
> parsing buildfile C:\Documents and
> Settings\Administrator\Desktop\build.xml with
>  URI =
> file:///C:/Documents%20and%20Settings/Administrator/Desktop/build.xml
> Project base dir set to: C:\Documents and
> Settings\Administrator\Desktop
> Build sequence for target(s) `test' is [test]
> Complete build sequence is [test, ]
> 
> test:
>      [move] Moving 1 file to C:\Documents and
> Settings\Administrator\Desktop
>      [move] Attempting to rename: C:\Documents and
> Settings\Administrator\Deskto
> p\bi.jar to C:\Documents and Settings\Administrator\Desktop\Bi.jar
>      [move] Copying C:\Documents and
> Settings\Administrator\Desktop\bi.jar to C:
> \Documents and Settings\Administrator\Desktop\Bi.jar
> 
> BUILD FAILED
> C:\Documents and Settings\Administrator\Desktop\build.xml:3: Failed to
> copy C:\D
> ocuments and Settings\Administrator\Desktop\bi.jar to C:\Documents and
> Settings\
> Administrator\Desktop\Bi.jar due to C:\Documents and
> Settings\Administrator\Desk
> top\bi.jar (The system cannot find the file specified)
>         at org.apache.tools.ant.taskdefs.Move.copyFile(Move.java:274)
>         at org.apache.tools.ant.taskdefs.Move.moveFile(Move.java:226)
>         at
> org.apache.tools.ant.taskdefs.Move.doFileOperations(Move.java:153)
>         at org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:430)
>         at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>         at org.apache.tools.ant.Task.perform(Task.java:364)
>         at org.apache.tools.ant.Target.execute(Target.java:341)
>         at org.apache.tools.ant.Target.performTasks(Target.java:369)
>         at
> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
>         at
> org.apache.tools.ant.Project.executeTarget(Project.java:1185)
>         at
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
> cutor.java:40)
>         at
> org.apache.tools.ant.Project.executeTargets(Project.java:1068)
>         at org.apache.tools.ant.Main.runBuild(Main.java:668)
>         at org.apache.tools.ant.Main.startAnt(Main.java:187)
>         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
>         at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
> Caused by: java.io.FileNotFoundException: C:\Documents and
> Settings\Administrato
> r\Desktop\bi.jar (The system cannot find the file specified)
>         at java.io.FileInputStream.open(Native Method)
>         at java.io.FileInputStream.<init>(FileInputStream.java:106)
>         at
> org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:630)
>         at org.apache.tools.ant.taskdefs.Move.copyFile(Move.java:262)
>         ... 15 more
> --- Nested Exception ---
> java.io.FileNotFoundException: C:\Documents and
> Settings\Administrator\Desktop\b
> i.jar (The system cannot find the file specified)
>         at java.io.FileInputStream.open(Native Method)
>         at java.io.FileInputStream.<init>(FileInputStream.java:106)
>         at
> org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:630)
>         at org.apache.tools.ant.taskdefs.Move.copyFile(Move.java:262)
>         at org.apache.tools.ant.taskdefs.Move.moveFile(Move.java:226)
>         at
> org.apache.tools.ant.taskdefs.Move.doFileOperations(Move.java:153)
>         at org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:430)
>         at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>         at org.apache.tools.ant.Task.perform(Task.java:364)
>         at org.apache.tools.ant.Target.execute(Target.java:341)
>         at org.apache.tools.ant.Target.performTasks(Target.java:369)
>         at
> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
>         at
> org.apache.tools.ant.Project.executeTarget(Project.java:1185)
>         at
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
> cutor.java:40)
>         at
> org.apache.tools.ant.Project.executeTargets(Project.java:1068)
>         at org.apache.tools.ant.Main.runBuild(Main.java:668)
>         at org.apache.tools.ant.Main.startAnt(Main.java:187)
>         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
>         at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
> 
> Total time: 1 second
> [error-message]
> 
> 
> Best regards,
> Leon
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>