This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes Ant, Maven and Other Build Tools and the fly likes Problem with using Ants conditions and dependencies Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Problem with using Ants conditions and dependencies" Watch "Problem with using Ants conditions and dependencies" New topic
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 ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 63047
    
  69

You can tell it where to look for things with an external property that you set up approriately for each system.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem with using Ants conditions and dependencies
 
It's not a secret anymore!