Execution order of targets:
1. execute dependend targets
2. check if/unless
3. maybe (see #2) execute the target body
This is required for a scenario where a dependend target does the checks for
the targets.
But the simplest think is
for easier call you can add a additional
Jan
> -
I would externalize (huge amounts of) macrodefs in their own files.
a) into a buildfile and re that
b) into an antlib.xml and use xmlns declarations.
my.jar!/org/my/antlib.xml
build.xml (having my.jar on the classpath)
Additional note:
Lets say you have a larger hierarchy "A imports
I do the same thing... However, I am partial to macrodef's... I do
have a build script that may use those macrodef's... However, my
macrodef's are sorta like functions from which I can then
script/glue/call from my "scripts"
Z W wrote:
Hi
I'm using Ant as a scripting tool much like a sh
Why don't you try this...
The point is, the depends attribute acts as your grouping ;)
Cyril Sagan wrote:
Our build script needs to run an arbitrary *group* of targets based on
a single property. Can you help me find a clean way to do this?
Here's an "almost solution" which illustrates what
Hi
I use ant as a process control tool but have tried to keep my targets
close to the ant model. I do use some looping over a set of files but
only where it is truly needed. I try hard to use the depends and
if/unless constructs to control the execution of targets. I have avoided
using antcal
You can use "if" from ant-contrib:
http://ant-contrib.sourceforge.net/tasks/tasks/if.html
All possible "if" conditions are here:
http://ant.apache.org/manual/CoreTasks/conditions.html
Hope it helps,
Dmitri.
Cyril Sagan wrote:
Our build script needs to run an arbitrary *group* of ta
Hi
I'm using Ant as a scripting tool much like a shell script to do various
tasks of a project, not for a build purpose.
I like to get opinions from the gurus here about this.
I have various tasks written in a single build file. However, this file has
become very large.
I like to break this file
hello guys
i am in hell with this
i work with xdoclet and pls see this situtation
[CODE]
/**
* @hibernate.property column="precioUnitarioVenta" [b]length="6"[/b]
not-null="true"
*/
public [b]BigDecimal[/b] getPrecioUnitarioVenta() {
return pre
Our build script needs to run an arbitrary *group* of targets based on
a single property. Can you help me find a clean way to do this?
Here's an "almost solution" which illustrates what I'd like to
accomplish:
Todd Patrick wrote:
Steve:
Thank you for the explanation ( and answering my other WAR task email ).
To my understanding, could I move the web.xml out of the WEB-INF
directory and instead of using:
I should use:
Both will work. the first should be smart enough to recognise its the
same
Steve:
Thank you for the explanation ( and answering my other WAR task email ).
To my understanding, could I move the web.xml out of the WEB-INF
directory and instead of using:
I should use:
Thanks again,
--Todd
-Original Message-
From: Steve Loughran [mailto:[EMAIL PROTECTED]
S
Todd Patrick wrote:
Warning: selected war files include a WEB-INF/web.xml which will be
ignored (please use webxml attribute to war task)
I've googled this warning without a lot of results.
I have currently have the web.xml in the WEB-INF directory, so is this
error thrown because I'm trying to
Todd Patrick wrote:
Please forget me for this question, I've never used the war task before
and I'm looking at example at:
http://www.java-tips.org/other-api-tips/ant/how-to-use-war-task.html
I have a directory labeled "resources" and I have ten .gif files.
To include the .gif files, I must u
Hello, I just wanted to thank this list and Peter, David, Krzysztof
and Chuck in particular for responding to my question. I am very
impressed with the quick response, helpful information and respectful
tone.
Best Regards,
Hudson
Surely that is what a jars manifest is for?
- Original Message -
From: Wayne Cannon
To: Ant Users List
Sent: Thursday, December 13, 2007 1:11 AM
Subject: Re: Setting final strings at compile time
Eric,
We create an almost-Java source file, e.g., Version.txt, containing
15 matches
Mail list logo