ANT Section Index
How to make ANT keep source line numbers When I build with ANT 1.3, exceptions show source code line numbers.
How to make ANT keep source line numbers
When I build with ANT 1.3, exceptions show source code line numbers. For example:
java.lang.Exception: com.ge.med.gemsit.rs.dise.app_server_not_available
...more
How do I get system time in Ant?
<tstamp/> - check the docs for more detail.
How are special characters escaped in Ant build files?
Use XML character entity references to escape.
character
reference
<
<
>
>
"
"
&
&
...more
How do I get <javac> to list each file that it is compiling?
I have now written my own ant logger class to filter out all verbose messages except for the "File(s) to be compiled" message, which lists them all. Here is my code; if anyone wants to use it, fe...more
How can I delete files depending on their age?
Unfortunately at the moment you can't implement this without resorting to using <exec> to a command-line script or some other roundabout way. It appears that in Ant 1.5 that filesets will a...more
How can I test for JVM versions?
If you're using Ant 1.4.1 or greater, the <condition> task works great. Here's an example that ought to give you what you need:
<project basedir="." default="test">
<target nam...more
How do I get <exec> to work for shell commands on Windows platforms?
To <exec> a shell command on Windows, you must execute the command shell followed by the command you want. For example:
<exec executable="cmd">
<arg line="/c dir"/>
</exec...more
How do I pass command-line arguments to my build?
Use 'ant -Dname=val'. Refer to it within the build file as ${name}.
How to configure ANT such that some specific user messages are directed to file and not console output? I would like to configure some of my echo statements such that they point to a file and write to a file and not to console.
<echo file="..." append="true"/>, it´s described in the manual.
Can junit task take command-line arguments?
Can junit task take command-line arguments?
I am trying to run junit tests with Ant's <junit> task. The problem is that my tests takes in some sample data and sample outout as arguments to ...more
Evaluating properties based on other properties
Evaluating properties based on other properties
Hi all
My question involves a little explanation, so I hope it makes sense...
I have a properties file that defines a comma-delimited list of na...more
Problem with a simple delete task
Problem with a simple delete task
I'm trying to do a very simple Ant equivalent of "make clean" where I delete Emacs temp file (e.g. rm -f *~) but I can't get Ant to find those files. Here is my ...more
Configurating datasources with ant?
Configurating datasources with ant?
Is there a way to configure a datasource using ant that will result in the server.xml updated to give me datasources? I can delete, update and deploy application...more
How to generate IBM WAS 5 binding files with Ant?
How to generate IBM WAS 5 binding files with Ant?
Hello,
Do you know if there are some Ant tasks that generate WAS 5 binding files for an EAR module, WAR module and EJB modules? If there are, coul...more
how to build a property from several other properties?
how to build a property from several other properties?
I have a property file called abs.properties containing the property definition as:
myapp.internet.prod.acl.enforcement=on
Now, I want to d...more