| Author |
Problem with using Ants conditions and dependencies
|
Jesse Felter
Greenhorn
Joined: Aug 23, 2004
Posts: 17
|
|
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 opinionated walrus
Marshal
Joined: Jan 10, 2002
Posts: 50676
|
|
|
You can tell it where to look for things with an external property that you set up approriately for each system.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
Mark Binau
Ranch Hand
Joined: Mar 04, 2004
Posts: 37
|
|
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
|
 |
 |
|
|
subject: Problem with using Ants conditions and dependencies
|
|
|