Matt Benson wrote:
--- Nat Gross <[EMAIL PROTECTED]>Aye, thanks much. It works 99%. It returns the correct path but it also includes a dir separator at the end. How do I drop that?
wrote:
[SNIP]
This is what I want: ---------- <mapper id="mapped"> <regexpmapper from="(${projectPath}/src/**)/ejb" to="\1" /> </mapper> <property name="pleaseHelp" refid="mapped" /> -------- If the from path = /a/b/c/d/e/f/e/ejb, ${pleaseHelp} should=/a/b/c/d/e If the from path = /a/ejb, ${pleaseHelp} should=/a
Alas, in the aforementioned snippet, in my case,
${pleaseHelp} = [EMAIL PROTECTED]
Thanks again
-nat
You haven't mapped anything here. Try this:
<pathconvert property="pleaseHelp" pathsep=" "> <path> <dirset dir="${projectPath}" includes="**/ejb" /> </path> <mapper type="glob" from="*ejb" to="*" /> </pathconvert> <echo>$${pleaseHelp}=${pleaseHelp}</echo>
-Matt
-nat
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]