ANT Section Index | Page 4
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
Why doesn't the FTP task work after installing the optional.jar?
Read the docs of the FTP task at http://jakarta.apache.org/ant/manual/OptionalTasks/ftp.html. There is an additional JAR that is required for that task.more
Can Ant increment a build number?
Check out Ant's optional <propertyfile> task. It has numeric incrementing capability (as well as string append and date calculation capabilities). By auto-incrementing a number from a pro...more
How do I use Ant with Visual SlickEdit?
Project Properties
Tools
User1
Command: ant -emacs
Check capture output, Output to process buffer, clear process buffer, save
all files
Then use tools, configuration, key bindings to tie projec...more
How can I automate Ant builds?
Check out these projects:
Alexandria - GUMP is the sub-project of Alexandria that is used to run Jakarta nightly builds.
CruiseControl
AntHill
more
How do I access environment variables within Ant?
Using:
<property environment="env"/>
provides all environment variables as Ant properties prefixed by "env.". For example, CLASSPATH would be accessible in Ant as ${env.CLASSPATH}.
more
Are there any GUI tools for editing or launching Ant build files?
Antidote is a subproject at Jakarta that does this. Here's the README:
README
You'll probably have to CVS to Jakarta to grab it. I'm not sure if there
are binaries available anywhere.
Also,...more
Getting Ant? Where can I get Ant?
Ant is one of the Jakarta projects at Apache. You can get it from http://jakarta.apache.org/ant/index.html.
Jar File Index? How do I instruct the jar file task to create an index for my jar file?
Ant's <jar> task (Ant 1.4.1 and earlier, see comments for update) does not support the creation of INDEX.LIST, but it can be done by executing the jar -i command from Ant after creating the ...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 do I turn a <path> into an Ant property value?
For example:
<path id="tools.class.path">
<pathelement location="${xerces.jar}"/>
<pathelement location="${testlet.jar}"/>
<pathelement location="${junit.jar}"...more