ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian Agnew" <br...@oopsconsultancy.com>
Subject Re: how to use @@ ?
Date Tue, 29 Apr 2008 13:53:37 GMT
If you're doing XML stuff, you could use XMLTask.

http://www.oopsconsultancy.com/software/xmltask/

Specifically for what you want to do, XMLTask can perform a remove and
uncomment.

http://www.oopsconsultancy.com/software/xmltask/#usage.uncomment

Brian

On Tue, April 29, 2008 14:09, Alberto Ivo wrote:
> hello guys...
>
> I just subscribe the list.. this is my very first post here..
>
> I have a situation here... I would like to know how to substitute some
> line
> code via ant. let me explain better:
>
> In my hibernate.cfg.xml I have the lines:
>
>         <!-- Tomcat -->
>         <property
> name="connection.datasource">java:/comp/env/jdbc/pmpcDS</property>
>
>         <!-- Weblogic -->
>         <property name="connection.datasource">jdbc/pmpcDS</property>
>
> When I'm developing, I use the tomcat datasource and comment the weblogic
> datasource, when I generate the WAR to send to the server, I comment the
> tomcat line and take the comment ooff the weblogic line..
>
> I would like to know how to automatize this with ant.. I saw that I could
> substitute the lines with @@linecode@@ but I didn't find anyplace to
> learn..
>
>
> could anyone indicates a good tutorial for that.. or send me a example of
> code??
>
>
> thanks in advance...
>


-- 
Brian Agnew                  http://www.oopsconsultancy.com
OOPS Consultancy Ltd
Tel: +44 (0)7720 397526
Fax: +44 (0)20 8682 0012


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


Mime
View raw message