Java Mailing List Archive

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

Home » Ant Users List »

about ant sql connection being pulled out , into a property file

Chaohua Wang

2008-03-12

Replies:

Author LoginPost Reply
Folks,

I am using ant sql,



<sql

       driver="net.sourceforge.jtds.jdbc.Driver"

       url="jdbc:jtds:sqlserver://10.3.1.201/Test"

       userid="settle"

       password="settle"

       print="yes"

       classpathref="webtest.path.id"

       output="${tmp.dir}/dbModification.txt"

       >



Because I have a few of ant sql statements, could you tell me how to put
above part into a property file. So there is no duplicate code.

In this part like

<sql refer=@(protected).



Thank you



cwang



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