RE: substring

2008-07-09 Thread Anthony Muller
Thanks for the tip! -Original Message- From: Garrett Smith [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 09, 2008 8:22 AM To: Ant Users List Subject: Re: substring On Tue, Jul 8, 2008 at 12:51 PM, Anthony Muller <[EMAIL PROTECTED]> wrote: > Hello, > > Is it possible to

RE: substring

2008-07-09 Thread Shawn Castrianni
Yes, but not with standard ANT. You have to use the stringutils plugin from antelope with docs here: http://antelope.tigris.org/nonav/docs/manual/bk03ch13.html --- Shawn Castrianni -Original Message- From: Anthony Muller [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 08, 2008 9:51 PM T

Re: substring

2008-07-09 Thread Frank Harnack
Hello Anthony, the StringUtils task from antelope should help you. http://antelope.tigris.org/docs/manual/bk03ch13.html Regards Frank Quoting Anthony Muller <[EMAIL PROTECTED]>: Hello, Is it possible to do a substring operation with Ant? Cheers, Anthony --

Re: substring

2008-07-08 Thread Garrett Smith
On Tue, Jul 8, 2008 at 12:51 PM, Anthony Muller <[EMAIL PROTECTED]> wrote: > Hello, > > Is it possible to do a substring operation with Ant? > Not exactly. But it is possible to do a string/token replacement -- not exactly what you asked, but it can get the job done. This is done using a FilterCha

Re: Substring

2005-11-03 Thread Dale Anson
t the StringUtil task has a builtin propertycopy feature, as properties are immutable normally ? Regards, Gilbert -Original Message- From: Dale Anson [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 02, 2005 4:43 PM To: Ant Users List Subject: Re: Substring You can also use the StringUtil

RE: Substring

2005-11-02 Thread Rebhan, Gilbert
EMAIL PROTECTED] Sent: Wednesday, November 02, 2005 4:43 PM To: Ant Users List Subject: Re: Substring You can also use the StringUtil task from Antelope. Then you could do something like: ${Prop1}${Prop2} will print out /my/folder/my other folder/ Or ${Prop3} will prin

RE: Substring

2005-11-02 Thread Remo Liechti
Thanks to all answers! It works fine now ;) Remo > -Original Message- > From: Rebhan, Gilbert [mailto:[EMAIL PROTECTED] > Sent: Mittwoch, 2. November 2005 14:39 > To: Ant Users List > Subject: RE: Substring > > > Hi, > > ok i played a bit wi

Re: Substring

2005-11-02 Thread Dale Anson
woch, 2. November 2005 09:31 To: Ant Users List Subject: RE: Substring Hi, echo ${Prop1}${Prop2} to yourfile.txt then use a filterchain when loading the contents of that file in a new property = ${bla} gives you >>> /my/folder/my othe

RE: Substring

2005-11-02 Thread Rebhan, Gilbert
From: Remo Liechti [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 02, 2005 9:37 AM To: Ant Users List Subject: RE: Substring Hi Gil Is there no easy way to do it? :/ It's a bit overhead to write files for this, isn't it ;) If there is no other possibility I'll do it this way...

RE: Substring

2005-11-02 Thread Rebhan, Gilbert
Ant Users List Subject: RE: Substring Hi Gil Is there no easy way to do it? :/ It's a bit overhead to write files for this, isn't it ;) If there is no other possibility I'll do it this way... Thanks anyway, Remo > -Original Message- > From: Rebhan, Gilbert [m

Re: Substring

2005-11-02 Thread Nicolas Vervelle
-Original Message- From: Rebhan, Gilbert [mailto:[EMAIL PROTECTED] Sent: Mittwoch, 2. November 2005 09:31 To: Ant Users List Subject: RE: Substring Hi, echo ${Prop1}${Prop2} to yourfile.txt then use a filterchain when loading the contents of that fi

RE: Substring

2005-11-02 Thread Remo Liechti
gt; To: user@ant.apache.org > Subject: RE: Substring > > Hi Remo, > > Why do you want to remove the slash anyway? Any doesn't mind, > and your paths will be reachable anyway... Sure, it doesn't > look nice in the putput, but it works > And, if it is

RE: Substring

2005-11-02 Thread Roland Asmann
- > > From: Rebhan, Gilbert [mailto:[EMAIL PROTECTED] > > Sent: Mittwoch, 2. November 2005 09:31 > > To: Ant Users List > > Subject: RE: Substring > > > > > > Hi, > > > &

RE: Substring

2005-11-02 Thread Remo Liechti
och, 2. November 2005 09:31 > To: Ant Users List > Subject: RE: Substring > > > Hi, > > echo ${Prop1}${Prop2} to yourfile.txt > then use a filterchain when loading > the contents of that file in a new property = > > > > >

RE: Substring

2005-11-02 Thread Rebhan, Gilbert
Hi, echo ${Prop1}${Prop2} to yourfile.txt then use a filterchain when loading the contents of that file in a new property = ${bla} gives you >>> /my/folder/my other folder/ Gilbert -Original Message- From: Remo Liechti [mailto:

RE: Substring / regex on a package name?

2004-10-13 Thread Ivan Ivanov
Hi Ben, If it is possible for you, why don't you simply rename/refactor the name of your pages, using some IDE. Eclipse, IntelliJIdea do this quite decently as well as many others. If it is not possible to use an IDE, here are some basic steps (untested however): 1) Use ant task ReplaceRegExp[1] t

RE: Substring / regex on a package name?

2004-10-13 Thread Ben Gill
g else out there like this I saw a rename packages task on java.dev.net somewhere but it did not seem to work.. Ben -Original Message- From: Ivan Ivanov [mailto:[EMAIL PROTECTED] Sent: 13 October 2004 10:22 To: Ant Users List Subject: Re: Substring / regex on a package name? He

Re: Substring / regex on a package name?

2004-10-13 Thread Ivan Ivanov
Hello, > Hi, > > I have two questions: > > 1) I have a property called "com.myapp" within my > build.xml file (or at > least loaded in at runtime), and I want to strip off > everything past the > first dot (to get the base package name com)... > > Is that possible? You can use ant-contrib[1] t