Tuesday, 5 April 2016

What are Core Ant tasks ?


File Tasks
<copy>
<concat>
<delete>
<filter>
<fixcrlf>
<get>
<mkdir>
<move>
<replace>
<sync>
<tempfile>
<touch>

Compile Tasks
<javac> 
Compiles the specified source file(s) within the running (Ant) VM, or in another VM if the fork attribute is specified.

<apt>  
Runs the annotation processor tool (apt), and then optionally compiles the original code, and any generated source code.

<rmic>  
Runs the rmic compiler


Archive Tasks
<zip>, <unzip> Creates a zipfile.
<jar>, <unjar> Jars a set of files.
<war>, <unwar> An extension of the Jar task with special treatment web archive dirs
<ear> An extension of the Jar task with special treatment enterprise archive dirs.


Testing Tasks
<junit>  
Runs tests from the JUnit testing framework.

<junitreport> 
Merges the individual XML files generated by the Junit task and applies a stylesheet on the resulting merged document to provide a browsable report of the testcases results.


Property Tasks
<dirname> Sets a property to the value excluding the last path element.
<loadfile> Loads a file into a property.
<propertyfile> Creates or modifies property files.
<uptodate> Sets a property if a given target file is newer than a set of source files.


Miscellaneous Tasks
<echo> Echoes text to System.out or to a file.
<javadoc> Generates code documentation using the javadoc tool.
<sql> Executes a series of SQL statements via JDBC to a database.
Statements can either be read in from a text file using the src attribute, or from between the enclosing SQL tags.

No comments:

Post a Comment

Note: only a member of this blog may post a comment.