• 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

copy a file to a directory that can change part of name with ANT?

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I need to copy this source file to C:\Program Files (x86)\Jenkins\workspace\vocbench\target\vocbench3-5.0-SNAPSHOT.war

In this destination folder: C:\Program Files (x86)\Jenkins\workspace\VB_deploy\semanticturkey-5.0-SNAPSHOT/deploy/

The problem stems from the fact that the internal name of the folder .../.../semanticturkey-5.0-SNAPSHOT/.../... It may vary over time in 5.1 / 5.2 / 6.0, etc.

I had thought of something like this, but it does not work:


copy the file to a variable, but not to the right destination directory. How can I do?
 
Rototillers convert rich soil into dirt. Please note that this tiny ad is not a rototiller:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic