jGuru
Register Email     Password Forgot your
password?
HOME FAQS FORUMS DOWNLOADS ARTICLES PEERSCOPE LEARN

  Search   jGuru Search Help

View:
Ant FAQ Home Page

FAQ Manager is guru Ant FAQ Manager PREMIUM.

Ant is a Java-based build tool. Erik Hatcher, your FAQ manager, has just completed a book on Ant. Click on the image to the right!

Antoine Levy-Lambert (antoine at antbuild.com) Antoine is an IT consultant specialized in financial IT and in application management/configuration management. He has experience with conceiving, building and managing distributed applications. His consultancy is called antbuild.

What's New

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 ...
Tools:Build:Ant
Eugene Kuleshov PREMIUM, Oct 17, 2003
You should turn it on like this: <javac srcdir="src" destdir="target/classes" debug="true" debuglevel="lines, vars, and source"> ...
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...
Tools:Build:Ant
Jan Matèrne PREMIUM, Oct 1, 2003
<echo file="..." append="true"/>, it´s described in the manual.
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 the...
Tools:Build:Ant
Eugene Kuleshov PREMIUM, Jul 4, 2003
You can pass such parameters by using ant's properties or system properties. They all will be available for your unit tests through System.getProperty...

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...
Tools:Build:Ant
Jan Matèrne PREMIUM, Jul 4, 2003
AntContrib´s <propertycopy> should do that job.
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 delete...
Tools:Build:Ant
Eugene Kuleshov PREMIUM, Jul 4, 2003
This pattern is the one of default excludes. You should specify defaultexcludes="no" in your fileset in order to use this pattern.
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 applications to...
Tools:AppServer:WebServer:Tomcat:Installation, Tools:AppServer:WebServer:Tomcat:Configuration, Tools:Build:Ant
Stefan Koch, Jun 23, 2003
A glance at the source code of the install task of tomcat tells me that it cannot replace tokens from a template configuration file. You should use...
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, could...
Tools:Build:Ant
Erik Hatcher PREMIUM, May 27, 2003
XDoclet is what you're looking for. As for WAS5 support - you'll have to experiment to see how complete it is, but it does have support for WebSphere...
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...
Tools:Build:Ant
Jan Matèrne PREMIUM, Apr 1, 2003
Use <propertycopy> of Ant-Contrib: <?xml version="1.0" encoding="ISO-8859-1"?> <project default="displayprop"> <!--...
Idiom for setting a property from an environment variable, or default? I want to take the value of a property from an environment variable. First, I was hardwiring the property with this: <property...
Tools:Build:Ant
Erik Hatcher PREMIUM, Mar 15, 2003
Remember, properties are immutable: <property environment="env"/> <property name="env.FOO_HOME" location="c:/foo"/> <property...
How do I describe a make-like file based dependency? How do I write ant rules that corresponds to a Mekefile rule like: foo.txt: bar.txt dosomething bar.txt foo.txt ? Note there is no...
Tools:Build:Ant
Erik Hatcher PREMIUM, Mar 15, 2003
The <apply> task is used for this type of construct in Ant.
Pass command line argument to build file Hi All, Here is what I intend to do: I need to set a property value which is passed by a command line argument. As in java we do, java myclass...
Tools:Build:Ant
Erik Hatcher PREMIUM, Mar 6, 2003
ant -Darg1=value
Reading multiple property files using wildcards (*.properties) Hi Gurus can anyone give me a hint on how i can import all property files in a specific directory using wildcards ? Example: A directory...
Tools:Build:Ant
Jan Matèrne PREMIUM, Jan 10, 2003
I don´t think that you can do this with the normal distribution. If you use AntContrib (see at SourceForge) you can do it &lt;target name="...
How to give a value with spaces to a property from Command prompt? how can i pass value to a property from comand prompt. Thev value has spaces, eg ant -Dcmd=update -d
Tools:Build:Ant
Jan Matèrne PREMIUM, Jan 10, 2003
ant -Dcmd="update -d"
Is there a way i can get substring value of property/param value.. Is there a way i can get substring value of property/param value...I am using foreach custom task to get a list of files..but it is returning...
Tools:Build:Ant
Erik Hatcher PREMIUM, Oct 29, 2002
Use the <basename> task to set a new property using the base name of another property representing a file name.
Dry run for ant. Is there a way to tell ant not to actually build the targets and just show how it will? Something similar to gmake -n? thanks, Kedar
Tools:Build:Ant
Erik Hatcher PREMIUM, Oct 6, 2002
Nope, sorry. Without actually executing things like <property> and <available> there would be no way to get an accurate picture of the path...
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 match....
Tools:Build:Ant
Erik Hatcher PREMIUM, Sep 19, 2002
Have a look at Ant's <loadproperties> task, combined with a nested <filterchain>. That will do exactly what you desire.
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 post...
Tools:Build:Ant
Erik Hatcher PREMIUM, Sep 4, 2002
Directly from Java Development with Ant: 19.5 OPERATING ON A FILESET Ant's datatypes make writing tasks that deal with many of the typical Java bu...
How do I get system time in Ant?
Tools:Build:Ant
G M PREMIUM, Aug 10, 2002
<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? exec...
Tools:Build:Ant
Erik Hatcher PREMIUM, Jul 30, 2002
Use a nested <env> element to your <java fork="true" > Note that it only works with fork="true" for obvious reasons. The env elements...
How to include C/C++ code compile/link in Ant build?
Tools:Build:Ant
Erik Hatcher PREMIUM, Jun 28, 2002
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...
« previous beginning next »


Ask A Question



Related Links

Ant Forum

Ant Homepage

Sun: Best Practices

Hatcher Ant Book

Hatcher Ant Book

Automate your build process using Java and Ant

Wish List
Features
About jGuru
Contact Us

 




JupiterOnlineMedia

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

Solutions
Whitepapers and eBooks
IBM Whitepaper: Innovative Collaboration to Advance Your Business
Internet.com eBook: Real Life Rails
Avaya Article: Call Control XML - Powerful, Standards-Based Call Control
Internet.com eBook: The Pros and Cons of Outsourcing
Go Parallel Article: Scalable Parallelism with Intel(R) Threading Building Blocks
Internet.com eBook: Best Practices for Developing a Web Site
IBM CXO Whitepaper: The 2008 Global CEO Study "The Enterprise of the Future"
Avaya Article: Call Control XML in Action - A CCXML Auto Attendant
Go Parallel Article: James Reinders on the Intel Parallel Studio Beta Program
IBM CXO Whitepaper: Unlocking the DNA of the Adaptable Workforce--The Global Human Capital Study 2008
Adobe Acrobat Connect Pro: Web Conferencing and eLearning Whitepapers
Go Parallel Article: Getting Started with TBB on Windows
HP eBook: Storage Networking , Part 1
MORE WHITEPAPERS, EBOOKS, AND ARTICLES
Webcasts
Go Parallel Video: Intel(R) Threading Building Blocks: A New Method for Threading in C++
HP Video: Is Your Data Center Ready for a Real World Disaster?
Microsoft Partner Portal Video: Microsoft Gold Certified Partners Build Successful Practices
HP On Demand Webcast: Virtualization in Action
Go Parallel Video: Performance and Threading Tools for Game Developers
Rackspace Hosting Center: Customer Videos
Intel vPro Developer Virtual Bootcamp
HP Disaster-Proof Solutions eSeminar
HP On Demand Webcast: Discover the Benefits of Virtualization
MORE WEBCASTS, PODCASTS, AND VIDEOS
Downloads and eKits
Microsoft Download: Silverlight 2 Software Development Kit Beta 2
30-Day Trial: SPAMfighter Exchange Module
Red Gate Download: SQL Toolbelt
Iron Speed Designer Application Generator
Microsoft Download: Silverlight 2 Beta 2 Runtime
MORE DOWNLOADS, EKITS, AND FREE TRIALS
Tutorials and Demos
IBM IT Innovation Article: Green Servers Provide a Competitive Advantage
Microsoft Article: Expression Web 2 for PHP Developers--Simplify Your PHP Applications
Featured Algorithm: Intel Threading Building Blocks - parallel_reduce
MORE TUTORIALS, DEMOS AND STEP-BY-STEP GUIDES