• 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

copying properties files

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
In my development environment i've a few properties file in src folder along with webcontent folder. I need that while creating the war through ant - my src/*.properties files gets copied to webcontent folder but when i try
<copy file="${src.dir}/TempLocation.properties" tofile="${web.dir}"/>

where web.dir="WebContent" i get the following error:

C:\projects\ide\workspace\FWTServices\build.xml:79: Failed to copy C:\projects\i
de\workspace\FWTServices\src\TempLocation.xml to C:\projects\ide\workspace\FWTSe
rvices\WebContent due to C:\projects\ide\workspace\FWTServices\WebContent (Acces
s is denied) and I couldn't delete the corrupt C:\projects\ide\workspace\FWTServ
ices\WebContent


please help
 
Ruchee Goyal
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
in the above post it's TempLocation.properties instead of TempLocation.xml
 
Bartender
Posts: 2661
19
Netbeans IDE C++ Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Are you copying the file to your ide's working directory while the ide is running?
Seems like the ide (or another process) has your file in use.

Regards, Jan
[ May 11, 2007: Message edited by: Jan Cumps ]
reply
    Bookmark Topic Watch Topic
  • New Topic