ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robin Darby <ro...@i-next.co.uk>
Subject Does failonerror="false" not work then?
Date Thu, 25 Aug 2005 13:20:23 GMT

Hello,
     Does failonerror="false" not work for symlink then ("file  
exists" breaks the rule)?

i.e.
<symlink link="${site_intarsia_root}/page/iedit/forms/search.xml"  
resource="${conf}/forms/search.xml" failonerror="false"/>

   [symlink] ln -s /export/home/www/instantweb_modules/search/ 
search_1.0/conf/forms/search.xml /apps/home/www/instantweb/docroot/ 
acme/acme/page/iedit/forms/search.xml
   [symlink] Executing 'ln' with arguments:
   [symlink] '-s'
   [symlink] '/export/home/www/instantweb_modules/search/search_1.0/ 
conf/forms/search.xml'
   [symlink] '/apps/home/www/instantweb/docroot/acme/acme/page/iedit/ 
forms/search.xml'
   [symlink]
   [symlink] The ' characters around the executable and arguments are
   [symlink] not part of the command.
   [symlink] /bin/ln: `/apps/home/www/instantweb/docroot/acme/acme/ 
page/iedit/forms/search.xml': File exists

BUILD FAILED
/export/home/www/instantweb_modules/search/search_1.0/conf/deploy.xml: 
62: ln failed with return code 1
         at org.apache.tools.ant.taskdefs.Execute.runCommand 
(Execute.java:650)
         at org.apache.tools.ant.taskdefs.optional.unix.Symlink.doLink 
(Symlink.java:502)
         at  
org.apache.tools.ant.taskdefs.optional.unix.Symlink.execute 
(Symlink.java:142)
         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 
(DefaultExecutor.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)

Thanks
     Robin...

Robin Darby                                                  Web:    
http://www.i-next.co.uk/
Development Engineer                                 Phone: +44 (0) 
870 220 1274
I-Next Ltd. - Integrated Web Site Management:   +44 (0)870 220 1275
----------------------------------------------------------------------
This email and any files transmitted with it are private and intended
solely for the use of the individual or entity to whom they are  
addressed.
If you have received this email in error please return it to the address
it came from telling them it is not for you and then delete it from your
system.
----------------------------------------------------------------------



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


Mime
View raw message