Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
    Bookmark Topic Watch Topic
 
friki data migration
Ranch Hand
Posts: 772
  • Mark post as helpful
  • send pies
  • Report post to moderator
This example shows how to write a simple Ant task. It demonstrates how to access the Project object -the equivalent to the currently executing build file-, and the Target object that called the task. It also accesses data from the build file, both in the form of a property ("name") and a task parameter ("myArg").

See http://ant.apache.org/manual/tutorial-writing-tasks.html for more elaborate examples and explanations.



It would be invoked like this:




CategoryCodeSamples CodeBarn BuildToolsFaq
 
    Bookmark Topic Watch Topic
  • New Topic