Working with skeletons of project

EasyAnt comes with a module named skeleton that allows you to create or install project skeletons. This could be pretty useful to quickstart a project.

By default, this module works in interactive mode, which means that easyant will ask you questions for every required property. But you can still give parameters on the command line using -Dproperty.
Interactive mode can be disabled by setting skeleton.interactive.mode=false.

How to create a new project using a project skeleton ?

You must use the :create target.
Example if your skeleton module is imported as "skeleton", you should use :

> easyant skeleton:create
[input] Organisation name of the skeleton project
org.apache.easyant.skeletons
[input] Module name of the skeleton project
std-java-skeleton
[input] Revision number of the skeleton project
0.1
[input] The path where the skeleton project will be unzipped [.]
.
[input] Organization name of YOUR project
foo
[input] Module name of YOUR project
bar
[input] Revision number of YOUR project [0.1]
0.1

How to install a new project skeleton on a repository ?

You must use the :install target.
Example if your skeleton module is imported as "skeleton", you should use :

> easyant skeleton:install

This target will package a directory and publish it on a repository.
If you need to use pattern replacement, you must add a .tpl at the end of your file.

Example :
Supposing we want to create a project called "std-java-skeleton".

List of existing project skeletons

Here you can find a list of skeletons provided by easyant distribution.
Organisation Module Revision Description
org.apache.easyant.skeletons std-java-application 0.1 Project skeleton used to create standard java application
org.apache.easyant.skeletons std-java-webapplication 0.1 Project skeleton used to create standard java web application
org.apache.easyant.skeletons std-ant-plugin 0.1 Project skeleton used to create easyant plugins