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 How could I set a base dir for target 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 "How could I set a base dir for target" Watch "How could I set a base dir for target" New topic
Author

How could I set a base dir for target

Sergei Valid
Greenhorn

Joined: Mar 31, 2004
Posts: 1
I'm working with Ant and one question have been faced.
It's seems clear to set a base directory to project you need to use
'basedir' property in 'project' tag.
But how could I set the basedir only for 'target'?
I need to write build.xml with a target to launch application
from any directory. That application loads a file with a relative path.
Thus, I should set the base directory to root of that application.
Thank you.
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9001
How about
project name="foo" default="all" basedir="."


JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
 
 
subject: How could I set a base dir for target
 
Threads others viewed
"Could not find main class" problem in jar file
Maven Home
unable to create War using Ant
How to Jar?
To set destination path
developer file tools