My lazy header ...

AntDoc
Target antdoc.compile.applet

antdoc.compile.applet
  |
  +--antdoc.classpath
    |
    +--init

Compiles the applet for AntDoc.

This target enables to centralize where the necessary classpaths are defined. The APPLET_CLASSPATH and FULL_CLASSPATH paths are being defined. The target will fail is some mandatory resources are missing, like some jar libraries.

Detail:
<target
	depends="antdoc.classpath"
	description="Compiles the applet for AntDoc."
	name="antdoc.compile.applet"
>
	<--
                        			optimize="on"
                        		-->

	<mkdir dir="${JAVA_CLASS_DIRECTORY_PATH}/applet"/>

	<echo level="info">Compiling the applet with javac executable '${JDK1.3_JAVAC_FILE_PATH}'</echo>

	<javac
		debug="on"
		destdir="${JAVA_CLASS_DIRECTORY_PATH}/applet"
		executable="${JDK1.3_JAVAC_FILE_PATH}"
		fork="true"
		includeAntRuntime="false"
	>
		<src path="${JAVA_SOURCE_DIRECTORY_PATH}"/>

		<include name="${ED_PACKAGE_PATH}/ant/AntDocApplet.java"/>

		<classpath>
			<path refid="APPLET_CLASSPATH"/>
		</classpath>
	</javac>

	<delete file="${ANTDOC_APPLET_JAR_FILE_PATH}"/>

	<jar
		jarfile="${ANTDOC_APPLET_JAR_FILE_PATH}"
		update="false"
	>
		<fileset dir="${JAVA_CLASS_DIRECTORY_PATH}/applet">
			<include name="**/*"/>
		</fileset>
	</jar>
</target>

... is just like my footer!

Edouard Mercier 2003.12.08 20:31:08 - AntDoc V0.8h - XSL Transformer Factory: com.icl.saxon.TransformerFactoryImpl