ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Parimala" <parim...@medicomsoft.com>
Subject RE: problem with replace token
Date Thu, 20 Nov 2003 07:33:54 GMT
my property name is the same, neway i changed to @SRC@ still behaving the
same...

-----Original Message-----
From: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de]
Sent: Thursday, November 20, 2003 12:20 PM
To: user@ant.apache.org
Subject: RE: problem with replace token


>      i  am trying to replace the token in the file the
> following is the code
> written for the same. This results in deletion of the file.
>
> replace = project.createTask("replace");
>
> f = new java.io.File(file) ;
>
> replace.setFile(f) ;
>
> replace.setToken("@SRC") ;


you have forgotten the closing '@'
  replace.setToken("@SRC@");


Jan

>
> replace.setValue("test") ;
>
> replace.perform() ;
>
>
>
> Where as this is working fine.
>
> <replace file="${file}" token="@SRC" value="test" />
>
>
>
> what cud be the possible reason for this??
>
>
>
> Parimala
>
>
>
>


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


Mime
View raw message