Believe or not, I am using pathconvert to get substring of tempPathName: <pathconvert pathsep="${FILE_SEP}" property="PackageName"> <path id="tempPathName"> <pathelement location="${SRC}"/> </path> <map from="${PRODUCT_ROOT}${FILE_SEP}src" to=""/> </pathconvert>
Here I am actually getting the remaining part of tempPathName after ${PRODUCT_ROOT}${FILE_SEP}src. Jerry -----Original Message----- From: Hannes van der Merwe [mailto:[EMAIL PROTECTED]] Sent: Monday, December 03, 2001 4:29 AM To: '[EMAIL PROTECTED]' Subject: Substring or Substitution in ANT Is there an existing task that can be used to get a substring of a String or substitute a part of a String with something else? Hannes van der Merwe Momentum Employment Benefits (IT) Telephone : (011) 685 4306 Email : [EMAIL PROTECTED] E-mail disclaimer Confidentiality Warning ======================= The contents of this message and any attachments are intended solely for the addressee's use and may be legally privileged and/or confidential. If you are not the addressee indicated in this message, any retention, distribution, copying or use of this message is strictly prohibited. If you received this message in error, kindly notify the sender immediately by reply e-mail and then destroy the message and any copies thereof. The content and any views expressed therein are, unless otherwise stated, the views of the author and not those of the company or any of its management or directors. Whilst all reasonable steps are taken to ensure the accuracy and integrity of information transmitted, the company does not accept responsibility for any corruption of the information or data or breach of confidentiality as a result of electronic submission. When addressed to the Momentum Employee Benefits clients any opinion or advice contained in this e-mail is subject to the terms and conditions expressed in any applicable terms of business. -------------------------------------------------------------------------- Note: The information contained in this message may be privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. Thank you. -------------------------------------------------------------------------- -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>