Author: cziegeler Date: Thu Jan 13 04:43:25 2005 New Revision: 125074 URL: http://svn.apache.org/viewcvs?view=rev&rev=125074 Log: Minor sync with 2.1.x Modified: cocoon/trunk/tools/bin/create-repository-jars.sh cocoon/trunk/tools/ide/eclipse/blocks-classpath.xsl cocoon/trunk/tools/ide/eclipse/classpath-tmpl.xml cocoon/trunk/tools/targets/admin-build.xml cocoon/trunk/tools/targets/compile-build.xml cocoon/trunk/tools/targets/dist-build.xml cocoon/trunk/tools/targets/docs-build.xml cocoon/trunk/tools/targets/forrest-build.xml cocoon/trunk/tools/targets/ide-build.xml cocoon/trunk/tools/targets/init-build.xml cocoon/trunk/tools/targets/samples-build.xml cocoon/trunk/tools/targets/standalone-demo-build.xml cocoon/trunk/tools/targets/test-build.xml cocoon/trunk/tools/targets/tools-build.xml cocoon/trunk/tools/targets/upgrade-build.xml cocoon/trunk/tools/targets/validate-build.xml cocoon/trunk/tools/targets/webapp-build.xml
Modified: cocoon/trunk/tools/bin/create-repository-jars.sh Url: http://svn.apache.org/viewcvs/cocoon/trunk/tools/bin/create-repository-jars.sh?view=diff&rev=125074&p1=cocoon/trunk/tools/bin/create-repository-jars.sh&r1=125073&p2=cocoon/trunk/tools/bin/create-repository-jars.sh&r2=125074 ============================================================================== --- cocoon/trunk/tools/bin/create-repository-jars.sh (original) +++ cocoon/trunk/tools/bin/create-repository-jars.sh Thu Jan 13 04:43:25 2005 @@ -1,6 +1,6 @@ #!/bin/sh -x -# Copyright 2004 The Apache Software Foundation +# Copyright 2004-2005 The Apache Software Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -22,46 +22,37 @@ # - build all jars and the war file # - copy all jars and the war to the appropriate locations (repository structure) -# The cvs repository name -if [ "$REPOSITORY_NAME" = "" ]; then - REPOSITORY_NAME=cocoon-2.1 -fi - -# What is the default revision/branch/tag to use -# In case of a HEAD revision a SNAPSHOT version will be created and -# any old snapshots will be removed to save some space -if [ "$REVISION" = "" ]; then - REVISION="" # it's a HEAD -fi - -# What is the default CVSROOT to be used for checkout -if [ "$CVSROOT" = "" ]; then - CVSROOT=":pserver:[EMAIL PROTECTED]:/home/cvspublic" -fi - -# Where is the local cocoon cvs repository we use to maintain. -# If this directory doesn't exists it will do a -# 'cvs -d $CVSROOT co -Pd $LOCAL_REPOSITORY -r $REVISION $REPOSITORY_NAME' -# to create it. -# -# If it exists it will do a -# 'cvs upd -dPACr $REVISION' -# in there to update to the requested revision (see REVISION below) -if [ "$LOCAL_REPOSITORY" = "" ]; then - LOCAL_REPOSITORY=$HOME/cvs/cocoon-2.1 +# The path to the local repository we maintain +if [ "$LOCAL_PATH" = "" ]; then + LOCAL_PATH="$PWD" +fi + +# The base URL to the SVN repository +if [ "$SVN_BASE_URL" = "" ]; then + SVN_BASE_URL=https://svn.apache.org/repos/asf/cocoon fi # On which host should the artifacts be published -if [ "$REMOTEHOST" = "" ]; then - REMOTEHOST=www.apache.org +if [ "$REMOTE_HOST" = "" ]; then + REMOTE_HOST=www.apache.org +fi + +# The path to the remote repository +if [ "$REMOTE_PATH" = "" ]; then + REMOTE_PATH=/www/www.apache.org/dist/java-repository/cocoon fi -# Where is the path on the remote host the repository is located at -if [ "$REMOTEPATH" = "" ]; then - REMOTEPATH=/www/www.apache.org/dist/java-repository/cocoon +# The SVN URL part indicating the HEAD of development +if [ "$HEAD_SUB_URL" = "" ]; then + HEAD_SUB_URL=trunk fi -# Where is the md5sum command to be used +# The SVN URL part pointing to the revision/branch/tag to use +if [ "$REVISION_SUB_URL" = "" ]; then + REVISION_SUB_URL=$HEAD_SUB_URL +fi + +# The MD5 sum utility if [ "$MD5SUM" = "" ]; then MD5SUM=/sbin/md5 fi @@ -76,91 +67,105 @@ $JAVA_HOME/bin/java -version # parse for options -NOCVS=0 +NOSVN=0 NOBUILD=0 NOCLEAN=0 NOJARS=0 NOWAR=0 BUILD_SRC_DIST=0 -while getopts ":BCdhJkW" option +while getopts ":BdhJkSW" option do case $option in B) NOBUILD=1;; - C) NOCVS=1;; d) BUILD_SRC_DIST=1;; - h) echo "Usage: `basename $0` [-B] [-C] [-d] [-J] [-h] [-k] [-W] [RELEASE-TAG]" + h) echo "Usage: `basename $0` options [-S] [-B] [-h] [TAG-Path]" + echo " -S don't do a svn update" echo " -B don't do a build" - echo " -C don't do a cvs update" echo " -d build a src dist" echo " -h this usage note" echo " -J don't deploy the jar files" echo " -k keep the build tree (don't do a clean-dist)" echo " -W don't deploy the war file" - echo " RELEASE-TAG the tag to do a cvs update for" - echo " if the RELEASE-TAG is HEAD a snapshot version" + echo " TAG-Path the path to do a svn Tag or Branch from (excluding the base url)" + echo " if the TAG-Path equals to HEAD a snapshot version" echo " will be produced" + echo + echo " Settings:" + echo " LOCAL_PATH: $LOCAL_PATH" + echo " SVN_BASE_URL: $SVN_BASE_URL" + echo " REMOTE_PATH: $REMOTE_PATH" + echo " HEAD_SUB_URL: $HEAD_SUB_URL" + echo " REVISION_SUB_URL: $REVISION_SUB_URL" + echo " MD5SUM: $MD5SUM" + echo " JAVA_HOME: $JAVA_HOME" exit 0 ;; J) NOJARS=1;; k) NOCLEAN=1;; + S) NOSVN=1;; W) NOWAR=1;; * ) echo "Unimplemented option $option chosen.";; esac done - shift $(($OPTIND - 1)) -if [ "$1" != "" -a "$1" != "HEAD" ]; then - REVISION=$1 + +# check if a different revision/branch/tag was specified on the command line +if [ ! -z "$1" ]; then + REVISION_SUB_URL=$1 fi # check if the local repository exists and do a checkout/update accordingly -if [ -d "$LOCAL_REPOSITORY" ]; then - cd $LOCAL_REPOSITORY - if [ $NOCVS = 0 ]; then +if [ -d "$LOCAL_PATH" -a -d "$LOCAL_PATH/.svn" ]; then + cd $LOCAL_PATH + if [ $NOSVN = 0 ]; then echo - echo "updating the local repository at $LOCAL_REPOSITORY with" - if [ "$REVISION" = "" ]; then - echo " cvs up -dPAC" - echo - cvs up -dPAC - else - echo " cvs up -dPACr $REVISION" - echo - cvs up -dPACr $REVISION - fi + echo "updating the local repository at $LOCAL_PATH with" + echo " svn switch ${SVN_BASE_URL}/$REVISION_SUB_URL" + echo + svn switch ${SVN_BASE_URL}/$REVISION_SUB_URL fi +elif [ -d "$LOCAL_PATH" ]; then + cd $LOCAL_PATH + echo + echo "checking out into the local repository at $LOCAL_PATH with " + echo " svn co ${SVN_BASE_URL}/$REVISION_SUB_URL $LOCAL_PATH" + echo + svn co ${SVN_BASE_URL}/$REVISION_SUB_URL $LOCAL_PATH else - DIRNAME=`dirname $LOCAL_REPOSITORY` - BASENAME=`basename $LOCAL_REPOSITORY` + DIRNAME=`dirname $LOCAL_PATH` + BASENAME=`basename $LOCAL_PATH` if [ ! -d $DIRNAME ]; then mkdir -p $DIRNAME 2>/dev/null >/dev/null fi cd $DIRNAME echo - echo "checking out into the local repository at $LOCAL_REPOSITORY with " - if [ "$REVISION" = "" ]; then - echo " cvs -d $CVSROOT co -Pd $LOCAL_REPOSITORY $REPOSITORY_NAME" - echo - cvs -d $CVSROOT co -Pd $BASENAME $REPOSITORY_NAME - else - echo " cvs -d $CVSROOT co -Pd $LOCAL_REPOSITORY -r $REVISION $REPOSITORY_NAME" - echo - cvs -d $CVSROOT co -Pd $BASENAME -r $REVISION $REPOSITORY_NAME - fi - cd $LOCAL_REPOSITORY + echo "checking out into the local repository at $LOCAL_PATH with " + echo " svn co ${SVN_BASE_URL}/$REVISION_SUB_URL $BASENAME" + echo + svn co ${SVN_BASE_URL}/$REVISION_SUB_URL $BASENAME + cd $LOCAL_PATH fi # cleanup the repository, prepare and do a build if not suppressed by command line option -RC=0 # set in advace in case we don't do a build -if [ $NOBUILD = 0 ]; then - # build the local.blocks.properties file +if [ "$NOBUILD" -eq 0 ]; then + echo + echo "clean the local repository" + echo + ./build.sh clean-dist + find . -type f -name "*~" | xargs rm -f 2>/dev/null 1>/dev/null + find . -type f -name ".#*" | xargs rm -f 2>/dev/null 1>/dev/null + find . -type f -name "#*#" | xargs rm -f 2>/dev/null 1>/dev/null + find . -type f -name "*.bak" | xargs rm -f 2>/dev/null 1>/dev/null + find . -type f -name "*.BAK" | xargs rm -f 2>/dev/null 1>/dev/null + + # build the blocks.properties file echo echo "generating local.blocks.properties file" echo cat blocks.properties \ >local.blocks.properties - # build the local.build.properties file + # build the build.properties file echo echo "generating local.build.properties file" echo @@ -168,11 +173,15 @@ | sed 's/#exclude.webapp.documentation/exclude.webapp.documentation/' \ | sed 's/#exclude.webapp.javadocs/exclude.webapp.javadocs/' \ | sed 's/#exclude.webapp.samples/exclude.webapp.samples/' \ + | sed 's/#exclude.webapp.test-suite/exclude.webapp.test-suite/' \ | sed 's/#exclude.documentation/exclude.documentation/' \ | sed 's/#exclude.javadocs/exclude.javadocs/' \ - | sed 's/#exclude.validate.xdocs/exclude.validate.xdocs/' \ | sed 's/#config.allow-reloads/config.allow-reloads/' \ - | sed 's/#config.enable-uploads/config.enable-uploads/' >local.build.properties + | sed 's/#config.enable-uploads/config.enable-uploads/' \ + | sed 's/#exclude.validate.config/exclude.validate.config/' \ + | sed 's/#exclude.validate.xdocs/exclude.validate.xdocs/' \ + | sed 's/#exclude.validate.jars/exclude.validate.jars/' \ + >local.build.properties # build everything echo @@ -184,9 +193,9 @@ CLEAN="" fi echo - ./build.sh $CLEAN webapp war | tee $LOCAL_REPOSITORY/build.log + ./build.sh $CLEAN webapp war | tee $LOCAL_PATH/build.log # The build script dosn't report on failures so we have to do that by hand - tail -10 $LOCAL_REPOSITORY/build.log|grep "BUILD SUCCESSFUL" + tail -10 $LOCAL_PATH/build.log|grep "BUILD SUCCESSFUL" if [ $? = 0 ]; then RC=0 else @@ -199,9 +208,9 @@ exit $RC fi -# copy all the jars produced over to the remote repository space +# copy all the jars produced over to the web server space VERSION=`ls build | grep cocoon | sed s/cocoon-//` -if [ "$REVISION" = "" ]; then +if [ "$REVISION_SUB_URL" == "$HEAD_SUB_URL" ]; then TVERSION=`date "+%Y%m%d.%H%M%S"` else TVERSION=$VERSION @@ -209,8 +218,8 @@ if [ $NOJARS = 0 ]; then # create the target directory if they do not exists and make them group writable - ssh $REMOTEHOST "mkdir -p $REMOTEPATH/jars 2>/dev/null >/dev/null; \ - chmod -R g+w $REMOTEPATHi/jars" + ssh $REMOTE_HOST "mkdir -p $REMOTE_PATH/jars 2>/dev/null >/dev/null; \ + chmod -R g+w $REMOTE_PATH/jars" JARS=`find build/cocoon-$VERSION -name "*.jar"` for i in $JARS; do FILE=`echo $i | sed 's/.*[/]//' | sed s/[.]jar//` @@ -220,73 +229,95 @@ else BLOCKPART=`echo $FILE | sed 's/cocoon//'` fi - if [ "$REVISION" = "" ]; then + if [ "$REVISION_SUB_URL" == "$HEAD_SUB_URL" ]; then # remove all snapshots in the remote repository - SNAPSHOT=`ssh $REMOTEHOST "ls $REMOTEPATH/jars/cocoon$BLOCKPART-????????.??????.jar 2>/dev/null"` + SNAPSHOT=`ssh $REMOTE_HOST "ls $REMOTE_PATH/jars/cocoon$BLOCKPART-????????.??????.jar 2>/dev/null"` fi - scp $i $REMOTEHOST:$REMOTEPATH/jars/cocoon$BLOCKPART-$TVERSION.jar - if [ "$REVISION" = "" ]; then + scp $i $REMOTE_HOST:$REMOTE_PATH/jars/cocoon$BLOCKPART-$TVERSION.jar + if [ "$REVISION_SUB_URL" == "$HEAD_SUB_URL" ]; then if [ ! -z "$SNAPSHOT" ]; then - RM="rm $SNAPSHOT;" + RM="rm ${SNAPSHOT}\*;\ + rm $REMOTE_PATH/jars/cocoon$BLOCKPART-snapshot.version;" else RM="" fi CMD="$RM \ - cd $REMOTEPATH/jars; \ - ln -fs cocoon$BLOCKPART-$TVERSION.jar cocoon$BLOCKPART-SNAPSHOT.jar; \ + cd $REMOTE_PATH/jars; \ + rm cocoon$BLOCKPART-SNAPSHOT.jar; \ + ln -s cocoon$BLOCKPART-$TVERSION.jar cocoon$BLOCKPART-SNAPSHOT.jar; \ echo $TVERSION >cocoon$BLOCKPART-snapshot.version;" else CMD="" fi - ssh $REMOTEHOST "$CMD \ - $MD5SUM <$REMOTEPATH/jars/cocoon$BLOCKPART-$TVERSION.jar | \ - sed 's/ .*$//' >$REMOTEPATH/jars/cocoon$BLOCKPART-$TVERSION.jar.md5; \ - chmod g+w $REMOTEPATH/jars/cocoon$BLOCKPART-$TVERSION.*" + ssh $REMOTE_HOST "$CMD \ + $MD5SUM <$REMOTE_PATH/jars/cocoon$BLOCKPART-$TVERSION.jar | \ + sed 's/ .*$//' >$REMOTE_PATH/jars/cocoon$BLOCKPART-$TVERSION.jar.md5; \ + chmod g+w $REMOTE_PATH/jars/cocoon$BLOCKPART-$TVERSION.*" done fi # copy the war file to the web space if [ "$NOWAR" = "0" ]; then # create the target directory if they do not exists and make them group writable - ssh $REMOTEHOST "mkdir -p $REMOTEPATH/wars 2>/dev/null >/dev/null; \ - chmod -R g+w $REMOTEPATH/wars" + ssh $REMOTE_HOST "mkdir -p $REMOTE_PATH/wars 2>/dev/null >/dev/null; \ + chmod -R g+w $REMOTE_PATH/wars" WAR=build/cocoon-$VERSION/cocoon.war - if [ "$REVISION" = "" ]; then - SNAPSHOT=`ssh $REMOTEHOST "ls $REMOTEPATH/wars/cocoon-war-????????.??????.war 2>/dev/null"` + if [ "$REVISION_SUB_URL" == "$HEAD_SUB_URL" ]; then + SNAPSHOT=`ssh $REMOTE_HOST "ls $REMOTE_PATH/wars/cocoon-war-????????.??????.war 2>/dev/null"` fi - scp $WAR $REMOTEHOST:$REMOTEPATH/wars/cocoon-war-$TVERSION.war - if [ "$REVISION" = "" ]; then + scp $WAR $REMOTE_HOST:$REMOTE_PATH/wars/cocoon-war-$TVERSION.war + if [ "$REVISION_SUB_URL" == "$HEAD_SUB_URL" ]; then if [ ! -z "$SNAPSHOT" ]; then - RM="rm $SNAPSHOT;" + RM="rm ${SNAPSHOT}\*;\ + rm $REMOTE_PATH/wars/cocoon-war-snapshot.version;" else RM="" fi CMD="$RM \ - cd $REMOTEPATH/wars; \ - ln -fs cocoon-war-$TVERSION.war cocoon-war-SNAPSHOT.war; \ + cd $REMOTE_PATH/wars; \ + rm cocoon$BLOCKPART-SNAPSHOT.war; \ + ln -s cocoon-war-$TVERSION.war cocoon-war-SNAPSHOT.war; \ echo $TVERSION >cocoon-war-snapshot.version;" else CMD="" fi - ssh $REMOTEHOST "$CMD \ - $MD5SUM <$REMOTEPATH/wars/cocoon-war-$TVERSION.war | \ - sed 's/ .*$//' >$REMOTEPATH/jars/cocoon-war-$TVERSION.jar.md5; \ - chmod g+w $REMOTEPATH/jars/cocoon-war-$TVERSION.*" + ssh $REMOTE_HOST "$CMD \ + $MD5SUM <$REMOTE_PATH/wars/cocoon-war-$TVERSION.war | \ + sed 's/ .*$//' >$REMOTE_PATH/wars/cocoon-war-$TVERSION.war.md5; \ + chmod g+w $REMOTE_PATH/wars/cocoon-war-$TVERSION.*" fi # create a distribution if [ "$BUILD_SRC_DIST" = "1" ]; then # create the target directory if they do not exists and make them group writable - ssh $REMOTEHOST "mkdir -p $REMOTEPATH/distributions 2>/dev/null >/dev/null; \ - chmod -R g+w $REMOTEPATH/distributions" - ./build.sh clean-dist - cd .. - if [ "$REVISION" = "" ]; then - TVERSION=SNAPSHOT + ssh $REMOTE_HOST "mkdir -p $REMOTE_PATH/distributions 2>/dev/null >/dev/null; \ + chmod -R g+w $REMOTE_PATH/distributions" + ./build.sh dist + cd dist + if [ "$REVISION_SUB_URL" == "$HEAD_SUB_URL" ]; then + SNAPSHOT=`ssh $REMOTE_HOST "ls $REMOTE_PATH/distributions/cocoon-src-????????.??????.zip 2>/dev/null"` + if [ ! -z "$SNAPSHOT" ]; then + RM="rm ${SNAPSHOT}\*;\ + rm $REMOTE_PATH/distributions/cocoon-src-snapshot.version;" + else + RM="" + fi + CMD="$RM \ + cd $REMOTE_PATH/distributions; \ + rm cocoon-src-SNAPSHOT.zip; \ + ln -s cocoon-src-$TVERSION.zip cocoon-src-SNAPSHOT.zip; \ + echo $TVERSION >cocoon-src-snapshot.version;" + ln -s cocoon-$TVERSION cocoon-src-SNAPSHOT + zip -qr $REMOTE_PATH/distributions/cocoon-src-$TVERSION.zip cocoon-src-SNAPSHOT + else + CMD="" + ln -s cocoon-$TVERSION cocoon-src-$TVERSION + zip -qr cocoon-src-$TVERSION.zip cocoon-src-$TVERSION fi - ln -sf $REPOSITORY_NAME cocoon-src-$TVERSION - zip -r cocoon-src-$TVERSION.zip cocoon-src-$TVERSION - rm cocoon-src-$TVERSION - scp cocoon-src-$TVERSION.zip $REMOTEHOST:$REMOTEPATH/distributions/cocoon-src-$TVERSION.zip - rm cocoon-src-$TVERSION.zip + scp cocoon-src-$TVERSION.zip $REMOTE_HOST:$REMOTE_PATH/distributions/cocoon-src-$TVERSION.zip + ssh $REMOTE_HOST "$CMD \ + $MD5SUM <$REMOTE_PATH/distributions/cocoon-src-$TVERSION.zip | \ + sed 's/ .*$//' >$REMOTE_PATH/distributions/cocoon-src-$TVERSION.zip.md5; \ + chmod g+w $REMOTE_PATH/distributions/cocoon-src-$TVERSION.zip*" + fi Modified: cocoon/trunk/tools/ide/eclipse/blocks-classpath.xsl Url: http://svn.apache.org/viewcvs/cocoon/trunk/tools/ide/eclipse/blocks-classpath.xsl?view=diff&rev=125074&p1=cocoon/trunk/tools/ide/eclipse/blocks-classpath.xsl&r1=125073&p2=cocoon/trunk/tools/ide/eclipse/blocks-classpath.xsl&r2=125074 ============================================================================== --- cocoon/trunk/tools/ide/eclipse/blocks-classpath.xsl (original) +++ cocoon/trunk/tools/ide/eclipse/blocks-classpath.xsl Thu Jan 13 04:43:25 2005 @@ -16,6 +16,7 @@ limitations under the License. --> +<!-- @version $Id: make-classpath.xsl 106334 2004-11-23 19:52:40Z antonio $ --> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="xml" indent="yes"/> Modified: cocoon/trunk/tools/ide/eclipse/classpath-tmpl.xml Url: http://svn.apache.org/viewcvs/cocoon/trunk/tools/ide/eclipse/classpath-tmpl.xml?view=diff&rev=125074&p1=cocoon/trunk/tools/ide/eclipse/classpath-tmpl.xml&r1=125073&p2=cocoon/trunk/tools/ide/eclipse/classpath-tmpl.xml&r2=125074 ============================================================================== --- cocoon/trunk/tools/ide/eclipse/classpath-tmpl.xml (original) +++ cocoon/trunk/tools/ide/eclipse/classpath-tmpl.xml Thu Jan 13 04:43:25 2005 @@ -14,6 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. --> +<!-- $Id$ --> <data> <src-dirs><item>@SRC_DIRS@</item></src-dirs> <mock-dirs><item>@MOCKS_DIRS@</item></mock-dirs> Modified: cocoon/trunk/tools/targets/admin-build.xml Url: http://svn.apache.org/viewcvs/cocoon/trunk/tools/targets/admin-build.xml?view=diff&rev=125074&p1=cocoon/trunk/tools/targets/admin-build.xml&r1=125073&p2=cocoon/trunk/tools/targets/admin-build.xml&r2=125074 ============================================================================== --- cocoon/trunk/tools/targets/admin-build.xml (original) +++ cocoon/trunk/tools/targets/admin-build.xml Thu Jan 13 04:43:25 2005 @@ -14,12 +14,13 @@ See the License for the specific language governing permissions and limitations under the License. --> +<!-- $Id$ --> <project name="admin"> - + <description> Admin targets </description> - + <!-- Creates the web site --> <target name="site-docs" depends="do-forrest" description="[admin] Builds the site"> <mkdir dir="${site}"/> Modified: cocoon/trunk/tools/targets/compile-build.xml Url: http://svn.apache.org/viewcvs/cocoon/trunk/tools/targets/compile-build.xml?view=diff&rev=125074&p1=cocoon/trunk/tools/targets/compile-build.xml&r1=125073&p2=cocoon/trunk/tools/targets/compile-build.xml&r2=125074 ============================================================================== --- cocoon/trunk/tools/targets/compile-build.xml (original) +++ cocoon/trunk/tools/targets/compile-build.xml Thu Jan 13 04:43:25 2005 @@ -14,6 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. --> +<!-- $Id$ --> <project name="compile"> <description> Modified: cocoon/trunk/tools/targets/dist-build.xml Url: http://svn.apache.org/viewcvs/cocoon/trunk/tools/targets/dist-build.xml?view=diff&rev=125074&p1=cocoon/trunk/tools/targets/dist-build.xml&r1=125073&p2=cocoon/trunk/tools/targets/dist-build.xml&r2=125074 ============================================================================== --- cocoon/trunk/tools/targets/dist-build.xml (original) +++ cocoon/trunk/tools/targets/dist-build.xml Thu Jan 13 04:43:25 2005 @@ -14,6 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. --> +<!-- $Id$ --> <project name="dist"> <description> Modified: cocoon/trunk/tools/targets/docs-build.xml Url: http://svn.apache.org/viewcvs/cocoon/trunk/tools/targets/docs-build.xml?view=diff&rev=125074&p1=cocoon/trunk/tools/targets/docs-build.xml&r1=125073&p2=cocoon/trunk/tools/targets/docs-build.xml&r2=125074 ============================================================================== --- cocoon/trunk/tools/targets/docs-build.xml (original) +++ cocoon/trunk/tools/targets/docs-build.xml Thu Jan 13 04:43:25 2005 @@ -14,6 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. --> +<!-- $Id$ --> <project name="docs"> <description> Modified: cocoon/trunk/tools/targets/forrest-build.xml Url: http://svn.apache.org/viewcvs/cocoon/trunk/tools/targets/forrest-build.xml?view=diff&rev=125074&p1=cocoon/trunk/tools/targets/forrest-build.xml&r1=125073&p2=cocoon/trunk/tools/targets/forrest-build.xml&r2=125074 ============================================================================== --- cocoon/trunk/tools/targets/forrest-build.xml (original) +++ cocoon/trunk/tools/targets/forrest-build.xml Thu Jan 13 04:43:25 2005 @@ -14,6 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. --> +<!-- $Id$ --> <project name="do-forrest"> <description> Modified: cocoon/trunk/tools/targets/ide-build.xml Url: http://svn.apache.org/viewcvs/cocoon/trunk/tools/targets/ide-build.xml?view=diff&rev=125074&p1=cocoon/trunk/tools/targets/ide-build.xml&r1=125073&p2=cocoon/trunk/tools/targets/ide-build.xml&r2=125074 ============================================================================== --- cocoon/trunk/tools/targets/ide-build.xml (original) +++ cocoon/trunk/tools/targets/ide-build.xml Thu Jan 13 04:43:25 2005 @@ -14,6 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. --> +<!-- $Id$ --> <project name="ide"> <description> Modified: cocoon/trunk/tools/targets/init-build.xml Url: http://svn.apache.org/viewcvs/cocoon/trunk/tools/targets/init-build.xml?view=diff&rev=125074&p1=cocoon/trunk/tools/targets/init-build.xml&r1=125073&p2=cocoon/trunk/tools/targets/init-build.xml&r2=125074 ============================================================================== --- cocoon/trunk/tools/targets/init-build.xml (original) +++ cocoon/trunk/tools/targets/init-build.xml Thu Jan 13 04:43:25 2005 @@ -14,6 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. --> +<!-- $Id$ --> <project name="init"> <description> Modified: cocoon/trunk/tools/targets/samples-build.xml Url: http://svn.apache.org/viewcvs/cocoon/trunk/tools/targets/samples-build.xml?view=diff&rev=125074&p1=cocoon/trunk/tools/targets/samples-build.xml&r1=125073&p2=cocoon/trunk/tools/targets/samples-build.xml&r2=125074 ============================================================================== --- cocoon/trunk/tools/targets/samples-build.xml (original) +++ cocoon/trunk/tools/targets/samples-build.xml Thu Jan 13 04:43:25 2005 @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. --> - +<!-- $Id$ --> <project name="samples"> <description> @@ -44,7 +44,7 @@ <exclude name="**/*.gif"/> <exclude name="**/*.png"/> <!-- filtering breaks UTF-8 files --> - <exclude name="i18n/**"/> + <exclude name="i18n/**"/> <exclude name="hello-world/style/**"/> </fileset> </copy> @@ -69,7 +69,7 @@ <!-- patch the welcome page to tell we have samples to show --> <xpatch file="${build.webapp}/welcome.xml" - srcdir="${webapp.samples}" + srcdir="${webapp.samples}" includes="**/*.xwelcome"/> </target> @@ -79,4 +79,4 @@ inheritRefs="false" target="samples"/> </target> -</project> +</project> Modified: cocoon/trunk/tools/targets/standalone-demo-build.xml Url: http://svn.apache.org/viewcvs/cocoon/trunk/tools/targets/standalone-demo-build.xml?view=diff&rev=125074&p1=cocoon/trunk/tools/targets/standalone-demo-build.xml&r1=125073&p2=cocoon/trunk/tools/targets/standalone-demo-build.xml&r2=125074 ============================================================================== --- cocoon/trunk/tools/targets/standalone-demo-build.xml (original) +++ cocoon/trunk/tools/targets/standalone-demo-build.xml Thu Jan 13 04:43:25 2005 @@ -14,12 +14,11 @@ See the License for the specific language governing permissions and limitations under the License. --> +<!-- $Id$ --> <project name="standalone"> <!-- ant include file for "standalone-demo" build @author [EMAIL PROTECTED] - - $Id: standalone-demo-build.xml,v 1.4 2004/03/08 06:07:15 antonio Exp $ --> <target name="standalone-demo" depends="init, webapp" description="build webapp and copy files for standalone demo"> Modified: cocoon/trunk/tools/targets/test-build.xml Url: http://svn.apache.org/viewcvs/cocoon/trunk/tools/targets/test-build.xml?view=diff&rev=125074&p1=cocoon/trunk/tools/targets/test-build.xml&r1=125073&p2=cocoon/trunk/tools/targets/test-build.xml&r2=125074 ============================================================================== --- cocoon/trunk/tools/targets/test-build.xml (original) +++ cocoon/trunk/tools/targets/test-build.xml Thu Jan 13 04:43:25 2005 @@ -14,6 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. --> +<!-- $Id$ --> <project name="test"> <description>Test targets</description> @@ -64,7 +65,7 @@ <!-- Runs JUnit tests in debug mode --> <target name="junit-test-debug" depends="compile-tests, junit-tests-prepare"> - <fail unless="junit.testcase" + <fail unless="junit.testcase" message="Please set the property $${junit.testcase} to a JUnit testcase (package.Classname, e.g. org.test.MyTestCase)."/> <echo message="The JVM will be suspended until you connect with your favourite debugger to port ${junit.test.debugport}."/> @@ -85,8 +86,8 @@ inheritAll="true" inheritRefs="false" target="tests"/> - </target> - + </target> + <target name="junit-tests-report" depends="init"> <mkdir dir="${build.test.report}"/> <junitreport todir="${build.test.output}"> @@ -104,7 +105,7 @@ <!--+ | Anteater tests +--> - + <!-- Anteater tests --> <target name="anteater-tests" depends="block-anteater-tests, core-anteater-tests" description="Runs AntEater tests"/> @@ -132,7 +133,7 @@ </java> </sequential> </macrodef> - + <target name="anteater-tests-prepare"> <!-- check whether Anteater is installed and available --> <!-- anteater parameters are set in build.properties --> @@ -162,7 +163,7 @@ <call-anteater script="run-tests.xml" target="single" targetfile="${target}"/> </target> - <!-- Block tests --> + <!-- Block tests --> <target name="block-anteater-tests" depends="prepare-blocks"> <ant antfile="${build.temp}/blocks-build.xml" inheritAll="true" Modified: cocoon/trunk/tools/targets/tools-build.xml Url: http://svn.apache.org/viewcvs/cocoon/trunk/tools/targets/tools-build.xml?view=diff&rev=125074&p1=cocoon/trunk/tools/targets/tools-build.xml&r1=125073&p2=cocoon/trunk/tools/targets/tools-build.xml&r2=125074 ============================================================================== --- cocoon/trunk/tools/targets/tools-build.xml (original) +++ cocoon/trunk/tools/targets/tools-build.xml Thu Jan 13 04:43:25 2005 @@ -14,15 +14,16 @@ See the License for the specific language governing permissions and limitations under the License. --> +<!-- $Id$ --> <project name="tools"> <description> Tools provided by Ant which could be helpful </description> - <target - name="correctLinefeed" + <target + name="correctLinefeed" description="Make sure LF is used as line feed"> - + <echo message="-------------------------------------------------------------------------------"/> <echo message="Make sure you don't have any binaries (except *.jpg, *.gif, *.jar and *.zip in the directory (or any subdirectory) which you want to correct."/> <echo message="-------------------------------------------------------------------------------"/> @@ -30,11 +31,11 @@ <input message="Please enter the basedir which should be corrected:" addproperty="target.dir"/> <fixcrlf srcdir="${target.dir}" - eol="lf" + eol="lf" includes="**/*" excludes="**/*.jpg,**/*.gif,**/*.jar,**/*.zip" /> - + </target> </project> Modified: cocoon/trunk/tools/targets/upgrade-build.xml Url: http://svn.apache.org/viewcvs/cocoon/trunk/tools/targets/upgrade-build.xml?view=diff&rev=125074&p1=cocoon/trunk/tools/targets/upgrade-build.xml&r1=125073&p2=cocoon/trunk/tools/targets/upgrade-build.xml&r2=125074 ============================================================================== --- cocoon/trunk/tools/targets/upgrade-build.xml (original) +++ cocoon/trunk/tools/targets/upgrade-build.xml Thu Jan 13 04:43:25 2005 @@ -14,6 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. --> +<!-- $Id$ --> <project name="upgrade"> <description> Upgrade targets that help to convert between different Cocoon versions Modified: cocoon/trunk/tools/targets/validate-build.xml Url: http://svn.apache.org/viewcvs/cocoon/trunk/tools/targets/validate-build.xml?view=diff&rev=125074&p1=cocoon/trunk/tools/targets/validate-build.xml&r1=125073&p2=cocoon/trunk/tools/targets/validate-build.xml&r2=125074 ============================================================================== --- cocoon/trunk/tools/targets/validate-build.xml (original) +++ cocoon/trunk/tools/targets/validate-build.xml Thu Jan 13 04:43:25 2005 @@ -14,6 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. --> +<!-- $Id$ --> <project name="validation"> <description> Modified: cocoon/trunk/tools/targets/webapp-build.xml Url: http://svn.apache.org/viewcvs/cocoon/trunk/tools/targets/webapp-build.xml?view=diff&rev=125074&p1=cocoon/trunk/tools/targets/webapp-build.xml&r1=125073&p2=cocoon/trunk/tools/targets/webapp-build.xml&r2=125074 ============================================================================== --- cocoon/trunk/tools/targets/webapp-build.xml (original) +++ cocoon/trunk/tools/targets/webapp-build.xml Thu Jan 13 04:43:25 2005 @@ -14,6 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. --> +<!-- $Id$ --> <project name="webapp"> <description>