ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Koegel, Michael" <Michael.Koe...@partner.commerzbank.com>
Subject native2ascii as FilterReader
Date Fri, 21 Jun 2002 09:39:42 GMT
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:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message