bloritsch 2002/12/26 07:52:12
Modified: . .cvsignore
Added: . README.txt build.bat build.sh build.xml
cpappend.bat
lib ant-1.4.1.jar commons-collections-2.0.jar
jdom-b8.jar log4j-1.1.3.jar velocity-1.4-dev.jar
xerces-1.4.4.jar
Log:
make Avalon autonomous--all the build files that Anakia based projects in Avalon CVS
repositories can use just *avalon-site
Revision Changes Path
1.10 +2 -1 jakarta-avalon-site/.cvsignore
Index: .cvsignore
===================================================================
RCS file: /home/cvs/jakarta-avalon-site/.cvsignore,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- .cvsignore 13 Sep 2001 02:18:51 -0000 1.9
+++ .cvsignore 26 Dec 2002 15:52:11 -0000 1.10
@@ -1 +1,2 @@
-emacs-jprj.el
+velocity.log*
+xslt
1.1 jakarta-avalon-site/README.txt
Index: README.txt
===================================================================
$Id: README.txt,v 1.1 2002/12/26 15:52:11 bloritsch Exp $
The files in this directory are for getting you up to speed
quickly if you choose to use this system to render your website.
You can find out more information by going to this website:
http://jakarta.apache.org/site/jakarta-site2.html
thanks!
1.1 jakarta-avalon-site/build.bat
Index: build.bat
===================================================================
@echo off
for %%i in (.\lib\*.jar) do call cpappend.bat %%i
echo CLASSPATH="%_CP%"
java -classpath "%_CP%" org.apache.tools.ant.Main -Dant.home=%_AH% %1 %2 %3
SET _CP=
1.1 jakarta-avalon-site/build.sh
Index: build.sh
===================================================================
#!/bin/sh
if [ "$JAVA_HOME" = "" ] ; then
echo You must set JAVA_HOME to point at your Java Development Kit directory
exit 1
fi
# convert the existing path to unix
if [ "$OSTYPE" = "cygwin32" ] || [ "$OSTYPE" = "cygwin" ] ; then
CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
fi
for i in ./lib/*.jar
do
CLASSPATH=$CLASSPATH:"$i"
done
# convert the unix path to windows
if [ "$OSTYPE" = "cygwin32" ] || [ "$OSTYPE" = "cygwin" ] ; then
CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
fi
BUILDFILE=build.xml
#echo $CLASSPATH
java $ANT_OPTS -classpath "$CLASSPATH" org.apache.tools.ant.Main \
-Dant.home=$ANT_HOME \
-buildfile ${BUILDFILE} \
"$@"
1.1 jakarta-avalon-site/build.xml
Index: build.xml
===================================================================
<project name="build-site" default="docs" basedir=".">
<!-- Initialization properties -->
<property name="project.name" value="site"/>
<property name="docs.src" location="xdocs"/>
<property name="docs.dest" location="docs"/>
<property name="docs.dest.print" location="docs_print"/>
<property name="xslt.dest" location="xslt"/>
<!-- Build classpath -->
<path id="classpath">
<fileset dir="./lib">
<include name="**/*.jar"/>
</fileset>
</path>
<target name="prepare">
<available classname="org.apache.velocity.anakia.AnakiaTask"
property="AnakiaTask.present">
<classpath refid="classpath"/>
</available>
</target>
<target depends="prepare" name="prepare-error" unless="AnakiaTask.present">
<echo>
AnakiaTask is not present! Please check to make sure that
velocity.jar is in your classpath.
</echo>
</target>
<!-- This Target is for output of HTML pages for the web site -->
<target name="docs" depends="prepare-error" if="AnakiaTask.present"
description="Render HTML Pages via Anakia">
<taskdef name="anakia"
classname="org.apache.velocity.anakia.AnakiaTask">
<classpath refid="classpath"/>
</taskdef>
<anakia basedir="${docs.src}" destdir="${docs.dest}/"
extension=".html" style="./site.vsl"
projectFile="stylesheets/project.xml"
excludes="**/stylesheets/** empty.xml"
includes="**/*.xml"
lastModifiedCheck="true"
templatePath="./xdocs/stylesheets">
</anakia>
<copy todir="${docs.dest}/images" filtering="no">
<fileset dir="${docs.src}/images">
<include name="**/*.gif"/>
<include name="**/*.jpeg"/>
<include name="**/*.jpg"/>
</fileset>
</copy>
<!-- In case we have CSS someday
<copy todir="${docs.dest}" filtering="no">
<fileset dir="${docs.src}">
<include name="**/*.css"/>
</fileset>
</copy>
-->
</target>
<!-- This Target is for output of documentation that can be printed -->
<target name="docs_print" depends="prepare-error" if="AnakiaTask.present"
description="Render Printable Pages via Anakia">
<taskdef name="anakia"
classname="org.apache.velocity.anakia.AnakiaTask">
<classpath refid="classpath"/>
</taskdef>
<anakia basedir="${docs.src}" destdir="${docs.dest.print}/"
extension=".html" style="./site_printable.vsl"
projectFile="stylesheets/project.xml"
excludes="**/stylesheets/** empty.xml"
includes="**/*.xml"
lastModifiedCheck="true"
templatePath="./xdocs/stylesheets"
>
</anakia>
<copy todir="${docs.dest.print}/images" filtering="no">
<fileset dir="${docs.src}/images">
<include name="**/*.gif"/>
<include name="**/*.jpeg"/>
<include name="**/*.jpg"/>
</fileset>
</copy>
</target>
<!-- This target is for output of HTML pages via XSLT -->
<!-- Requires JAXP/1.1 (all three JARs) or Xerces+Xalan -->
<target name="xslt"
description="Render HTML Pages via XSLT">
<!-- Create destination directory if necessary -->
<mkdir dir="${xslt.dest}"/>
<!-- Transform the top-level directory -->
<style basedir="${docs.src}"
destdir="${xslt.dest}"
extension=".html"
style="stylesheets/site.xsl"
excludes="empty.xml"
includes="*.xml">
<param name="relative-path" expression="."/>
</style>
<!-- Transform the "site" subdirectory -->
<style basedir="${docs.src}/site"
destdir="${xslt.dest}/site"
extension=".html"
style="../stylesheets/site.xsl"
includes="*.xml">
<param name="relative-path" expression=".."/>
</style>
<!-- Copy static resource files -->
<copy todir="${xslt.dest}/images" filtering="no">
<fileset dir="${docs.src}/images">
<include name="**/*.gif"/>
<include name="**/*.jpeg"/>
<include name="**/*.jpg"/>
</fileset>
</copy>
<!-- Copy CSS stylesheets -->
<copy todir="${xslt.dest}" filtering="no">
<fileset dir="${docs.src}">
<include name="**/*.css"/>
</fileset>
</copy>
</target>
<target name="javadocs"
description="Javadocs is a noop">
<echo>
This project has no Java code, therefore, it has no
javadocs. This target is here to make Gumpy happy.
</echo>
</target>
</project>
1.1 jakarta-avalon-site/cpappend.bat
Index: cpappend.bat
===================================================================
set _CP=%1;%_CP%
1.1 jakarta-avalon-site/lib/ant-1.4.1.jar
<<Binary file>>
1.1 jakarta-avalon-site/lib/commons-collections-2.0.jar
<<Binary file>>
1.1 jakarta-avalon-site/lib/jdom-b8.jar
<<Binary file>>
1.1 jakarta-avalon-site/lib/log4j-1.1.3.jar
<<Binary file>>
1.1 jakarta-avalon-site/lib/velocity-1.4-dev.jar
<<Binary file>>
1.1 jakarta-avalon-site/lib/xerces-1.4.4.jar
<<Binary file>>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>