RE: Getting substring in ANT

2009-04-06 Thread Pankaj Arora01
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

RE: Getting substring in ANT

2009-04-06 Thread Pankaj Arora01
--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

AW: Getting substring in ANT

2009-04-06 Thread Knuplesch, Juergen
: 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

AW: Getting substring in ANT

2009-04-06 Thread Jan.Materne
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

Getting substring in ANT

2009-04-06 Thread Pankaj Arora01
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

Re: How to get substring of a property

2009-03-31 Thread Matt Benson
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

AW: How to get substring of a property

2009-03-31 Thread Knuplesch, Juergen
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

How to get substring of a property

2009-03-30 Thread Document
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

Re: [ant] Determining relative paths resp. substring?

2009-01-30 Thread Patrick Martin
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

Re: [ant] Determining relative paths resp. substring?

2009-01-17 Thread Georg-Johann Lay
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

[ant] Determining relative paths resp. substring?

2009-01-17 Thread Georg-Johann Lay
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

Re: [ant] Determining relative paths resp. substring?

2009-01-16 Thread Scot P. Floess
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

Re: [ant] Determining relative paths resp. substring?

2009-01-16 Thread Georg-Johann Lay
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

Re: [ant] Determining relative paths resp. substring?

2009-01-16 Thread Scot P. Floess
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

Re: [ant] Determining relative paths resp. substring?

2009-01-16 Thread Georg-Johann Lay
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

Re: [ant] Determining relative paths resp. substring?

2009-01-16 Thread Scot P. Floess
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

[ant] Determining relative paths resp. substring?

2009-01-16 Thread Georg-Johann Lay
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

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
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

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, A

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. Th

substring

2008-07-08 Thread Anthony Muller
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]

Re: How to replace substring into property and get result into another property ?

2006-08-29 Thread Matt Benson
--- 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

Re: How to replace substring into property and get result into another property ?

2006-08-29 Thread Mathieu Champlon
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

Re: RE: How to replace substring into property and get result intoanother property ?

2006-08-29 Thread Markus M. May
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

RE: How to replace substring into property and get result intoanother property ?

2006-08-29 Thread Rebhan, Gilbert
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.

How to replace substring into property and get result into another property ?

2006-08-29 Thread Willy Reinhardt
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

[SOLVED]RE: return Substring from java file

2006-04-17 Thread Uma Maheswar
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

RE: return Substring from java file

2006-04-17 Thread Uma Maheswar
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

RE: return Substring from java file

2006-04-17 Thread Burgess, Benjamin
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

return Substring from java file

2006-04-17 Thread Uma Maheswar
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

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
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

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...

AW: Substring

2005-11-02 Thread Jan.Materne
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]

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
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

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
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

Substring

2005-11-01 Thread Remo Liechti
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

Re: Parsing a file name and extract a substring with ant ?

2005-01-04 Thread Matt Benson
--- 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

Parsing a file name and extract a substring with ant ?

2005-01-04 Thread Yves Leung-Tack
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

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

AW: Substring / regex on a package name?

2004-10-13 Thread Jan . Materne
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

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

Substring / regex on a package name?

2004-10-13 Thread Ben Gill
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