ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <gudnabr...@yahoo.com>
Subject Re: A dirset,path,fileset...anything that returns ${myPath}/**/ejb
Date Thu, 03 Feb 2005 19:47:06 GMT
--- Nat Gross <natgross.rentalsystems@verizon.net>
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} =  
> org.apache.tools.ant.types.Mapper@1aa9f99
> 
> 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
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@ant.apache.org
> For additional commands, e-mail:
> user-help@ant.apache.org
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message