Friday 10 January 2014

Taskdef in Apache Ant

The 'taskdef' attribute can be used to add a task definition which would then be used in the existing project.

The taskdef tag is an important step you need to know, before I compose a post about automating deployments to tomcat.

It's syntax is similar to the typedef attribute.

Eg:

<taskdef name="start-tomcat" classname="org.apache.catalina.ant.StartTask" />

Observe how we set the classname attribute above.

Official information about Taskdef can be read here.

No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...
eXTReMe Tracker