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
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
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
--
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
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
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
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
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
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...
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
-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
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
-
> > From: Rebhan, Gilbert [mailto:[EMAIL PROTECTED]
> > Sent: Mittwoch, 2. November 2005 09:31
> > To: Ant Users List
> > Subject: RE: Substring
> >
> >
> > Hi,
> >
> &
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 =
>
>
>
>
>
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:
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
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
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
18 matches
Mail list logo