Sorting a property file ?

2005-03-24 Thread Nicolas Vervelle
Hi, I have a property file that is generated by modified in a fileset. I would like to sort its content so that the files in it are sorted by directory. Is it possible ? Nicolas - To unsubscribe, e-mail: [EMAIL PROTECTED] For

os-independent directory mapping in copy task?

2005-03-24 Thread Peter Nabbefeld
Hello, I'm using the copy task to map a file name into a directory structure: copy todir=... fileset dir=... include name=**/*.txt/ /fileset mapper type=regexp from=^([a-zA-Z][a-z_A-Z0-9]*)\\([A-Z][a-zA-Z0-9]*)_([A-Z][a-zA-Z0-9]*)_([A-Z][a-zA-Z0-9]*)_([\w]+).txt$$

Re: os-independent directory mapping in copy task?

2005-03-24 Thread Peter Reilly
Ant 1.6.3 will add a new attribute to the regexp mapper: handledirchar If this is specified, the mapper will treat a \ character in a filename as a / for the purposes of matching. This attribute can be true or false, the default is false. This attribute is useful for cross-platform build

Re: Sorting a property file ?

2005-03-24 Thread Ivan Ivanov
Nicolas, Ant-Contrib has sortlist task[1] which can sort properties files. HTH Ivan [1]http://ant-contrib.sourceforge.net/tasks/tasks/sortlist.html --- Nicolas Vervelle [EMAIL PROTECTED] wrote: Hi, I have a property file that is generated by modified in a fileset. I would like to sort its

AW: os-independent directory mapping in copy task?

2005-03-24 Thread Jan . Materne
just an idea ... could you use ${path.separator} ? Jan -Ursprüngliche Nachricht- Von: Peter Reilly [mailto:[EMAIL PROTECTED] Gesendet am: Donnerstag, 24. März 2005 11:20 An: Ant Users List Betreff: Re: os-independent directory mapping in copy task? Ant 1.6.3 will add a new

Re: Sorting a property file ?

2005-03-24 Thread Nicolas Vervelle
Ok, thanks but I want to sort the property file and save it. Is it possible ? Nicolas Ivan Ivanov wrote: Nicolas, Ant-Contrib has sortlist task[1] which can sort properties files. HTH Ivan [1]http://ant-contrib.sourceforge.net/tasks/tasks/sortlist.html --- Nicolas Vervelle [EMAIL PROTECTED] wrote:

Re: AW: os-independent directory mapping in copy task?

2005-03-24 Thread Peter Reilly
[EMAIL PROTECTED] wrote: just an idea ... could you use ${path.separator} ? This does not work as ${path.separator} on windows is '\' which is an escape character. one needs to do something like (not tested) ac:if on_windows/ then property name=reg.dir.sep value=\\/ /then else

Re: Sorting a property file ?

2005-03-24 Thread Ivan Ivanov
Let's see... This might do the job: project taskdef resource=net/sf/antcontrib/antlib.xml/ echo file=unsorted.propertiesa.name=a d.name=d c.name=c b.name=b/echo loadfile srcfile=unsorted.properties property=unsorted/ sortlist property=sorted value=${unsorted}

Re: os-independent directory mapping in copy task?

2005-03-24 Thread Peter Nabbefeld
Thank You very much. I've tried the handledirchar attribute with ant 1.7alpha - works fine. However, there's one little inconsistency: It works with regexpmapper, but it doesn't work with the generic mapper type=regexp .../. Kind regards Peter Nabbefeld Peter Reilly schrieb: Ant 1.6.3 will add

Re: Errors in cvschangelog module???

2005-03-24 Thread Dave Bartmess
That gave me the clue I needed! THanks! Apparently someone had installed and earlier version, then installed a later version (1.11.17) without uninstalling the earlier version, and I was getting mixed versions. It's a winblows machine, so who knew what it was looking at? But it seems to be

RE: Sorting a property file ?

2005-03-24 Thread Rick Genter
From: Nicolas Vervelle [mailto:[EMAIL PROTECTED] Sent: Thursday, March 24, 2005 4:51 AM To: user@ant.apache.org Subject: Sorting a property file ? Hi, I have a property file that is generated by modified in a fileset. I would like to sort its content so that the files in it are sorted

Re: Sorting a property file ?

2005-03-24 Thread Nicolas Vervelle
Rick Genter wrote: From: Nicolas Vervelle [mailto:[EMAIL PROTECTED] Sent: Thursday, March 24, 2005 4:51 AM To: user@ant.apache.org Subject: Sorting a property file ? Hi, I have a property file that is generated by modified in a fileset. I would like to sort its content so that the files in it

RE: Sorting a property file ?

2005-03-24 Thread Ivan Ivanov
I have a property file that is generated by modified in a fileset. I would like to sort its content so that the files in it are sorted by directory. Is it possible ? Nicolas Well, I do not know exactly how modified works and how a fileset is stored as a property file and sortlist

RE: os-independent directory mapping in copy task?

2005-03-24 Thread Dominique Devienne
Ant 1.6.3 will add a new attribute to the regexp mapper: handledirchar regexpmapper from=${basedir}/d/e/(.*) to=\1 handledirchar=yes/ I missed the introduction of this one. cool! OTOH, its name sounds weird. How about simply calling it 'dirsep' to be consistent

Re: os-independent directory mapping in copy task?

2005-03-24 Thread Peter Nabbefeld
Dominique Devienne schrieb: Ant 1.6.3 will add a new attribute to the regexp mapper: handledirchar regexpmapper from=${basedir}/d/e/(.*) to=\1 handledirchar=yes/ I missed the introduction of this one. cool! OTOH, its name sounds weird. How about simply calling it

RE: Re: os-independent directory mapping in copy task?

2005-03-24 Thread Dominique Devienne
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Peter Nabbefeld Dominique Devienne schrieb: Ant 1.6.3 will add a new attribute to the regexp mapper: handledirchar regexpmapper from=${basedir}/d/e/(.*) to=\1 handledirchar=yes/ I missed the introduction

Self-contained builds

2005-03-24 Thread Simon Chappell
Hey der, I'm trying to make a working build be completely self-contained and so I'm looking for some feedback on the current state of using JUnit with Ant. The current situation is that I use JUnit in the ANT_HOME/lib directory, per all of the standard advise that everyone and their dog (myself

Re: os-independent directory mapping in copy task?

2005-03-24 Thread Peter Reilly
Dominique Devienne wrote: From: news [mailto:[EMAIL PROTECTED] On Behalf Of Peter Nabbefeld Dominique Devienne schrieb: Ant 1.6.3 will add a new attribute to the regexp mapper: handledirchar regexpmapper from=${basedir}/d/e/(.*) to=\1 handledirchar=yes/

Possibly OT: ant target to verify that all files version controlled by svn

2005-03-24 Thread Paul Elschot
I ran into the problem of svn unversioned files a few weeks ago. This test target for that project now depends on the test compilation and on this: !-- == -- !-- Verify that all files are versioned or explicitly ignored by svn

FW: Problem picking up correct view in p4labelsync

2005-03-24 Thread Suzanne Dorman
(Sorry for the delay on this, I sent it to the wrong address) Hi Antoine, I set the following view in p4label and the labelsync worked correctly. view=//depot/EDITSolutions/BaseNotConvertedNewStructure/... This helps but it means that Ant is working differently from Perforce's commands. When

replaceregexp on multiple lines

2005-03-24 Thread Nicolas Vervelle
Hi, I have a file containing several times something like (xx is different) : language lang=xx a.../a /language For some of them (depending on xx), I want to keep only the aa part. For the others, I wan to completely remove them. I tried this : replaceregexp match='language

Is there anybody out there...

2005-03-24 Thread Ninju Bohra
__ Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard. http://promotions.yahoo.com/new_mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Question about using mapper to change filename case

2005-03-24 Thread Ninju Bohra
Hello all, OS: WindowsXP ANT: 1.6.2 I need files from one directory (tableset.source.dir) copied to another (buildDirectory\...), so I wrote: property name=tableset.source.dir value=${tableset.root}/Build_v${trying.version.number}/Build${max.build.number}/ copy

Re: Question about using mapper to change filename case

2005-03-24 Thread Alexey N. Solofnenko
I think something like that should work: copy ... globmapper from=*.dll to=*.DLL casesensitive=false/ /copy - Alexey. Ninju Bohra wrote: Hello all, OS: WindowsXP ANT: 1.6.2 I need files from one directory (tableset.source.dir) copied to another (buildDirectory\...), so I wrote: property

Re: Possibly OT: ant target to verify that all files version controlled by svn

2005-03-24 Thread Alexey N. Solofnenko
It is. - Alexey. Ninju Bohra wrote: Is the ANT user group working... -- / Alexey N. Solofnenko MDL Information Systems, Inc. work: 510-357-x1726 home: http://trelony.cjb.net/ /

Is there anybody out there...

2005-03-24 Thread Ninju Bohra
__ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

RE: Is there anybody out there...

2005-03-24 Thread Durham David R Jr Contr 805 CSPTS/SCE
Ninju, yes, people are out there. You're spamming the list, which wastes apache foundation bandwidth. This list is a service, don't abuse it. - Dave -Original Message- From: Ninju Bohra [mailto:[EMAIL PROTECTED] Sent: Thursday, March 24, 2005 4:06 PM To: Ant Users Group Subject:

First time question of mappers

2005-03-24 Thread Ninju Bohra
Hello all, I need to two sets of files from one directory (tableset.source.dir) to another (buildDirectory\...), so I wrote: property name=tableset.source.dir value=${tableset.root}/Build_v${trying.version.number}/Build${max.build.number}/ copy

Fwd: First time question of mappers

2005-03-24 Thread Ninju Bohra
Hello all, I need to two sets of files from one directory (tableset.source.dir) to another (buildDirectory\...), so I wrote: property name=tableset.source.dir value=${tableset.root}/Build_v${trying.version.number}/Build${max.build.number}/ copy

RE: First time question of mappers

2005-03-24 Thread Conelly, Luis (GE Energy, Non GE, GENE)
Ninju, Would you mind to send only one time your post and then wait until the list processes the mail? I don't mean to be rude, but having the same post three times (so far) is not exactly my idea of a mailing list. Once again, no offense intended, but please be considered with

ClassLoader issues with Ant 1.6.x and the junit task

2005-03-24 Thread David E Noel
Hello fellow ant users. I have a problem with ant and junit that I am pretty sure is a class loader problem. When I run the junit task on my test cases I always get a ClassNotFoundException on my test case classes. I am sure they are on the classpath so that makes me think it is a class

Problem posting

2005-03-24 Thread Ninju Bohra
Just checking that my e-mails are getting sent. Please ignore... - Do you Yahoo!? Yahoo! Small Business - Try our new resources site!