The simplest thing would be not putting your validation rules in a target.
Having them directly under the tag in common.xml would make them to
top-level-tasks, which means that they are executed when running the build
(before any target and also when doing an "ant -p").
Alternative: place an
Hi everyone,
Here is the scenario that we are trying to implement using ANT.
1) We have multiple projects, each having individual build.xml
2) The common targets are defined in common.xml in commons folder at the
same level of other projects.
3) common.xml contains validateproperties target which
There is no way to set a system property for the running Ant inside the
buildfile.
(moment ... maybe
Hi all,
As some of you probably know already, the HK OSSummit has been canceled
due to lack of attendees.
But as I've already prepared my presentation (which will now not be
aired publicly), feel free to browse/peruse yourselves without my witty
voiceover
http://people.apache.org/~kevj/oss
What's this line?:
> Using Ant151patch.jar
That looks like the wrong jar file. That's probably for Ant 1.51. What
is this jarfile anyway? I can't find it on Google.
It is interesting that the build failed on the second run. In the
first run, the property isn't set (because everything isn't
up t
If you invoke multiple targets on the command line, each target will
execute, and dependencies will execute independently. There is no way
of Ant to know if one of the targets you put on the command line might
affect a later target. For example:
$ ant first clean_first second
If Ant kept track of
Gating the 2nd target depending on the outputproperty of the first???
http://ant.apache.org/manual/CoreTasks/java.html
M--
- Original Message -
From: "Rick Genter" <[EMAIL PROTECTED]>
To: "Ant Users List"
Sent: Monday, November 12, 2007 2:16 PM
Subject: RE: Question about "depends" attri
David
Thanks a lot for this.
I tried it. It was good first time. When i ran it again, it gave the same
error.
(i changed a little on the echo msg)
Sorry if it is late to mention here, we use a customized runant.py to run
the build.xml; it does have some cutomized things inside to load different
Thanks Guys,
Actually i was trying to avoid that conditional looping and trying to set up
new variables just to control the execution of the targets.
Moreover, I think the "unless" should accept the target name to avoid
setting an explicit property eg:
Anyways, thanks for all your help and tim
Jan
Thanks a lot for the reply.
And, fyi, couple days back something was wrong in my email system and i
started another thread for this in the title of "Ant 1.5 to 1.7 problem"
(sorry for this). David Weintraub is trying to help me over there. I will
follow this thread also unless you would like
Perhaps the ant code could create/touch a file at the conclusion of A and
test if the file is created at the beginning of A. If the file does not
exist at the start of A, then invoke to actions of A. If the file exists at
the start of A then do not invoke the actions of A.
A should be refactored
> From: broken connection [mailto:[EMAIL PROTECTED]
> Sent: Monday, November 12, 2007 11:11 AM
> To: Ant Users List
> Subject: Re: Question about "depends" attribute in the target element
>
> Yeah,I apologize for thatbut how can i resolve this guys???
>
> I want targetA and targetB to be ind
Set a property after you execute targetA - and then use an unless attribute
...
...
broken connection wrote:
Yeah,I apologize for thatbut how can i resolve this guys???
I want targetA and targetB to be indepently called under this scenario:
targetA can be called independently...
t
Yeah,I apologize for thatbut how can i resolve this guys???
I want targetA and targetB to be indepently called under this scenario:
targetA can be called independently...
targetB always depends on targetA and should make sure targetA is ran before
it runs
Any advice???
Thanks
On 11/12/
> From: broken connection [mailto:[EMAIL PROTECTED]
> Sent: Monday, November 12, 2007 11:07 AM
> To: Ant Users List
> Subject: Re: Question about "depends" attribute in the target element
>
> Thanks Rick,
> But like Glenn specified if you add an extra target then
> everything works
> fine, pleas
Thanks Rick,
But like Glenn specified if you add an extra target then everything works
fine, please see below:
build.xml:
Output:
Total time: 0 seconds
C:\Documents and Settings\hjhutty\Desktop\test>ant first second
Buildfile: build.xml
> From: broken connection [mailto:[EMAIL PROTECTED]
> Sent: Monday, November 12, 2007 11:01 AM
> To: Ant Users List
> Subject: Re: Question about "depends" attribute in the target element
>
> Thanks Glenn,
> Here's a small test script that i wrote that simulates my
> environment and
> proves my
Thanks Glenn,
Here's a small test script that i wrote that simulates my environment and
proves my findings:
build.xml:
Output:
C:\Documents and Settings\mick\Desktop\test>ant first second
Buildfile: build.xml
first:
[echo] target First
first:
[
Is it possible to set the javax.net.ssl.trustStore system property inside
a build.xml file?
I am using the standard Ant "get" task and the Apache Axis axis-wsdl2java task
with https URLs. I know it can be set in the java task but is there anyway to
set it for these tasks or globally for the whole
I have used the ant 'war' element and believe there is an equivallent
'ear' element too - it might help you? I then use the fileset with an
include (see below)...
Could you post the complete Ant script?
How are you invoking the script and the target(s)?
I noticed if you invoke ant with both targetA and targetB, then targetA
would be called multiple times.
However if you invoke ant with targetC (below) then targetA is invoked once.
in targetC
--glenn
O
Hi Friends,
As far as I knew, if we have "depends" in the target then that target
would run only once. But my target is running multiple times.
For example, I have this:
The execution results as:
targetA
targetA
targetB
But I thought since "targetA" has already been executed it should show
I have a dirset that represents the contents of a j2ee application:
EAR
+ -- WAR
This is an application that only contains a WAR, but there may be other
components such as utility JARs, MDBs, etc.
The EAR's build.xml has the following dirset:
I want to use this dirset to package the war
I just wrote the following test build.xml:
As you can see, my "check.db.schema.up.to.date"
24 matches
Mail list logo