File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with using Ants conditions and dependencies

 
Jesse Felter
Greenhorn
Posts: 17
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have just started using Ant and I ran into a roadblock:

I am installing some dlls and registry files on different workstations, some of these work stations use C drive path and some that use an M drive path.. My question is whether Ant has the capability of deciding which drive the workstation is using

I have worked with dependencies but from my limited knowledge I have not figured out a way to solve my problem.. Any insight would be helpful, thanks
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64192
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can tell it where to look for things with an external property that you set up approriately for each system.
 
Mark Binau
Ranch Hand
Posts: 37
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you set the basedir="." in the project task, you can then use a condition to test ${basedir} and see what directory you are in which will include the drive.

Hope this helps.
Mark
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic