Re: Relative Paths in Imported Files

2008-08-18 Thread Stefan Bodewig
On Sun, 17 Aug 2008, Francisco Tolmasky <[EMAIL PROTECTED]> wrote:

Before I answer the original question let me state that I have seen a
bug with a combination of ,  and  that
manifested itself as -elements using the wrong basedir - I was
able to work around it by using  instead of .

Unfortunately I ran out of time and some other priorities kicked in
before I could track down the problem (or even fix it).

> Is there any way to make a relative file path from the location of
> the common.xml file itself?

Yes, see the section titled "Resolving files against the imported
file" in 

Stefan

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Get a file list in a property

2008-08-18 Thread Patrik Dufresne
Hi,

I'm working a build script and I need to retrieve a list of file in a
property.
The value of the property I expect should be similar to:
build/src/somefile.h build/src/somefile.cpp build/src/array.h
build/src/array.cpp, etc.

I look into loadRessource, FileSet, PatternSet and I can't figure out how to
do it.

In more detail, what I expect is to provide a fileSet with all the include,
exclude pattern and get the list of file found by fileset to be in a
property.

Thanks for your help.

-- 
Patrik Dufresne


How to get project,target name?

2008-08-18 Thread I am Who i am
Hi All,

is there any way to get the project,target name liek variable at run time of
project.

for eg.

i want to add echo message which says ==Running ${target.name}=

I may be wrong, but i think i rememer seeing some doc, which has all the ant
implemented inter properties, anyone has any idea? where is it?  or how
these type of properties we can get

Thanks in advance


Validation of a path reference

2008-08-18 Thread Eric Wood
I use a path reference to gather jar files from a file system for
packaging in our EARs.  An issue that I have had is that if I screw up
the path, then the file is not gathered for the packaging and this is
not found until the application goes to our test environment.  It there
any utility that I can use that will validate files in my path
reference?
 
Thanks, Eric


Re: How to get project,target name?

2008-08-18 Thread supareno

I am Who i am a écrit :

Hi All,

is there any way to get the project,target name liek variable at run time of
project.

for eg.

i want to add echo message which says ==Running ${target.name}=
  

${target} for the target
${ant.project.name} for the project name
etc...

check out this link:
http://ant.apache.org/manual/using.html#built-in-props

supareno

I may be wrong, but i think i rememer seeing some doc, which has all the ant
implemented inter properties, anyone has any idea? where is it?  or how
these type of properties we can get

Thanks in advance

  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Enforcing "depends" order for 3rd-party targets?

2008-08-18 Thread cowwoc

Hi,

Give:



how do I guarantee that "internal" gets executed before "external" if
"external" is declared by some 3rd-party script I have no control over (that
is, I can't add depends="internal" to "external").

It should be noted that "internal" declares properties that "external" looks
for, so AntCall won't work.

Thanks,
Gili
-- 
View this message in context: 
http://www.nabble.com/Enforcing-%22depends%22-order-for-3rd-party-targets--tp19040027p19040027.html
Sent from the Ant - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Why is everything getting included in my WAR?

2008-08-18 Thread dave.alvarado
Hi,

I want to build my WAR file such that it only includes specific JARS from my 
staging lib directory as opposed to all the ones that are in 
there.  Unfortunately, despite my include and exclude directives, all JARS from 
the directory are getting included.  Can you help me figure out what is wrong 
with the below?  Thanks, - Dave  

  
  
  
...


































-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Enforcing "depends" order for 3rd-party targets?

2008-08-18 Thread Dominique Devienne
On Mon, Aug 18, 2008 at 4:09 PM, cowwoc <[EMAIL PROTECTED]> wrote:
> 
>
> how do I guarantee that "internal" gets executed before "external" if
> "external" is declared by some 3rd-party script I have no control over (that
> is, I can't add depends="internal" to "external").

But default that is what happens. In theory, dependencies of a target
could be executed in parallel or a different order (depending on the
dependencies' dependencies that is), but in practice Ant's
DefaultExecutor makes sure internal is executed before external*. This
behavior could be overridden by using another executor (search for
executor in http://ant.apache.org/manual/running.html and the mailing
list too). --DD

* well there could be other higher-level targets which could
depends="external, one", taking precedence over one's
depends="internal, external". Ant does a topological sort of the
top-level target(s) called, so a non-top-level target could have its
specified dependency order changed by one "higher-up".

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Enforcing "depends" order for 3rd-party targets?

2008-08-18 Thread cowwoc

Right, but how would I make this work even for a future theoretical parallel
executor? It is my understanding that the Ant documentation does not
guarantee the execution order and relying upon the existing behavior is
discouraged, which is why I ask.

Gili


Dominique Devienne-2 wrote:
> 
> On Mon, Aug 18, 2008 at 4:09 PM, cowwoc <[EMAIL PROTECTED]> wrote:
>> 
>>
>> how do I guarantee that "internal" gets executed before "external" if
>> "external" is declared by some 3rd-party script I have no control over
>> (that
>> is, I can't add depends="internal" to "external").
> 
> But default that is what happens. In theory, dependencies of a target
> could be executed in parallel or a different order (depending on the
> dependencies' dependencies that is), but in practice Ant's
> DefaultExecutor makes sure internal is executed before external*. This
> behavior could be overridden by using another executor (search for
> executor in http://ant.apache.org/manual/running.html and the mailing
> list too). --DD
> 
> * well there could be other higher-level targets which could
> depends="external, one", taking precedence over one's
> depends="internal, external". Ant does a topological sort of the
> top-level target(s) called, so a non-top-level target could have its
> specified dependency order changed by one "higher-up".
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Enforcing-%22depends%22-order-for-3rd-party-targets--tp19040027p19040668.html
Sent from the Ant - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Enforcing "depends" order for 3rd-party targets?

2008-08-18 Thread Dominique Devienne
On Mon, Aug 18, 2008 at 4:48 PM, cowwoc <[EMAIL PROTECTED]> wrote:
> Right, but how would I make this work even for a future theoretical parallel
> executor? It is my understanding that the Ant documentation does not
> guarantee the execution order and relying upon the existing behavior is
> discouraged, which is why I ask.

Nah, most builds would break down if this default behavior was
changed. The default executor will never change in this line of Ant;
The Ant community cares about BC too much. Maybe a future hypothetical
Ant2 would, but I doubt it, as the "velocity" of Ant's development has
slowed down a lot in the past few months. --DD

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Enforcing "depends" order for 3rd-party targets?

2008-08-18 Thread Dominique Devienne
On Mon, Aug 18, 2008 at 4:48 PM, cowwoc <[EMAIL PROTECTED]> wrote:
> Right, but how would I make this work even for a future theoretical parallel
> executor?

"before" and "after" targets have been discussed in the past few
weeks, but nothing concrete has been done yet. Search for a recent
long thread, and you shall find the discussion ;-)  You can't
"enforce" your "before" requirement right now (beside relying on the
current behavior). --DD

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: Enforcing "depends" order for 3rd-party targets?

2008-08-18 Thread Knuplesch, Juergen
To retrieve changed properties you can use antcallback or antfetch from 
antcontrib.

http://ant-contrib.sourceforge.net/tasks/tasks/index.html 


-- 
Jürgen Knupleschwww.icongmbh.de
icon Systemhaus GmbHTel. +49 711 806098-275
Sophienstraße 40
D-70178 Stuttgart   Fax. +49 711 806098-299

Geschäftsführer: Uwe Seltmann
HRB Stuttgart 17655
USt-IdNr.: DE 811944121 
-Ursprüngliche Nachricht-
Von: cowwoc [mailto:[EMAIL PROTECTED] 
Gesendet: Montag, 18. August 2008 23:09
An: user@ant.apache.org
Betreff: Enforcing "depends" order for 3rd-party targets?


Hi,

Give:



how do I guarantee that "internal" gets executed before "external" if 
"external" is declared by some 3rd-party script I have no control over (that 
is, I can't add depends="internal" to "external").

It should be noted that "internal" declares properties that "external" looks 
for, so AntCall won't work.

Thanks,
Gili
--
View this message in context: 
http://www.nabble.com/Enforcing-%22depends%22-order-for-3rd-party-targets--tp19040027p19040027.html
Sent from the Ant - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]