• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Copy task

 
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,


What happens when I mention a non existent directory name as a todir attribute in a copy task ?

In my build file I had done so shaan directory doesnot exist , but the build tool is not flashing any error ? why is it like that ?
The below script works fine and doesn't copy anywhere ?

<!-- Deploy the WAR file to WebLogic -->
<target name="deploy" depends="war" description="Deploy application to WebLogic">
<copy file="${build.deploy.dir}/${context.name}.war"
todir="Shaan"/>
</target>


Regards
Shaan Patil
 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
It is impossible ..

check in your base directory, there must be one folder with name Shaan.
I think on c drive if i am not wrong.


regards,
PP
 
Shaan patil
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HI,

It has created a directory by that directory. So, Can we conclude that when a destination directory doesn't exist it creates one ?
[ June 04, 2008: Message edited by: Shaan patil ]
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Shaan patil:
So, Can we conclude that when a destination directory doesn't exist it creates one ?


Yes. That is correct.
 
Oh. Hi guys! Look at this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic