Uhhmm,

did you read the documentation under http://ant.apache.org/manual/CoreTasks/replace.html ?

I think the first example applies very well to what you want to do.

It says this : <replace file="${src}/index.html" token="@@@" value="wombat"/>

so you would do <replace file="config.xml" token="myAMFSessionURL" value="newAMFSessionURL"/>

assuming the xml configuration file is called config.xml and is in the same directory like the Ant build file.

Regards,

Antoine

Sunils_82 wrote:
Hi,

My xml configuration file has following format:
<channels>
        <channel-definition class="MyChannel" id="myChannelId">
                <endpoint class="endPointClass" uri="myURL"/>
        </channel-definition>
<channel-definition class="MyAMFChannel" id="myAMFSession"> <endpoint uri="myAMFSessionURL"/> </channel-definition>
</channels>

Now how do i perform the REPLACE task in this case to replace
'myAMFSessionURL' to 'newAMFSessionURL'

Regards,
Sunil


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

Reply via email to