ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Hardy <adam....@cyberspaceroad.com>
Subject Re: transformation: com.zurich.chz.test -> com/zurich/chz/test
Date Sun, 06 Jul 2003 20:39:25 GMT
Exactly - antcontrib from http://sourceforge.net/cvs/?group_id=36177

Had exactly this problem myself. Did it with something like this:

<!-- convert the xml package name org.foo.bar to path org/foo/bar -->
     <taskdef resource="net/sf/antcontrib/antcontrib.properties"/>
     <propertyregex property="xml.path"
                       input="${xml.data}"
                      regexp="\."
                     replace="/"
                      global="true" />



Antoine Levy-Lambert wrote:
> There are some components which can do this type of transformation (regexp
> mapper for instance) when nested in some particular task like copy or move.
> ----- Original Message -----
> From: "Oliver Wulff" <oliver.wulff@zurich.ch>
> To: "Ant Users List" <user@ant.apache.org>
> Sent: Saturday, July 05, 2003 12:27 PM
> Subject: transformation: com.zurich.chz.test -> com/zurich/chz/test
> 
> 
> 
> 
> 
> 
> I haven't found a task which transforms the following:
> com.zurich.chz.test -> com/zurich/chz/test
> 
> I tried to use the pathconvert task but it didn't work. Do I have to
> implement my own task to do this?
> 
> 
> 
> 
> 
> 
> ******************* BITTE BEACHTEN *******************
> Diese Nachricht (wie auch allfällige Anhänge dazu) beinhaltet
> möglicherweise vertrauliche oder gesetzlich geschützte Daten oder
> Informationen. Zum Empfang derselben ist (sind) ausschliesslich die
> genannte(n) Person(en) bestimmt. Falls Sie diese Nachricht
> irrtümlicherweise erreicht hat, sind Sie höflich gebeten, diese unter
> Ausschluss jeder Reproduktion zu zerstören und die absendende Person
> umgehend zu benachrichtigen. Vielen Dank für Ihre Hilfe.
> 
> 
> ---------------------------------------------------------------------
> 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
> 
> 


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


Mime
View raw message