File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Reply 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 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
 
IntelliJ Java IDE
 
subject: Problem with using Ants conditions and dependencies
 
Threads others viewed
Updated servlets assignment page
Jsp
EJB 3 Entities:clarification
Problem with Ant using JUnit
Maven or Ant?
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com