You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Jason Ricles <jg...@alum.lehigh.edu> on 2015/02/05 15:54:14 UTC
conditional flatten mapping
I have the following flatten mapping in my ant file.
<path id="build.classpath" path="${deplibs}"/>
<pathconvert property="mf.classpath" refid="build.classpath" pathsep=" ">
<flattenmapper/>
</pathconvert>
However for a couple of the paths in the deplibs variable I want to
make these full instead of relative paths. Is there anyway to do a
conditional in the pathconvet in ant to say make these flat but do not
flatten these paths?
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: conditional flatten mapping
Posted by Matt Benson <gu...@gmail.com>.
I can't think of anything offhand. Instead I'd say do two pathconverts
filtering your classpath two ways and concatenate the results.
HTH,
Matt
On Thu, Feb 5, 2015 at 8:54 AM, Jason Ricles <jg...@alum.lehigh.edu> wrote:
> I have the following flatten mapping in my ant file.
>
> <path id="build.classpath" path="${deplibs}"/>
> <pathconvert property="mf.classpath" refid="build.classpath" pathsep=" ">
> <flattenmapper/>
> </pathconvert>
>
> However for a couple of the paths in the deplibs variable I want to
> make these full instead of relative paths. Is there anyway to do a
> conditional in the pathconvet in ant to say make these flat but do not
> flatten these paths?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org