ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chaohua Wang" <cw...@incomm.com>
Subject RE: about ant sql connection being pulled out , into a property file
Date Thu, 13 Mar 2008 16:28:44 GMT

Thank you very much
-----Original Message-----
From: Steve Loughran [mailto:stevel@apache.org] 
Sent: Thursday, March 13, 2008 3:52 AM
To: Ant Users List
Subject: Re: about ant sql connection being pulled out , into a property
file

Chaohua Wang wrote:
> 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. 

Look at <presetdef> to define a template you can use and reuse

-- 
Steve Loughran                  http://www.1060.org/blogxter/publish/5
Author: Ant in Action           http://antbook.org/

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



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


Mime
View raw message