Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with using Ants conditions and dependencies

 
Jesse Felter
Greenhorn
Posts: 17
  • 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: 64828
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • 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
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic