CleanCode v1.2.07 AntDoc

Press that icon in order to update AntDoc GUI

sourceforgeBuild
Target jsar.menu

jsar.menu

  |
  +--jsar.menu.check
  |
  +--java.compile
    |
    +--init
  |
  +--init

Processes JavaScript files for the CleanCode website menus. First builds a JavaScript archive for the library files, then copies the archive to the release area as the original named file (MenuArchive.js), then as two swappable copies for local/remote use. The menus for local use or release use are swapped in via the toggle.local and toggle.release targets.

Detail:
<target
	depends="init, java.compile, jsar.menu.check"
	name="jsar.menu"
>
	<-- up-to-date handled internally; no 'depends' needed -->

	<java
		classname="com.cleancode.format.JSArchive"
		dir="${jsmenu}"
		fork="true"
	>
		<-- <arg value="-v"/> -->
		<-- verbose -->

		<arg value="-c"/>
		<-- compress -->

		<arg value="-l"/>
		<-- suppress line-breaks -->

		<arg line="-f MenuArchive.js"/>
		<-- Remaining arguments are files to add to the archive -->

		<arg value="nc:${webfiles}/license/mpl-c.txt"/>

		<arg value="nC:../netscape/ua.js"/>

		<arg value="nC:../cooldev/coolmenu.js"/>

		<arg value="nC:../jtricks/BringToFront.js"/>

		<arg value="../cleancode/Util/Version.js"/>

		<arg value="ccmenu.js"/>

		<arg value="../cleancode/Util/NavKeys.js"/>
	</java>
	<-- Copy archive to release dir -->

	<copy
		file="${jsmenu}/MenuArchive.js"
		preservelastmodified="true"
		todir="${mirror}/js"
	/>
	<-- Copy same archive to release version -->

	<copy
		file="${jsmenu}/MenuArchive.js"
		preservelastmodified="true"
		tofile="${mirror}/js/MenuArchive_release.js"
	/>
	<-- Copy modified archive to local version -->

	<pathconvert
		dirsep="/"
		property="mirror.unix"
	>
		<-- ensure we have virgules not backslashes for regex -->

		<path path="${mirror}"/>
	</pathconvert>
	<-- This js variable definition is modified for local use -->

	<property
		name="jsVarName"
		value="MY_ROOT"
	/>

	<copy
		file="${jsmenu}/MenuArchive.js"
		preservelastmodified="true"
		tofile="${mirror}/js/MenuArchive_local.js"
	>
		<filterchain>
			<tokenfilter>
				<-- "file:" protocol required for opera 7.
						Works with or without it in IE 6. -->

				<replaceregex
					pattern="(${jsVarName}\s*=\s*").*?(")"
					replace="\1file://${mirror.unix}\/\2"
				/>
			</tokenfilter>
		</filterchain>
	</copy>
</target>


Edouard Mercier 2003.10.01 21:48:07 - AntDoc V0.8g - XSL Transformer Factory: org.apache.xalan.processor.TransformerFactoryImpl