Hello,

please simply read the ant manual. There is a SQL task with which you can
execute SQL statements.

Regards,

Antoine
----- Original Message ----- 
From: "Shailesh Sharma" <[EMAIL PROTECTED]>
To: "Ant Users List" <user@ant.apache.org>
Sent: Monday, March 13, 2006 10:46 PM
Subject: how to access a SQL database through ANT


> Hi,
>
>   I have a small ANT script that iam using to remote deploy my weblogic
applications.  It uses weblogic.Deployer internally and after deployment, it
backs up my EAR/WAR files in a separate folder.
>
>   Now, I wanted to make an entry in the SQL database after iam done
deploying > backing up files.
>
>   Does somebody know what ant package do i need and if somebody can share
some ant build snippets, that be great.
>
>   thanks, shailesh
>
>
>   </target>
>   <target name="deploy-now-on-testnet">
>       <java classname="weblogic.Deployer" fork="true" maxmemory="256m"
failonerror="true">
>             <classpath>
>                     <pathelement path="${CLASSPATH}"/>
>             </classpath>
>               <arg line="-username system"/>
>             <arg line="-password ${pass.testnet}"/>
>             <arg line="-adminurl ${testnet.admin.url}"/>
>             <arg value="-upload"/>
>             <arg value="-stage"/>
>             <arg value="-${deploy.utility}"/>
>             <arg line="-source ${APP_PATH_TEST}/${source}"/>
>             <arg line="-targets ${sipApplication.target}"/>
>             <sysproperty key="weblogic.home" path="${WL_HOME}"/>
>     </java>
>       <tstamp/>
>       <copy todir="../last-deployed-testnet">
>            <fileset dir="../current-testnet"/>
>            <mapper type="glob" from="*" to="*.${DSTAMP}.${TSTAMP}"/>
>     </copy>
>   </target>
>
>
> ---------------------------------
> Brings words and photos together (easily) with
>  PhotoMail  - it's free and works with Yahoo! Mail.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to