Usage

To use AntMake , you first have to declare its task. You could define a specific target for it as follows:

< !--

Declares AntMake task.

@return the correctly declared AntMake task.

-- >

< target name="declare.antmake.task" >



< description > Declares AntMake task < /description >



< !--

Defines the < i > AntMake < /i > task.

-- >

< taskdef

name="antmake"

classname="org.acmsl.antmake.AntMakeTask"

classpathref="antmake.classpath"/ >



< /target >

Now you can execute AntMake giving it the information it needs:

< !--

Executes AntMake.

-- >

< antmake

sourcepathref="java.source.path"

classpathref="java.compile.class.path"

liblicensepathref="lib.licenses.path"

destinationfolder="${antmake.outputdir}"

projectname="AntMake"

projectversion="0.1.8"

readmefile="${readme.file}"

authorsfile="${authors.file}"

copyingfile="${copying.file}"/ >

Table 1 - AntMake properties
AntMake properties
Attribute Description Required
sourcepath The path containing the Java source files to export. Usually, the same source path used in javac task. yes
liblicensepath The path containing the licenses of all dependencies. No, not used until 0.1.9
destinationfolder The location where the folder hierarchy will be generated. Yes
projectname The name of the project Yes
projectversion The version of the project Yes
readmefile The location of the README file Yes
authorsfile The location of the AUTHORS file Yes
copyingfile The location of the COPYING file Yes

The source code of AntMake provides a build script used to export the project itself, and which can be used as a reference.