|
My lazy header ... | |||||
INDEX: SUMMARY | PROPERTY | DETAIL |
AntDoc
(file: build.xml
)
.
usage
The Ant buildfile that totally manages the AntDoc project.
Now, since the generated site uses PHP, you can test the result by executing the
Main targets
Here comes an overall description of the main targets:
antdoc.release
: makes a release of AntDoc setup from scratch.antdoc.antdoc
: generates AntDoc for some buildfilesantdoc.clean
: totally cleans up the generated stuffantdoc.test
: tests AntDoc on the current buildfileWhat is needed for a new release
In order not to forget anything when releasing a new version, perform the following steps described below.
Spreading the differences to the XSL
Only the AntDocXalan.xsl
file should have been modified: in order to propagate the modifications to the other
XSLs, use the antdoc.xsl.generate
target.
Testing
This is done via the testing Ant buidfiles.
Documentation
Before completing the technical actions, do not forget to consider the following topics:
Versioning
In order to define a new release version for the forthcoming AntDoc delivery:
build.xml
Ant buildfile and the Ant ${VERSION}
and ${DATE}
properties,Cleaning
Call antdoc.clean
in order to clean-up the generated resource and
to force re-compilation from scratch.Compilation
Here come the necessary technical steps to take before releasing a new version of AntDoc/AntDocGUI. If you want some finer
granularity, use the second method. Otherwise, use the first method.
antdoc.release
in order to build all releases (Ant dependant).
This series of technical actions must be performed both from the V1.4.1 Ant runtime environment,
but also from V1.5!
This is done via the antdoc.setup
in order to build the distribution setup of AntDoc
in one go, or follow the next two steps:antdoc.build
in order to yield the signed jars of the tool,antdoc.setup.build
in order to yield the zip distribution of
the tool.src\batch\SetAnt<M.m.µ>.bat
.
Site generation
At last, you need to re-generate the web site via the antdoc.website.generate
.
antdoc.website.generate.hot
, which
will hot-deploy this site on the local PHP server.
Web site upload
At last, you need to upload the web sites (there are two upload locations):
antdoc.website.upload
target or follow the two next
steps:
antdoc.website.upload.http
target,antdoc.website.upload.archive
target.antdoc.javawebstart.ftp
...).
Under development
In order to hot-deploy the current development version of AntDoc, use the antdoc.build.hot
target.
Target Summary | ||
Depends (the depends attribute) |
Runtime (the target executed at runtime) |
Description |
---|---|---|
antdoc.ant.1.4.1.jar.sign |
init |
antdoc.ant.1.4.1.jar.sign Signs the Ant jar files specific to Ant V1.4.1 with Sun certificate.
The
saxon.jar and jdom.jar must be present in the Ant lib directory!
|
antdoc.ant.1.5.jar.sign |
init |
antdoc.ant.1.5.jar.sign Signs the Ant jar files specific to Ant V1.5 with Sun certificate
The
saxon.jar and jdom.jar must be present in the Ant lib directory!
|
antdoc.ant.jar.sign |
init |
antdoc.ant.jar.sign Signs the non-version-specific Ant jar files with Sun certificate.
The
saxon.jar and jdom.jar must be present in the Ant lib directory!
|
antdoc.antdoc |
init |
antdoc.antdoc Tests the Ant AntDoc task. Generates the HTML stuff in the${TEMPORARY_ROOT_DIRECTORY_PATH}/antdoc directory.
|
antdoc.api.document |
init |
antdoc.api.document Generates the HTML pages that shows the usage of the AntDoc API.
The target requires that Java2HTML j2h.jar V1.3.1+ (http://www.vaegar.f9.co.uk) library be present in Ant library directory.
|
antdoc.build |
init |
antdoc.build Generates AntDoc full distribution and deploys it in situ The are several things to perform before release a new version. Some concern AntDoc, some other concern AntDocGUI.AntDoc
AntDocGUI
|
antdoc.build.hot |
init |
antdoc.build.hot Hot-deploys in situ the latest version of generated AntDoc artifacts. Use this target under development for hot deployment of the latest version of AntDoc.The artifacts will not be signed with this target. |
antdoc.cab |
init |
antdoc.cab Makes a Microsoft cabinet file of AntDoc.
You need to have installed Microsoft SDK V4.0, and its bin directory to be present in the PATH
environment variable in order to execute this target.
|
antdoc.cab.sign |
init |
antdoc.cab.sign Signs the AntDoc cab file with Microsoft certificate. Seeantdoc.cab for the prerequisites, which are the same.
|
antdoc.classpath |
init |
antdoc.classpath Defines the paths useful when compiling, running Java classes, generate JavaDoc. This target enables to centralize where the necessary classpaths are defined. TheAPPLET_CLASSPATH and FULL_CLASSPATH
paths are being defined.
The target will fail is some mandatory resources are missing, like some jar libraries.
|
antdoc.compile |
init |
antdoc.compile Compiles the whole AntDoc source code. The Ant installation "lib" directory must contain the following extra libraries so that the Java compilation works:
|
antdoc.compile.applet |
init |
antdoc.compile.applet Compiles the applet for AntDoc. This target enables to centralize where the necessary classpaths are defined. TheAPPLET_CLASSPATH and FULL_CLASSPATH
paths are being defined.
The target will fail is some mandatory resources are missing, like some jar libraries.
|
antdoc.compile.core |
init |
antdoc.compile.core Compiles the core of AntDoc. |
antdoc.compile.gui |
init |
antdoc.compile.gui Compiles AntDocGUI source code. |
antdoc.compile.ideaplugin |
init |
antdoc.compile.ideaplugin Compiles the AntDocGUI plugin for IDEA. |
antdoc.compile.pre |
init |
antdoc.compile.pre Prepares the compilation for the AntDoc source code compilation. |
antdoc.compile.properties |
init |
antdoc.compile.properties Creates the AntDoc properties file from the pattern one. |
antdoc.compile.task |
init |
antdoc.compile.task Compiles the AntDoc Ant task. |
antdoc.html.manual |
init |
antdoc.html.manual Copies and modifies the HTML AntDoc manual in the temporaray directory. This target creates the${TEMPORARY_DIRECTORY_PATH} directory if necessary. It also read the Java ${TEMPORARY_REPLACE_DIRECTORY_PATH}/${ANTDOC_PROPERTIES_FILE}
properties file.
|
antdoc.idea.plugin.deploy |
init |
antdoc.idea.plugin.deploy Deploys the IDEA plugin for AntDocGUI. |
antdoc.javadoc |
init |
antdoc.javadoc Generates the JavaDoc of the AntDoc/AntDocGUI public API. Use this target in order to understand how to use AntDoc in your Java code: this should be a good entry point since the code is reasonably well documented. |
antdoc.javadoc.antdoc |
init |
antdoc.javadoc.antdoc Generates the Antdoc documentation of the AntDoc task. This target uses the AntDoc other project. |
antdoc.javadoc.private |
init |
antdoc.javadoc.private Generates the JavaDoc of the whole project. This target is dedicated to the developer. |
antdoc.javawebstart |
init |
antdoc.javawebstart Creates the AntDoc JNLP deployment file for Java Web Start. |
antdoc.javawebstart.ftp |
init |
antdoc.javawebstart.ftp Updates the FTP site for AntDoc concerning Java Web Start. AntDoc.jar and the JNLP file are uploaded. Does not generate the jar file nor the JNLP file (you need to invoke antdoc.build and antdoc.antdoc.javawebstart beforehand! |
antdoc.jindent |
init |
antdoc.jindent Beautifies the Java source code |
antdoc.jmetra |
init |
antdoc.jmetra Generates metrics concerning the Java code This task requires jmetra.jar from jmetra. |
antdoc.package |
init |
antdoc.package Creates a stand-alone AntDocGUI package. Seeantdoc.cab for the prerequisites, which are the same.
|
antdoc.release |
init |
antdoc.release Builds old AntDoc releases (depending on Ant) from scratch. This target first cleans the project temporary artifacts, compiles the source code and then makes a setup for distribution. |
antdoc.release.ant |
init |
antdoc.release.ant Builds a Ant specific AntDoc release from scratch. The Ant${ANT_VERSION} property defines the Ant version for which the release must be built.
|
antdoc.setup |
init |
antdoc.setup Builds the AntDoc distribution setup. This target first cleans the project temporary artifacts, compiles the source code and then makes a setup for distribution. |
antdoc.vizant |
init |
antdoc.vizant The task that generates graphical targets dependencies of an Ant buildfile This target has been defined because the three XSL files used by AntDoc only differ by minor things. Those files are:
${TEMPORARY_ROOT_DIRECTORY_PATH} directory.
|
antdoc.website.example |
init |
antdoc.website.example Generates some Ant documentation example to put on AntDoc web site This task uses the ${WEBSITE_GENERATED_DIRECTORY_PATH} property, which is the root directory where the website is being generated. |
antdoc.website.generate |
init |
antdoc.website.generate Generates AntDoc website: this is the new way to do it with WedSitor. The target requires that WedSitor WedSitor.jar (http://wedsitor.free.fr) library be present in Ant library directory. Seeantdoc.website.generate.pre for other requirements.
This makes a full generation of the AntDoc official web site. The result directory of the generated stuff can be uploaded on internet.
The |
antdoc.website.generate.hot |
init |
antdoc.website.generate.hot Generates AntDoc website and hot-deploys it locally. This is the same target asantdoc.website.generate , except that the site
is hot-deployed under my local PHP server.
Override the Ant
${WWW_ROOT_PATH} property in order to specify in what www directory the generated files should
be output.
|
antdoc.website.generate.html |
init |
antdoc.website.generate.html Generates AntDoc website HTML pages. This makes a full generation of the AntDoc official web site, but in HTML, and this is why the result of this target execution should be kept private. |
antdoc.website.generate.post |
init |
antdoc.website.generate.post Copies the resources that should be added to the generated site directory. This task uses the ${WEBSITE_GENERATED_DIRECTORY_PATH} property, which is the root directory where the website is being generated. |
antdoc.website.generate.pre |
init |
antdoc.website.generate.pre Makes sure that all libraries are being present so as to generate the website. This task fails is some jar library necessary for the web site generation is missing. |
antdoc.website.upload |
init |
antdoc.website.upload Uploads all AntDoc web site stuff. You must have calledantdoc.setup.build if you want AntDoc distribution
to have been rebuilt beforehand.
|
antdoc.website.upload.archive |
init |
antdoc.website.upload.archive Uploads the official AntDoc archive web site. You must have calledantdoc.setup.build if you want AntDoc distribution
to have been rebuilt beforehand.
|
antdoc.website.upload.http |
init |
antdoc.website.upload.http Uploads the official AntDoc HTTP website. You must have calledantdoc.website.generate if you want the website
to have been generated beforehand.
|
antdoc.xsl.generate |
init |
antdoc.xsl.generate Generates the AntDoc XSL files from AntDocXalan.xsl. This target has been defined because the three XSL files used by AntDoc only differ by minor things. Those files are:
${TEMPORARY_ROOT_DIRECTORY_PATH} directory.
|
fail.unless |
fail.unless |
fail.unless Helper generic target that fails if an Ant property is not defined. This target has been created just because Ant V1.4.1 does not provide thefail unless attribute
facility.
The Ant |
fail.unless.bis |
fail.unless.bis |
fail.unless.bis Helper target of the 'fail.unless' target. Seefail.unless .
|
usage |
usage |
usage Outputs the usage of this buildfile. This target is aimed at providing a usage of the current Ant buidlfile. |
Top Property |
<property location="C:\win32app\Programming\IntelliJ-IDEA-3.0.5" name="IDEA_HOME_PATH" /> <property location="C:\win32app\Programming\jdk1.3.1_07" name="JDK1.3_HOME_PATH" /> <property location="C:\win32app\Programming\j2sdk1.4.2" name="JDK1.4_HOME_PATH" /> <property location="F:\win32app\Programming\EasyPHP\www" name="WWW_ROOT_PATH" /> |
Target Detail |
|
... is just like my footer! | |||||
INDEX: SUMMARY | PROPERTY | DETAIL |
com.icl.saxon.TransformerFactoryImpl