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
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$$
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
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
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
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:
[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
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}
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
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
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
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
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
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
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
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
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
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/
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
(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
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
__
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
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
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
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/
/
__
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,
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:
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
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
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
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
Just checking that my e-mails are getting sent.
Please ignore...
-
Do you Yahoo!?
Yahoo! Small Business - Try our new resources site!
32 matches
Mail list logo