Thank you all. Its done
-Original Message-
From: Pankaj Arora01 [mailto:pankaj_aror...@infosys.com]
Sent: Monday, April 06, 2009 6:13 PM
To: juergen.knuple...@icongmbh.de; Ant Users List
Subject: RE: Getting substring in ANT
Hi Jürgen ,
Can you please help me in finding the regular
--Original Message-
From: Knuplesch, Juergen [mailto:juergen.knuple...@icongmbh.de]
Sent: Monday, April 06, 2009 4:03 PM
To: Ant Users List
Subject: AW: Getting substring in ANT
As I wrote last week in a different context:
I use propertyregex from antcontrib:
Property vm.pr
: Ant Users List
Betreff: Getting substring in ANT
HI All,
I have following directory structure:
C:\abc\deploy\oracle\NAAM09102NNAQAE\NAAM09102NNAQAE_core01
C:\abc\deploy\oracle\NAAM09102NNAQBX\NAAM09102NNAQBX_ext_point_address01
C:\abc\deploy\oracle\ NAAM09102NNAQCF\NAAM09102NNAQCF_ext_sdo01
Maybe ?
Jan
>-Ursprüngliche Nachricht-
>Von: Pankaj Arora01 [mailto:pankaj_aror...@infosys.com]
>Gesendet: Montag, 6. April 2009 12:17
>An: Ant Users List
>Betreff: Getting substring in ANT
>
>HI All,
>
>
>
>I have following directory struc
one. I need something like
substring...
Please help...
CAUTION - Disclaimer *
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely
for the use of the addressee(s). If you are not the intended recipient, please
notify
http://ant.apache.org/antlibs/sandbox.html#Props%20-%20additional%20Property%20Resolver
YMMV.
-Matt
--- On Mon, 3/30/09, Document wrote:
> From: Document
> Subject: How to get substring of a property
> To: user@ant.apache.org
> Date: Monday, March 30, 2009, 5:46 PM
> Hi,
> How do I get a
substring of a property
Hi,
How do I get a substring of a property? Lets say I have a property whose value
is "some.value". I want only the characters before the dot i.e.
"some". Any pointers? Please reply to me along with the
u...@ant.apache.o
Hi,
How do I get a substring of a property? Lets say I have a property whose
value is "some.value". I want only the characters before the dot i.e.
"some". Any pointers? Please reply to me along with the
u...@ant.apache.orgemail id
Thanks
P
Hello,
I think you can strip the prefix by using with a .
Cheers,
Patrick
On Sat, Jan 17, 2009 at 11:32 PM, Georg-Johann Lay wrote:
> Georg-Johann Lay schrieb:
>>
>> Hi,
>>
>> can anyone assist me in solving this following quite trivial problem?
>>
>> Given a path A and the current directory
Georg-Johann Lay schrieb:
Hi,
can anyone assist me in solving this following quite trivial problem?
Given a path A and the current directory B=. derermine B relative to A.
This is needed for prefixes in zipfileset.
In the special case that I am after B is a subdirectory (of some level)
of A
Hi,
can anyone assist me in solving this following quite trivial problem?
Given a path A and the current directory B=. derermine B relative to A.
This is needed for prefixes in zipfileset.
In the special case that I am after B is a subdirectory (of some level)
of A. So gettig the relative pa
So, thats sorta the problem...replaceregex works on a file...not on a
property... Ant Contrib's version works on a property itself...
I wrote the macrodef as I did...as I can reuse it over and over...
On Sat, 17 Jan 2009, Georg-Johann Lay wrote:
Georg-Johann Lay schrieb:
Ant proper reall
Georg-Johann Lay schrieb:
Ant proper really is not capable to perform things that look in C like
>> char * prefix;
>> char * path;
>> char * suffix = path + strlen (prefix);
or like
>> String prefix;
>> String path;
>> String suffix = path.substring (prefix.length());
in Java?
Hi, I
within your Ant script. The simplest
thing I found was to use regular expressions (which is what my example
does). I used a macrodef as a kind of reusable function I can call...
I am unaware of a substring task at all. Ant Contrib (a third party Ant
library) has some fairly useful features
ffix = path + strlen (prefix);
or like
>> String prefix;
>> String path;
>> String suffix = path.substring (prefix.length());
in Java?
I am trying to *simplify* Makefiles by using ant. And not to make things
even more complex and harder to understand and to maintain.
If ant cann
I had a need for something exactly like this...long story but it had to do
with javacc :)
Anyway, my open source project Keros (url is in my sig line) has a lot of
this type of functionality...
I am enclosing my macrodef to compute a branch:
description = "Compute the branch ba
Hi,
can anyone assist me in solving this following quite trivial problem?
Given a path A and the current directory B=. derermine B relative to A.
This is needed for prefixes in zipfileset.
In the special case that I am after B is a subdirectory (of some level)
of A. So gettig the relative path
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
To: Ant Users List
Subject: substring
Hello,
Is it possible to do a substring operation with Ant?
Cheers,
Anthony
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED
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,
A
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. Th
Hello,
Is it possible to do a substring operation with Ant?
Cheers,
Anthony
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--- Mathieu Champlon <[EMAIL PROTECTED]> wrote:
> Willy Reinhardt a écrit :
> > Hi,
> > I get a property value as :
> >
>
lib/iaik/iaik_jce.jar,lib/iaik/iaikPkcs11Provider.jar
>
> >
> > and would replace character "," by ";" or ":"
> >
> > is a ant task can do that ?
In this case, having a p
Willy Reinhardt a écrit :
Hi,
I get a property value as :
lib/iaik/iaik_jce.jar,lib/iaik/iaikPkcs11Provider.jar
and would replace character "," by ";" or ":"
is a ant task can do that ?
Hello !
Maybe the task can help you :
http://ant.apache.org/manual/CoreTasks/pathconvert.html
Or
You could also use the antcontrib task PropertyRegex.
R,
Markus
Original-Nachricht
Datum: Tue, 29 Aug 2006 12:47:25 +0200
Von: "Rebhan, Gilbert" <[EMAIL PROTECTED]>
An: "Ant Users List"
Betreff: RE: How to replace substring into property and get re
e-
From: Willy Reinhardt [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 29, 2006 12:32 PM
To: Ant Users List
Subject: How to replace substring into property and get result
intoanother property ?
Hi,
I get a property value as :
lib/iaik/iaik_jce.jar,lib/iaik/iaikPkcs11Provider.
Hi,
I get a property value as :
lib/iaik/iaik_jce.jar,lib/iaik/iaikPkcs11Provider.jar
and would replace character "," by ";" or ":"
is a ant task can do that ?
Thanks
Willy
Hi Ben,
I have solved the problem. I have changed this line
and it works. Thanks for your help.
Regards,
Uma
-Original Message-
From: Burgess, Benjamin [mailto:[EMAIL PROTECTED]
Sent: Monday, April 17, 2006 6:59 PM
To: Ant Users List
Subject: RE: return Substring from java file
in [mailto:[EMAIL PROTECTED]
Sent: Monday, April 17, 2006 6:59 PM
To: Ant Users List
Subject: RE: return Substring from java file
Firstly, this seems best suited in a macrodef that can set a property
rather than in a custom task.
Secondly, doesn't this already do what you want? :
Ben
e.org
Subject: return Substring from java file
Hi,
I wanted to do "substring" and get the resultant string in the build.xml
file. This is my java code
import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.Task;
import java.io.File;
public class AntHelper extends Task
Hi,
I wanted to do "substring" and get the resultant string in the build.xml
file. This is my java code
import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.Task;
import java.io.File;
public class AntHelper extends Task {
private String message;
public vo
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
ubject: 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 [mailto:[EMAIL PROTECTED]
Sent: Mitt
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...
r folder/"
>>
>> The double slash is not nice... But I need all the slashes in
>> Prop1 and Prop2... So I need to do a substring action on one of the
>> properties.
>>
>> Remo
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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
can use the property 'combinedPath' which has done this
substring-ing for you... It will even convert *NIX paths to Windows and vice
versa (maybe you need some mappings for that if your NOT using relative
paths, check the pathconvert-help on ant.apache.org/manual)
Roland
On Wednesday 02 November
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 =
>
>
>
>
>
i [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 02, 2005 8:46 AM
To: Ant Users List
Subject: Substring
Good Morning
Is it possible to to some string operations on a property?
Example:
Prop1: "/my/folder/"
Prop2: "/my other folder/"
Now I log:
File moved to: ${Prop1}${P
the slashes in Prop1 and
Prop2... So I need to do a substring action on one of the properties.
I took a look at the documentation of ANT but did not found some string
operations or stuff like this. I think there is such things, may be I
looked at the wrong place. If so, please tell me where I have t
--- Yves Leung-Tack <[EMAIL PROTECTED]>
wrote:
> Hi,
>
> Is it possible for ant to get a filename , parsing
> it
> and get a substring of that filename for using it ??
>
You should be able to do this using pathconvert with
Hi,
Is it possible for ant to get a filename , parsing it
and get a substring of that filename for using it ??
What I want to do exactly in build.xml is:
if a file with *QAE.tar.gz exists then
parse the that filename to get the substring from index 4 to 9
use that
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
Try the optional task.
Jan
> -Ursprüngliche Nachricht-
> Von: Ben Gill [mailto:[EMAIL PROTECTED]
> Gesendet am: Mittwoch, 13. Oktober 2004 12:35
> An: Ant Users List
> Betreff: RE: Substring / regex on a package name?
>
> Thanks Ivan, that is great...
>
&g
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
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?
2) Is there a rename packages ANT task?
Th
51 matches
Mail list logo