You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Koegel, Michael" <Mi...@partner.commerzbank.com> on 2002/06/21 11:39:42 UTC
native2ascii as FilterReader
Hi all,
it would be very convienient to use native2ascii as part of a filterchain.
Has anyone done this allready?
Currently my target looks like this:
<native2ascii reverse="yes" src="${src.dir}" dest="${out.src.dir}"
includes="**/*.java" ext=".java.zOS"/>
<native2ascii reverse="yes" src="${src.dir}" dest="${out.src.dir}"
includes="**/*.properties" ext=".properties.zOS"/>
<move todir="${out.src.dir}" filtering="on">
<fileset dir="${out.src.dir}" >
<include name="**/*.zOS"/>
</fileset>
<mapper type="glob" from="*.zOS" to="*"/>
</move>
Having a native2ascii-Filter would give something like that:
<copy todir="${out.src.dir}">
<fileset dir="${src.dir}">
<patternset refid="all.src.files"/>
</fileset>
<filterchain>
<ascii2native/>
<replacetokens/>
</filterchain>
</copy>
Regards,
Michael Kögel
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: native2ascii as FilterReader
Posted by Magesh Umasankar <um...@apache.org>.
This hasn't been done already - your proposal
looks good to me. If you are comfortable with
coding, please provide this enhancement yourself
to ant-dev. Otherwise, please make sure you file
it in BugZilla as an Enhancement Request.
Cheers,
Magesh
*************************************************************
* Miser: A person who lives poor so that he can die rich. *
*************************************************************
----- Original Message -----
From: "Koegel, Michael" <Mi...@partner.commerzbank.com>
To: "ANT User Mailinglist (E-Mail)" <an...@jakarta.apache.org>
Sent: Friday, June 21, 2002 5:39 AM
Subject: native2ascii as FilterReader
Hi all,
it would be very convienient to use native2ascii as part of a filterchain.
Has anyone done this allready?
Currently my target looks like this:
<native2ascii reverse="yes" src="${src.dir}" dest="${out.src.dir}"
includes="**/*.java" ext=".java.zOS"/>
<native2ascii reverse="yes" src="${src.dir}" dest="${out.src.dir}"
includes="**/*.properties" ext=".properties.zOS"/>
<move todir="${out.src.dir}" filtering="on">
<fileset dir="${out.src.dir}" >
<include name="**/*.zOS"/>
</fileset>
<mapper type="glob" from="*.zOS" to="*"/>
</move>
Having a native2ascii-Filter would give something like that:
<copy todir="${out.src.dir}">
<fileset dir="${src.dir}">
<patternset refid="all.src.files"/>
</fileset>
<filterchain>
<ascii2native/>
<replacetokens/>
</filterchain>
</copy>
Regards,
Michael Kögel
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>