This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Ant, Maven and Other Build Tools and the fly likes ant & properties files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "ant & properties files" Watch "ant & properties files" New topic
Author

ant & properties files

Mihai Radulescu
Ranch Hand

Joined: Sep 18, 2003
Posts: 916

Hi !
I use an xml buld file and a properties file and it works realy good.
I use IntellijIdea(or short IDEA),a great tool, here I have ant task bar where I can insert my ant files and with a simple click I run them.
My problem is : the build file needs its properties.It is possible to load(set) the properties without the command line "ant -propertyfile ..."


SCJP, SCJD, SCWCD, OCPJBCD
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Yes. Declare a property in your build file which takes a file as its value. e.g.:

[ July 14, 2004: Message edited by: Paul Sturrock ]

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Mihai Radulescu
Ranch Hand

Joined: Sep 18, 2003
Posts: 916

Ok, it works, thanks !
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: ant & properties files
 
Similar Threads
Best Practices - Properties files
Path Convert tag
Setting PATH env value in Ant 1.4.1
in the javac compilation output i need *.properties file. how?
ant build files and where to put them