ANT Section Index | Page 2
I want to read in properties from a file according to a pattern and then use those properties to search throug another file and echo out those properties that do not match. Any ideas???
Finding properties in a file
I want to read in properties from a file according to a pattern and then use those properties to search throug another file and echo out those properties that do not m...more
Java Code For Getting A List of Files From A FileSet
Java Code For Getting A List of Files From A FileSet
I am writing a custom task, and rather than create a new way (tag) to pass in file names for the task, I want to use the fileset tag. Can anyone...more
How do I get system time in Ant?
<tstamp/> - check the docs for more detail.
LD_LIBRARY_PATH My java program needs LD_LIBRARY_PATH to be set in the environment. If I use ant to invoke it with fork=yes, how do I make LD_LIBRARY_PATH available to the VM started by ant?
LD_LIBRARY_PATH
My java program needs LD_LIBRARY_PATH to be set in the environment. If I use ant to invoke it with fork=yes, how do I make LD_LIBRARY_PATH available to the VM started by ant?
exec...more
How to include C/C++ code compile/link in Ant build?
Besides <exec> to Make or other native programs, there is now a very elegant task and set of datatypes surrounding the <cc> task that are designed to allow Ant to call the compilers di...more
Is there a way to find out the name of the target specified on the command-line?
Is there a way to find out the name of the target specified on the command-line?
If I have the following:
set JAVA_HOME=C:jdk1.3.1
set ANT_HOME=C:ant
set PATH=%ANT_HOME%bin;%PATH%
call %ANT_HOME...more
Ant - CVS task - Alternative to 'passfile' attribute?
Ant - CVS task - Alternative to 'passfile' attribute?
I want people to enter their CVS password on the command line, when they run Ant. Something akin to:
ant -Dcvspass=mango69
The documentation...more
How I can pass a string from my ant task to a build.xml?
Using Ant properties:
ant -Dsome.prop=value
And in your build.xml, use ${some.prop} to get the value, for example:
<echo message="some.prop = ${some.prop}"/>
more
Is there a way to turn off the display of target names which aren't doing anything?
ant -logger org.apache.tools.ant.NoBannerLogger
How can i execute commands on a remote machine using ant, which include expanded property values using the <telnet> task?
How can i execute commands on a remote machine using ant, which include expanded property values using the <telnet> task?
<read>$</read>
<write>cd ${unix_release_dir}/${uni...more
Property inheritance
Property inheritance ?!!
I have several build files.
a. product/a.xml
property: src.dir = product/src/java
property: build.dir = product/build/java
internally calls product/src/java/b.x...more
How to show upload status. I am uploading files. How can I show the user a status window, informing him about the time remaining to upload ?
With <ftp>, I assume. That capability does not exist with the <ftp> task. You can, however, set verbose="true" which will output each file as it is transferred.
How to upload a file to a webserver? Does ant support uploading files to a webserver ?
How to upload a file to a webserver ?
Does ant support uploading files to a webserver ?
How doI copy a file with no build failure if the file doesn't exists?
Here is what works without failing the build:
<copy todir="copy">
<fileset dir="." includes="doesnotexist.txt"/>
</copy>
How do I remote deploy to Tomcat using the <get> task?
Authenticated URL support was added to the <get> task after the release of version 1.4.1. Try using a nightly build of Ant.