On Thu, 25 Jan 2007, Mikael Sitruk <[EMAIL PROTECTED]> wrote:
> 1. From my understanding the selector are part of a fileset,
Not necessarily, in my answer I used it inside a resource
collection (and I used a Resourceselector, not a FileSelector).
Stefan
At 04:54 AM 1/24/2007, you wrote:
>Jacob Kjome wrote:
>>
>> I see your point. Even if the functionality was something you would
>> support, I'm not sure there's anyone willing to put in the time to
>> figure it out. But you never know. Like I said before, it could be an
>> option. So, if someo
Thanks for your answers.
Regarding the javaresource I mentioned, I was referring to this:
http://ant.apache.org/manual/CoreTypes/resources.html#javaresource
If I'm changing the classpath to a path (e.g. a list of directory) and adding
support for patternset instead of a single file, this is th
1. From my understanding the selector are part of a fileset, but in a fileset
the dir attribute is mandatory and point only to one directory.
So is really a selector the appropriate choice?
Right. But you can always use a common parent dir, and later use
filename mappers. This does assume that
Regarding the selector suggestion, I have some additional question
1. From my understanding the selector are part of a fileset, but in a fileset
the dir attribute is mandatory and point only to one directory.
So is really a selector the appropriate choice?
2. From the code the selector create a l
Dominique,
thanks for the reply. i'll heed your advice and stay away from
parallel for now. it just looked like a nice way to process some of
the 'optional' tasks we have. :)
i'll take a look at your other suggestions.
thanks again
andy
On 1/24/07, Dominique Devienne <[EMAIL PROTECTED]> wrote
Thanks, I'll go the ant-contrib route first.
Eric
-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 24, 2007 3:53 PM
To: Ant Users List
Subject: Re: Trying to convert a path reference to use as a fileset for
packaging jars in an ear
I think Ant-1.
I think Ant-1.7 supports copying paths. Otherwise, you can use Ant-Contrib's
Jake
Quoting Eric Wood <[EMAIL PROTECTED]>:
> Folks:
>
> I use
>
> ...
>
> which is composed of various filelists and filesets referencing jars
> used to build my application. I use this refid (projectSpecificLibs)
Oops, depends on this base class ;-)
import java.io.File;
import java.util.StringTokenizer;
import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.types.Parameter;
import org.apache.tools.ant.types.selectors.FileSelector;
import org.apache.tools.ant.types.selectors.BaseExtend
On 1/24/07, Matt Benson <[EMAIL PROTECTED]> wrote:
If we can think of an elegant way to design this, this
question comes up enough that it might be useful to
include such a selector in Ant core.
This is not exactly the same selector, but close enough that the code
should be trivial to adapt to
If we can think of an elegant way to design this, this
question comes up enough that it might be useful to
include such a selector in Ant core.
$0.02,
Matt
--- Stefan Bodewig <[EMAIL PROTECTED]> wrote:
> On Wed, 24 Jan 2007, Mikael Sitruk
> <[EMAIL PROTECTED]> wrote:
>
> > I would like to know
i'm looking at the use of the parallel task to run some optional jobs
during my build. this looks like it would be perfect for doing things
like javadoc, junit, jprobe, etc. however, i would like to be able to
switch my optional tasks so that they are only run if a flag was set.
currently i have
On Wed, 24 Jan 2007, Mikael Sitruk <[EMAIL PROTECTED]> wrote:
> I would like to know if it is possible to define a fileset/filelist
> that will return the first occurrence of the patterned file from a
> list of directories, like the java class loading and path.
>
> For example suppose we have 3 di
hi all,
i'm looking at the use of the parallel task to run some optional jobs
during my build. this looks like it would be perfect for doing things
like javadoc, junit, jprobe, etc. however, i would like to be able to
switch my optional tasks so that they are only run if a flag was set.
currentl
Hi
I would like to know if it is possible to define a fileset/filelist that will
return the first occurrence of the patterned file from a list of directories,
like the java class loading and path.
For example suppose we have 3 directories:
Dir1: a.txt, b.java
Dir2: a.txt,c:jar
Dir3: b.ja
On 1/24/07, Farhdine Boutzakhti <[EMAIL PROTECTED]> wrote:
Ok, thank you. I will test Project.setReference.
As Jan indicate, it's addReference and not setReference, but you got the
idea :-)
Xavier
-Original Message-
From: Xavier Hanin [mailto:[EMAIL PROTECTED]
Sent: Wednesday, Janu
Yeah it works. Thank you very much :)
Farhdine.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 24, 2007 4:55 PM
To: user@ant.apache.org
Subject: AW: Passing data between 2 created tasks
Store your Stack as reference on the project
TaskA {
Ok, thank you. I will test Project.setReference.
-Original Message-
From: Xavier Hanin [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 24, 2007 4:54 PM
To: Ant Users List
Subject: Re: Passing data between 2 created tasks
I use Project.setReference for this purpose and it works pretty
On 1/24/07, Farhdine Boutzakhti <[EMAIL PROTECTED]> wrote:
Hi list,
I am creating 2 different tasks with ANT:
A - One extracting some data in a stack from a cache,
B - One inserting these data in a database.
I want to know if there is a way to pass an object (i.e. a stack) from A
to B?
Store your Stack as reference on the project
TaskA {
public static final String STACKNAME = "someprefix.stack";
Stack stack;
public execute() {
...
getProject().addReference(STACKNAME, stack);
}
}
TaskB {
public execute() {
Stack stack = (Stack)getPro
Hi list,
I am creating 2 different tasks with ANT:
A - One extracting some data in a stack from a cache,
B - One inserting these data in a database.
I want to know if there is a way to pass an object (i.e. a stack) from A
to B?
Thanks !
Farhdine.
Ce message et ses pièces jointes (le
I went to the ANT site and found instructions on adding an FOP task to a build.
(http://xmlgraphics.apache.org/fop/0.93/anttask.html)
My environment is Win2K.
The example given at the site is:
My
Thank you! It works fine...!
Peter Reilly-2 wrote:
>
> You are using the jpackage version of ant.
> I do not know why it does not pick up the regex
> that is part of java since java.1.4.
>
> You use the ant version of ant.
> Download ant 1.7.0, (say to /usr/local/java/ant1.7.0),
> set ANT_HOM
Jacob Kjome wrote:
I see your point. Even if the functionality was something you would
support, I'm not sure there's anyone willing to put in the time to
figure it out. But you never know. Like I said before, it could be an
option. So, if someone actually did the work, and it passed rigor
24 matches
Mail list logo