ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nat Gross <natgross.rentalsyst...@verizon.net>
Subject Re: A dirset,path,fileset...anything that returns ${myPath}/**/ejb
Date Thu, 03 Feb 2005 22:05:13 GMT
Matt Benson wrote:

>--- Nat Gross <natgross.rentalsystems@verizon.net>
>wrote:
>
>  
>
>>Matt Benson wrote:
>>    
>>
>[SNIP]
>  
>
>>><pathconvert property="pleaseHelp" pathsep=" ">
>>> <path>
>>>   <dirset dir="${projectPath}" includes="**/ejb"
>>>      
>>>
>>/>
>>    
>>
>>> </path>
>>> <mapper type="glob" from="*ejb" to="*" />
>>></pathconvert>
>>><echo>$${pleaseHelp}=${pleaseHelp}</echo>
>>>
>>>-Matt
>>> 
>>>
>>>      
>>>
>>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?
>>-nat
>>
>>    
>>
>Probably the most reliable way, without moving to a
>snapshot Ant build (globmapper handledirchar="true"),
>would be to make your mapper:
>
><mapper type="glob"
>        from="*${file.separator}ejb" to "*" />
>
>-Matt
>  
>
Thank you much. It works great! I have learned a bit more about glob 
mapper in the process, as well.
-nat

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


Mime
View raw message