Skip to main content

Posts

Showing posts from March, 2014

Some Advanced Ant Tasks (ANT Part-5)

In our last posts we have seen 
What is Ant("Another Neat Tool")?How to configure it in your machineCreate,Delete and Compile by ANTSome Core Ant Tasks  (ANT Part-4)
Sleep: If you want some gap between two tasks or want some pause then  this task is used to sleep the build process for a while. We can use milliseconds,seconds and hours also in aatribute. 

<sleep milliseconds="10"/> 

 Sql: To execute some query or after finishing a task you want to update some column in any table or want to fire any type of query then this task is used to execute SQL commands using Java JDBC connectivity.  <sql   driver="jdbc driver name"   url="jdbc url"   userid="ui"   password="pass"   >  insert  insert into aots_users values (1, "aots1");  </sql> 
FTP: After creating any patch or folder you want to copy it on nay FTP to allow others to access it from another location then this task is used to ftp files to a ftp server  <ftp …

Some Core Ant Tasks (ANT Part-4)

In our last post we have seen 
What is Ant("Another Neat Tool")?How to configure it in your machineCreate,Delete and Compile by ANTNow we will see some core task which can be performed by using ANT. Below are some of the most useful tasks .

GUnzip: This task is used to unzip and expand the tar files with gz
extensions. These files are unziped in the current folder.

<gunzip src="abc.tar.gz" dest="aaa.tar"/> 



Gzip: This task is used to zip the source files using GZip  algorithms. The source(src) and the destination (destfile or zipfiles) attributes are mandatory  <gzip src="aaa.tar" destfile="abc.tar.gz"/> 

Copy: Copy a file to a new file or to a new folder.  <copy file="copythis.txt" tofile="tothis.txt"/> 

Delete: This task is used to delete a folder , file and folder's entire sub directories. the properties used with delete are includes, includesfile, excludes, excludesfile or defaultexcludes to add or…