u refered to "files" but not directories. Did you
> > mean files and directories?
>
> Filesets select files and not directories. If you want to select
> directories, you use "dirset".
>
> > could you check the examples below and let me know if i got it
On Fri, Dec 18, 2009 at 9:55 AM, Ziggy wrote:
> In all your examples you refered to "files" but not directories. Did you
> mean files and directories?
Filesets select files and not directories. If you want to select
directories, you use "dirset".
> could you check
all subdirs of depth 1 from a subdir pages that is depth 1
> (xx/pages/xx, but not xx/pages/xx/xx )
>
>
> --
> Jürgen Knuplesch
> -Ursprüngliche Nachricht-
> Von: Ziggy [mailto:zigg...@gmail.com]
> Gesendet: Freitag, 18. Dezember 2009 14:00
> An: Ant Users List
> Betreff: Filesets
>
> Hi,
>
> I am trying to understand how the selection of files and directories work.
> Could you explain the difference between the following.
>
> exclude name="**/pages"/>
>
>
>
>
>
/xx,
but not xx/pages/xx/xx )
--
Jürgen Knuplesch
-Ursprüngliche Nachricht-
Von: Ziggy [mailto:zigg...@gmail.com]
Gesendet: Freitag, 18. Dezember 2009 14:00
An: Ant Users List
Betreff: Filesets
Hi,
I am trying to understand how the selection of files and directories work.
Could you explai
Hi,
I am trying to understand how the selection of files and directories work.
Could you explain the difference between the following.
exclude name="**/pages"/>
On 2009-10-12, Alexander Ziller wrote:
> Dir1 contains a set of JARs: a.jar b.jar c.jar d.jar e.jar
> Dir2 contains a subset of the JARs in Dir1: b.jar e.jar
> I want to get the negative intersection (the stuff from Dir1 that's NOT in
> Dir2) and figured
> I tried this with an intersect and then
Hey there
Im desperatly trying to get an intersection of 2 directories but it doesn't
work.
The situation:
--
Dir1 contains a set of JARs: a.jar b.jar c.jar d.jar e.jar
Dir2 contains a subset of the JARs in Dir1: b.jar e.jar
I want to get the negative intersection (the stuff from Dir
Hi ,
I am new to ant to script. I am looking for some help for the below task
Suppose the directory "/d1/user1/abc/" has 50 subdirectories. and these sub
directories in turn have some other directories and some java files.
a) Create a temp directory (/d1/temp)
a) I need to create a directory unde
t;
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
> For additional commands, e-mail: user-h...@ant.apache.org
>
>
&
Take a look at "mapper"
http://ant.apache.org/manual/CoreTypes/mapper.html
manku wrote:
Hi ,
I am new to ant to script. I am looking for some help for the below task
Suppose the directory "/d1/user1/abc/" has 50 subdirectories. and these sub
directories in turn have some other directories an
mnc/a.java
Please advice
Thanks,
--
Muralidhar
--
View this message in context:
http://www.nabble.com/help-with-ant---copy-and-filesets-tp20987842p20987842.html
Sent from the Ant - Users mailing list archive at Nabble.com.
-
To u
gt; An: user@ant.apache.org
> Betreff: ested filesets - how to do it?
>
> I've inherited this Ant build file, and am trying to clean it
> up a bit!
>
> I have this bit of code... (somewhat abridged!)
>
>
>
>
>
>
>
>
>
>
thing like...
only of course you can't do that, 'cos doesn't understand
about directories, only aboout patterns.
I thought maybe I shold nest filesets, but I couldn't do that either, tho'
maybe
my syntax was wrong.
I thought of splitting it to several fileset
hank you,
> that will clean up
> my code a bit) as I was using the examples found
> here:
>
>
http://ant.apache.org/manual/tutorial-tasks-filesets-properties.html
>
> Maybe it's time to update the examples?
>
That's possible, yes. :)
-Matt
> -Original Messag
() and get a string array of the files included. But
the files included are simply the files, with no absolute path.
I didn't know about the iterator at all (thank you, that will clean up
my code a bit) as I was using the examples found here:
http://ant.apache.org/manual/tutorial
; From: Matt Benson [mailto:[EMAIL PROTECTED]
> Sent: Monday, August 04, 2008 3:09 PM
> To: Ant Users List
> Subject: RE: using filesets in a custom task
>
>
> --- EJ Ciramella <[EMAIL PROTECTED]> wrote:
>
> > The next bit is how to get the fully qualified
> pa
Yeah, kinda strange, why would you want a fileset vector of just the
File.getName() instead of File.getAbsolutePath()?
-Original Message-
From: Matt Benson [mailto:[EMAIL PROTECTED]
Sent: Monday, August 04, 2008 3:09 PM
To: Ant Users List
Subject: RE: using filesets in a custom task
he
fileset" you mean basedir? A fileset's basedir, or
"dir", is a File object, so by that time you're
looking at a plain API call on java.io.File.
-Matt
> -Original Message-
> From: EJ Ciramella [mailto:[EMAIL PROTECTED]
>
> Sent: Monday, August 04, 2008 2
: using filesets in a custom task
Wow - as simple as the difference between addFileset(FileSet f) and
addConfiguredFileset(FileSet f).
-Original Message-
From: EJ Ciramella [mailto:[EMAIL PROTECTED]
Sent: Monday, August 04, 2008 11:57 AM
To: Ant Users List
Subject: RE: using filesets in a
Wow - as simple as the difference between addFileset(FileSet f) and
addConfiguredFileset(FileSet f).
-Original Message-
From: EJ Ciramella [mailto:[EMAIL PROTECTED]
Sent: Monday, August 04, 2008 11:57 AM
To: Ant Users List
Subject: RE: using filesets in a custom task
Any other
Any other suggestions from anyone? Why does ant thing I'm not supplying
the "dir" attribute to the flieset?
-Original Message-
From: EJ Ciramella [mailto:[EMAIL PROTECTED]
Sent: Friday, August 01, 2008 3:16 PM
To: Ant Users List
Subject: RE: using filesets in a
No exceptions, just this:
Class m2utils.converters.SnapshotConverter loaded from parent loader
(parentFirst)
+Datatype snapshotconverter m2utils.converters.SnapshotConverter
[snapshotconverter] how many filesets? 1
[snapshotconverter] about to process null
-Original Message-
From
Do you have an error message?
-Original Message-
From: EJ Ciramella [mailto:[EMAIL PROTECTED]
Sent: Friday, August 01, 2008 3:10 PM
To: Ant Users List
Subject: RE: using filesets in a custom task
It's as simple as this so far:
public void addFileset(FileSet fileset) {
fileset
It's as simple as this so far:
public void addFileset(FileSet fileset)
{
filesets.add(fileset);
System.out.println("how many filesets? "+filesets.size());
for(int x = 0; x < filesets.size(); x++)
{
System.out.println("about to process
&
Post your code please
-Original Message-
From: EJ Ciramella [mailto:[EMAIL PROTECTED]
Sent: Friday, August 01, 2008 3:00 PM
To: user@ant.apache.org
Subject: using filesets in a custom task
I'm struggling to write a custom task that utilizes filesets. No matter
what I do, it do
I'm struggling to write a custom task that utilizes filesets. No matter
what I do, it doesn't seem to set/understand the "dir" attribute to the
fileset.
Any suggestions?
of my complete project.
That's why i have to filesets.
// ...
// ...
But i don't want to maintain the includes and excludes two times in my
build file. It there a way the define the includes and excludes only one
time?
Any gr
.
2007/12/7, Ingo Siebert <[EMAIL PROTECTED]>:
> Hi,
>
> i have to create two files: src.zip and binary.jar .
>
> The src.zip contains the source code files and the binary.jar contains
> the class files.
>
> They only contains a _subset_ of my complete project.
&
-Ursprüngliche Nachricht-
> Von: Ingo Siebert [mailto:[EMAIL PROTECTED]
> Gesendet: Freitag, 7. Dezember 2007 16:39
> An: user@ant.apache.org
> Betreff: howto reuse includes and excludes definitions for
> different filesets
>
> Hi,
>
> i have to create two files: src
Hi,
i have to create two files: src.zip and binary.jar .
The src.zip contains the source code files and the binary.jar contains
the class files.
They only contains a _subset_ of my complete project.
That's why i have to filesets.
// ...
// ...
But i
uld the user
> > have
> > > to explicitly include it ?
> > 1) the fileset is not only used in
>
> I was thinking may be Javadoc task can pick up the package-info.java
> while it is processing the input filesets. I am not familiar with
> Javadoc task's cod
ot only used in
I was thinking may be Javadoc task can pick up the package-info.java
while it is processing the input filesets. I am not familiar with
Javadoc task's code, may be this not possible.
> 2) package-info.java is used by other things than javadoc.
Really, Like what other things
ide input to
> javadoc task.
>
> Something like :
>
>
>
>
>
>
>
>
>
>
>
>
> //More filesets
>
>
>
> However to my surprise package-info.java which i placed in packages is
> not included as input to javadoc task. I had to modi
Hello ANT Users,
I have a lot of files from which javadoc needs to be generated.
Not all java files from a package need to be published in javadoc.
To enable this i use a number of s that provide input to
javadoc task.
Something like :
//More filesets
However to my
Oh, is THAT what he meant? :)
well, whatever...
--- Gilbert Rebhan <[EMAIL PROTECTED]> wrote:
> Hi,
>
> caleysoldman wrote:
>
> [ ...]
> > :arguing:
> >
> > regardless, what i did was create a working build
> ...all i really need to
> > understand is how to move the fileset to an
> external
, what i did was create a working build
> ...all i really need to
> understand is how to move the fileset to an external
> file that will then be
> used based on the DBMS property which value is
> passed at the command line.
> thanks in advance for your help ant folx!
>
Hi,
caleysoldman wrote:
[ ...]
:arguing:
regardless, what i did was create a working build ...all i really need to
understand is how to move the fileset to an external file that will then be
used based on the DBMS property which value is passed at the command line.
thanks in advance for your h
{file}
ERROR: Missing Command Line Property Varialbe DBMS: ${DBMS}.
--
View this message in context:
http://www.nabble.com/can-filesets-be-stored-in-a-properties-file--tf3890587.html#a11030923
Sent from th
> --
> View this message in context:
>
http://www.nabble.com/can-filesets-be-stored-in-a-properties-file--tf3890587.html#a11028955
> Sent from the Ant - Users mailing list archive at
> Nabble.com.
>
>
>
-
to move my fileset to the
properties files, but when i do, the refid no longer works.
thanks...
--
View this message in context:
http://www.nabble.com/can-filesets-be-stored-in-a-properties-file--tf3890587.html#a11028955
Sent from the Ant - Users mailing list archive at Nabble.com
Never mind - it's my version of j9 that is the problem - not ant
-Original Message-
From: Tracy Jones
Sent: Friday, February 09, 2007 11:18 AM
To: Ant Users List
Subject: Re: using symlink on filesets
I am trying to create sym links in 1 directory for each file in another
dire
I am trying to create sym links in 1 directory for each file in another
directory. I got this example from a previous posting, but so far am
unable to make it work for me.
The code is below - the problem I am having is that the sym link is
being created in whatever directory I am in when I run th
Thanks Matt!
>
> --- Andre Dantas Rocha <[EMAIL PROTECTED]>
> wrote:
>
> > Hello,
> >
> > Suppose I have this fileset:
> >
> >
> >
> >
> >
> > And I'd like to override it, including one more file
> > (misc_${env}.jar):
> >
> >
> >
> >
> >
> >
> >
> > Is that a way to use the ol
--- Andre Dantas Rocha <[EMAIL PROTECTED]>
wrote:
> Hello,
>
> Suppose I have this fileset:
>
>
>
>
>
> And I'd like to override it, including one more file
> (misc_${env}.jar):
>
>
>
>
>
>
>
> Is that a way to use the old definition and include
> only the new jar? someth
Hello,
Suppose I have this fileset:
And I'd like to override it, including one more file (misc_${env}.jar):
Is that a way to use the old definition and include only the new jar? somethig
like it:
Thanks,
Andre
Hi,
I used maverick-ant to delete some files on a remote-system like this:
If I start the script from my local IDE (Eclipse/Windows-System!)
delete files on a Linux-machine and everything works fine.
If I start the same script from a Unix/Linux-System deleting some files
from an
,
Thomas Hallgren
Antoine Levy-Lambert wrote:
Hello,
Ant 1.7 will have groups of filesets (Resource collections).
Regards,
Antoine
Original-Nachricht
Datum: Tue, 22 Aug 2006 19:46:07 +0200
Von: "Chaudhuri, Hiran" <[EMAIL PROTECTED]>
An: "Ant Users List&quo
Hi Antoine,
This is great news! Is there a place where I can read up on these
Resource Collections?
Thanks,
Thomas Hallgren
Antoine Levy-Lambert wrote:
Hello,
Ant 1.7 will have groups of filesets (Resource collections).
Regards,
Antoine
Original-Nachricht
Datum: Tue, 22
Hello,
Ant 1.7 will have groups of filesets (Resource collections).
Regards,
Antoine
Original-Nachricht
Datum: Tue, 22 Aug 2006 19:46:07 +0200
Von: "Chaudhuri, Hiran" <[EMAIL PROTECTED]>
An: "Ant Users List"
Betreff: RE: Groups of filesets
> Hmmm
: Dienstag, 22. August 2006 17:08
To: Ant Users List
Subject: Re: Groups of filesets
Not sure if arithmetics would help me. I'm dependent on the actual
grouping, i.e. the fact that some files reside under 'src1' and others
under 'src2' and that this grouping is maintained w
src2/org/foo/util/b.class
Now, given my original example, I'd like a jar that contains:
org/foo/misc/a.class
org/foo/util/b.class
I.e., the knowledge that src1 and src2 are 'dir' entries that will
replace the 'basedir' in the jar task as it peruses the filesets, one at
Actually it would be nice to have some set arithmethics implemented.
Means a set plus another set is a new set. You could this way add,
subtract and whatever you like with filesets without having to modify
any of the tasks.
For a beginning, a fileset could support the nested element fileset
I'm lacking a element that would enable a referencing a
group of . I'm currently faced with the challenge of passing
multiple filesets from a Java program to an ant-script as a source for a
jar task. I can't find a good way to do that. Essentially, this is what
I'
On 8/3/06, Dominique Devienne <[EMAIL PROTECTED]> wrote:
> And as far as I know, there is no reasonable iterator or foreach way
> to wrap up a single symlink task within the fileset.
There is. Ant-Contrib's excellent task. But in your case, since
is forking's the OS's ln command anyway, I'd us
And as far as I know, there is no reasonable iterator or foreach way
to wrap up a single symlink task within the fileset.
There is. Ant-Contrib's excellent task. But in your case, since
is forking's the OS's ln command anyway, I'd use , which is an implicit for-loop, works with fileset,
and sh
I'd like to use "symlink" as part of a deploy task on unix machines. I
have a set of files which are most easily specified as a fileset, and
I'd like to create symbolic links in a particular destination
directory to all of the sources. I could just copy them, as
but I'd rea
OK, that's good to know. If I can't find a way around it I may give that a
go.
Thanks,
Dhruva
On 6/15/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Not all tasks can work with nested paths in prior to Ant 1.7.
With 1.7 we are introducing "ResourceCollections" which is a supertype a
,
Not all tasks can work with nested paths in prior to Ant 1.7.
With 1.7 we are introducing "ResourceCollections" which is a supertype a
, and others. I'm not sure if supports that, but
most of the tasks are converted ...
Yep - inherits inherits . And supports RCs [1].
So your life will be
Dhruva:
Have you considered using path with id...like:
...
...
Then just use the refid "MY_PATH"...
Dhruva Reddy wrote:
Hello,
We have a target that builds an EAR using the ear task. Fed into the
task
is a rather large number of fileset's. What I would like to do is use
the
sa
Hello,
We have a target that builds an EAR using the ear task. Fed into the task
is a rather large number of fileset's. What I would like to do is use the
same fileset's for another task (I want to copy those elements into the app
server without building the EAR).
Is there any way to aggregate
ant -f executor.xml xml.beautify -Dxml.include=**\test.xml
Try with forward slash, instead of back slash. --DD
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
I have a task I wrote and I am trying to get it built into my ant setup. I
would like to run it like this...
ant -f executor.xml xml.beautify -Dxml.include=**\test.xml
Ant should resolve **\test.xml to a full path.
My target looks like this:
rs List
Subject: RE: Javac: multiple source roots & filesets
Two possibilities that spring to mind:
1. the files you require from either source tree to a single
working directory structure, then from there.
2. the generated files you don't want before invoking .
As a general ru
pends on the complexity of your
real project and the flexibility of your build process.
Keith
-Original Message-
From: Wildish, Joe STASCO-OTO/72 [mailto:[EMAIL PROTECTED]
Sent: 26 April 2006 13:38
To: Ant Users List
Subject: RE: Javac: multiple source roots & filesets
javac (com
'sourcepath ""', it
forces javac to ONLY be aware of the source files you tell it about (including
for any implicit compiliations that occur as a result of dependencies).
It would be nice to be able to achieve this using specific filesets for each
specified source directory in
Wildish, Joe STASCO-OTO/72 wrote:
java root_a/One.java root_b/Two.java root_b/Three.java
javac handles this OK (ie. it is not privy to root_a/Two.java, so does not attempt to compile it).
Like I warned, this is not always the case
java.exe will pull in any java files it sees fit to compile
Hi Steve,
Thanks for the suggestion; however, the "src" attribute is a path-like
structure, and as such you cannot use include or exclude elements (hence trying
to use the filesets in the first example).
It would seem that the javac task is taking directories specified by the "
.. and it would work fine. However, I can't seem to replicate this in an ANT
target. As filesets are relative to the specificed directory, I cannot find a
way to exclude certain files from one source root, as effectively I am working
within the same namespace.
What I really wan
't seem to replicate this in an ANT
target. As filesets are relative to the specificed directory, I cannot find a
way to exclude certain files from one source root, as effectively I am working
within the same namespace.
What I really wan
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, April 19, 2006 1:36 AM
> To: user@ant.apache.org
> Subject: AW: Printing out patternsets and/or filesets
>
>
>
> patternset: ${ps.value}"/>
>
>
> Jan
patternset: ${ps.value}"/>
Jan
>With pathconvert you can convert the fileset to a property
>which will list the files in the fileset.
>> I need to know if there is a way to print out a patternset
>or fileset
>> for debugging. Likesay if I've specified a patternset and
>given it an
-
Hello Carlton,
With pathconvert you can convert the fileset to a property which will
list the files in the fileset.
Please read the manual.
For the patternset nothing obvious.
Regards,
Antoine
Just to rule it out, I tried the obvious which of course didn't work.
Brown, Carlton wrote:
Hi,
I need to know if there is a way to print out a patternset or fileset
for debugging. Likesay if I've specified a patternset and given it an
ID:
Or for a fileset, similar situation.
How do I go about displaying the list of what the f
Bejoy this is what I could try but its difficult to omit certain dir's if
the same you apply on file it works and on dir'
manual?
Jan
>-Ursprüngliche Nachricht-
>Von: bejoy [mailto:[EMAIL PROTECTED]
>Gesendet: Donnerstag, 16. Februar 2006 14:22
>An: user@ant.apache.org
>Betreff: Filesets
>
>
>Hi,
>
>
>Please give some examples on fileset and nested fileset.
>
>Than
Hello,
You can have a look at
http://ant.apache.org/manual/CoreTypes/fileset.html
Rgds,
Patrick M.
On 2/16/06, bejoy <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
>
> Please give some examples on fileset and nested fileset.
>
> Thanks & Regards,
> Bejoy
>
>
>
> This e-mail and any files transmitted with
Hi,
Please give some examples on fileset and nested fileset.
Thanks & Regards,
Bejoy
This e-mail and any files transmitted with it are for the sole use of the
intended recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient or received i
Then you havent found the manual?
Developing with Ant | Tasks using Properties, Filesets & Paths
Jan
>-Ursprüngliche Nachricht-
>Von: David A. Bartmess [mailto:[EMAIL PROTECTED]
>Gesendet: Sonntag, 31. Juli 2005 23:05
>An: user@ant.apache.org
>Betreff: Sample of
I'm confused by the custom tasks, and how to get the filesets from
nested fileset elements.
Do these get created automatically, and all I have to provide is a
public void add(FileSet fset) method in the Task-derived custom task?
Or are there special methods I need to call from the inhe
disjunction with
filesets?
Hi Craeg:
I guess nobody from the dev side has answered this
so as not to steal my thunder. Ant CVS HEAD contains
initial support for a ResourceCollection interface
which will be implemented by FileSet etc.
Additionally set logic such as you describe will be
llo:
>
> Here is a fun question: does anyone have any ideas
> as to how one might
> go about producing a fileset that represents the
> INTERSECTION of two
> filesets?
>
> That is, it will include only those files that are
> in both filesets A
> and B.
>
> Anothe
Hello:
Here is a fun question: does anyone have any ideas as to how one might
go about producing a fileset that represents the INTERSECTION of two
filesets?
That is, it will include only those files that are in both filesets A
and B.
Another question: how might one produce a fileset that
--- Rick Mann <[EMAIL PROTECTED]> wrote:
> I really need a way to specify an arbitrary set of
> files under a
> single name, and then use that set in both class
> paths and copy
> operations.
>
> I think nested filesets, et al. would work, along
> with support
On Jun 13, 2005, at 02:34, <[EMAIL PROTECTED]>
<[EMAIL PROTECTED]> wrote:
A fileset has a common base directory. There are no nested filesets.
Have you had a look at s?
There are some tasks which dont support s, and is one
of them [1] - oh, there
was some work ... maybe a n
A fileset has a common base directory. There are no nested filesets.
Have you had a look at s?
There are some tasks which dont support s, and is one of them [1]
- oh, there
was some work ... maybe a nightly build would work :-)
Alternatively you could iterate over filesets
Hi. I'm building a handful of Struts webapps, and would like to do
this in my build scripts:
I want to specify a collection of .jar files from several different
directories, and I want to refer to the entire collection with a
single id. Now, I can make a fileset or filelist for a directory,
from directory ${blah} and its subdirectories
> 2.) Include exactly the files karl.txt and paul.txt from directory ${test}
> 3.) All files from directory ${myproj} (but NOT its subdirectories) except the file
> log.dat
>
> Can I achieve this with ONE jar target with three fileset
files from directory ${myproj} (but NOT its subdirectories) except the file
log.dat
Can I achieve this with ONE jar target with three filesets?
The following doesn't work. The first part is collected successfully but there
are differences with the latter two. The files from the second part ar
t'
Subject: Building FileSets...
Is there a clever way to build up a fileset that contains
just a list of
files that have changed? I'm using iajc (Aspectj) to do some
compiling and
it seems to do the entire tree each time (even if one file
has changed).
With their incremental setting se
Use the task. With it you can invoke your
executable once per file, once with all files, or a
few at a time.
-Matt
--- [EMAIL PROTECTED] wrote:
> >
> >I have a fileset with the files I
> want to pass to another
> > (perl) script. How do I send those as
> command line argument
"Stefan Schulz" <[EMAIL PROTECTED]> writes:
> The property dependency.files corresponds to, e.g.:
> "/any/path/file.class:/an/other/thing.class:/and/so/on.class".
I oftenly use:
(property)
files=file1,file2,file3
and then
HTH,
andreas
--
91 matches
Mail list logo