ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "broken connection" <>
Subject How to perform substituion and replacement tasks together??
Date Thu, 23 Aug 2007 16:36:18 GMT
Hi Friends,
I copy  files from "src" directory to "dest" directory using this target.


    <filter filtersfile=""/>

    <target name="test">
        <copy todir="${dest}/test" filtering="true">
            <fileset dir="${src}/test">

I have a property file with this parameter:

This is the parameter that i would like to substitue:
Log4j.xml file in ${src}/test:
    <!ENTITY logFile "@logs.location@">

I would like to convert the backslashes into slashes i.e i want to use this
propertyregex expression:

<propertyregex property="${logs.location}" input="${src}/test" regexp="\"
replace="/" override="true" />

But I don't understand how to use it so that both the value substitution
from the properties file and the replacement
takes place together, can somebody give any clues please....


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message