Here's the part
of the Hibernate2 build file which does this:
<target name="fetchwikidoc" description="Fetch current Wiki snapshot if Internet connection exists">
<echo message="Fetching Wiki snapshot from bluemars.net"/>
<mkdir dir="${dist.dir}"/>
<get src=""http://hibernate.bluemars.net/wiki_snapshot.tar.gz">http://hibernate.bluemars.net/wiki_snapshot.tar.gz"
ignoreerrors="true"
dest="${dist.dir}/wiki_snapshot.tar.gz" verbose="true" />
<available file="${dist.dir}/wiki_snapshot.tar.gz" property="wiki-snapshot-exists"/>
</target>
<target name="wikidoc"
description="Fetch current Wiki snapshot and extract it"
depends="splash,fetchwikidoc"
if="wiki-snapshot-exists">
<gunzip src=""/>
<untar src="" dest="${dist.dir}"/>
<delete file="${dist.dir}/wiki_snapshot.tar.gz"/>
<delete file="${dist.dir}/wiki_snapshot.tar"/>
<!-- the webserver has a different directory structure -->
<delete dir="${dist.doc.dir}/hib_docs"/>
<replace dir="${dist.doc.dir}" token="hib_docs/" value="">
<include name="**/*.html"/>
</replace>
</target>
Mike, or anyone who might know, can we get the wiki docs in a tar.gz like this too? I wonder if there's any way to just get certain ones, like all of them about XWork and all of the about WebWork2...
-----Original Message-----
From: Eliot Sykes [mailto:[EMAIL PROTECTED]
Sent: Friday, August 15, 2003 5:56 AM
To: [EMAIL PROTECTED]
Subject: RE: [OS-webwork] WW2/Xwork DocsI *think* I noticed Hibernate2 build.xml does this for their wiki. Sorry at work at the mo and can't investigate further til I get home...