Java Mailing List Archive

http://www.ant-tasks.com/

Home » Ant Users List »

Re: how to use @@ ?

Brian Agnew

2008-04-29

Replies: Find Java Web Hosting

Author LoginPost Reply
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@@(protected)
> 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@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.