You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Cassio <ca...@softall.com.br> on 2004/05/01 08:55:41 UTC
Strange behavior - replacetoken tag
Hi all,
I have this goal inside maven.xml:
<goal name="teste4">
<replace file="teste.txt">
<replacetoken><![CDATA[123]]></replacetoken>
<replacevalue><![CDATA[12345]]></replacevalue>
</replace>
</goal>
If I run this, I got:
BUILD FAILED
File...... file:/E:/Testes/Server/ejb-gen/maven.xml
Element... replace
Line...... 4
Column.... 32
The token attribute must not be an empty string.
Total time: 4 seconds
Finished at: Sat May 01 03:36:55 BRT 2004
But, it works OK with ant (inside build.xml):
<target name="teste4">
<replace file="teste.txt">
<replacetoken><![CDATA[123]]></replacetoken>
<replacevalue><![CDATA[12345]]></replacevalue>
</replace>
</target>
If I change:
<replace file="teste.txt">
with
<replace file="teste.txt" token="123" value="12345"/>
inside maven.xml, the replace function works, but I must use
replacetoken/replacevalue because I need to look for '<'
characters...
Any ideas/workarounds?
My system:
Maven 1.0-rc2
J2RE 1.4.2_04-b05
Windows 2000 - SP4
Thanks,
Cassio M. Nosshe
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org