aspose 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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
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: 9053
    
  12
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How could I set a base dir for target