FAQCluster.com
FAQCluster.com
HOME
ANT
Ant FAQ
12 Questions & Answers.
ø 0 / 0 Votes
You found something helpful?
Please help our research by answering a
short
survey
.
Is it possible to define a property which takes only X,Y, Z values.. and nothing more.. If any other thing is set for that property.. ant should give the error. Sort of Enums in Java.. so that any wrong setting would result in compiler error.
I am currently invoking mvn from ant. However, when there is a BUILD FAILURE inside mvn, the ant script is still showing that the build is successful. How could I determine what the error code is from mvn and read it into ant? Any ideas?
I am using my self written Ant tasks and want to set a Java system property for this task. Is there a way to pass on Java system properties from the ANT to the task? I guess I have to add a certain attribute to my task an do it there...
May I know if it is possible to retrieve the IP address of the running server in Ant?
I need more than ant -v -logfile mylogfile.txt What I need is the output from javac itself, but via ant (later via ant, via eclipse) how do I get ant to give me the java compiler's output in a file?
I am callin one ant2 script from another ant1 script,while calling ant2 i don want to run all the targets.but when i run the ant2 alone it should run all the targets.
Is there a way to do a conditionally import in ant? For example: Or if not using , can this be done with XML Entities?
My ant script takes a value for a property at runtime(-Denv=xxx), if the argument is not passed i want the value to be set as a default arbitary value. How to accomplish this?
I am just starting to use ant, I just would like to build an eclipse project using ant tool. Is there any idea how to do it without using an Eclipse IDE itself.
Imagine that I have a property with the value "100", then I want to add 50 to it and get the result as 150. How can I do this in Ant?
« Back
1
2
Next »