A build module in Easyant is a logical unit that provides additional pluggable functionality to your build set up. You may choose to use or ignore such a plugin when running the build. A build module is composed, in the least, of a ant file associated with a ivy specs file. So let's write a Hello World plugin.
> easyant skeleton:newplugin
[input] The path where the skeleton project will be unzipped [.] [input] Organisation name of YOUR project [org.apache.easyant.plugins] org.mycompany [input] Module name of YOUR project myplugin [input] Revision number of YOUR project [0.1]
|-- module.ivy `-- src |-- main | `-- resources | `-- myplugin.ant `-- test `-- antunit `-- myplugin-test.xml
This is the init target of myplugin
[organisation]#[module]
org.mycompany#myplugin
...//your stuff here
hello world !
You can also add a "-Dusername=YOU" on the commandline to display a more personal hello message
> easyant publish-local
> easyant publish-shared
> easyant release
> easyant -p
Main targets: ... myplugin:hello display an hello to current user myplugin:helloworld display an hello world ...
[organisation].[module].[artifact].[type].file
org.mycompany.myplugin.myfile.xsl.file
[organisation].[module].[type].file
org.mycompany#myplugin.properties.file
[organisation]#[module].classpath
org.mycompany#myplugin.classpath
...
> easyant test