Re: [nant-dev] NAnt CVS Directories

2003-06-05 Thread Ian MacLean
Good call Erv. I'd completely forgotten that foreach supported filesets.

Ian

Foreach already supports filesets. 

Search the nant archives for a couple discussions that exactly solve
this problem (of recursively building) using foreach filesets.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Simon
Steele
Sent: Wednesday, June 04, 2003 4:01 AM
To: [EMAIL PROTECTED]
I would have said that this would be better achieved by using a fileset
and
adding foreach support for filesets:
Fileset subdirs
excludes CVS
includes directories
Foreach item=fileset in=subdirs property=foldername
...
This way we use the standard way of building up lists of
files/directories.
Just me two english pence.

Simon.

-Original Message-
From: Greco Giuseppe [mailto:[EMAIL PROTECTED] 
Sent: 04 June 2003 05:33
To: Nant-Developers (E-Mail)
Subject: [nant-dev] NAnt  CVS Directories

Hi all, 
To recursively build all my subprojects, I've 
written a task like this: 
foreach item=Folder in=. property=foldername 
  nant buildfile=${foldername}/default.build 
target=${project.config} ${target}/ 
/foreach 
That works fine until I don't import my project 
into CVS... After importing a project into CVS, 
each project's subdirectory contains a CVS directory 
which doesn't contain a build file, and the task 
above fails... 
A workaround would be to add failonerror=false to the 
nant task, but in that way it would be difficult to 
notice if a subproject fails (that is really true for 
big projects with lots of subprojects). 
So, I think either we have to add a property to the 
foreach task in order to be able to discriminate 
the CVS directories 
foreach item=Folder in=. property=foldername exclude=CVS 
  nant buildfile=${foldername}/default.build 
target=${project.config} ${target} failonerror=false/ 
/foreach 
or NAnt should automatically ignore CVS directories. 
What do you think about that? 
PS: I apologise if I always send emails in HTML format: the problem 
is that here at T-System the standard mail client is Outlook, and 
even if I configured it to send out emails in plain text, Outlook 
still send them as HTML documents (that doesn't occur when I send 
you emails from my Linux machine at Agamura). 
Giuseppe Greco 
T-Systems CS AG 
Birkenstrasse 21 
8306 Bruttisellen 
Phone: +41 (0) 1 805 57 20 
Fax:   +41 (0) 1 805 55 45 
Email: [EMAIL PROTECTED] 
Web:   www.t-systems.ch 


This e-mail has been scanned for viruses by Star Internet. The
service is powered by MessageLabs. For more information visit:
http://www.star.net.uk


This e-mail has been scanned for viruses by Star Internet. The
service is powered by MessageLabs. For more information visit:
http://www.star.net.uk

---
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
___
Nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers




---
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
___
Nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers


RE: [nant-dev] NAnt CVS Directories

2003-06-04 Thread Greco Giuseppe
Title: RE: [nant-dev] NAnt  CVS Directories





 wouldn't it be possible to check if a buildfile exists in 
 directory (using
 the available task with an if task) ?
 
 In my opinion, the exclude property has too limited 
 usability what will
 happen if you want to exclude two directories ?
 
 perhaps we should reconsider adding fileset support to the nant task


The "exclude" property could contain a list of space separated
directories... I like your idea (adding fileset), but we have to
consider that the foreach task doens't work just with directories;
exclude should apply to all the property supported by foreach
(File, Folder, String and Line).



Gius_.






RE: [nant-dev] NAnt CVS Directories

2003-06-04 Thread Anthony LoveFrancisco
Title: Message



RE: Space 
separated:

How do you deal with directory 
names with spaces in them ?

- 
Ants

  
  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED] On Behalf Of Greco 
  GiuseppeSent: Tuesday, 03 June, 2003 22:57To: 'Gert 
  Driesen'Cc: Nant-Developers (E-Mail)Subject: RE: 
  [nant-dev] NAnt  CVS Directories
   wouldn't it be possible to check if a buildfile exists in 
   directory (using  the 
  available task with an if task) ?  
   In my opinion, the exclude property has too 
  limited  usability what will  happen if you want to exclude two directories ?   perhaps we should reconsider adding 
  fileset support to the nant task 
  The "exclude" property could contain a list of space 
  separated directories... I like your idea (adding 
  fileset), but we have to consider that the 
  foreach task doens't work just with directories; "exclude" should apply to all the property supported by 
  foreach (File, Folder, String and 
  Line). 
  Gius_.