The problem for the anonymous user in building jakarta-turbine-tdk is that the build-test.sh and build-production.sh scripts require secure access to the apache site. All the anonymous user wants is the latest updates on his/her local box. In order to accomplish this I have made a new build-local.sh script and made some minor changes in build.xml to include a classpath path element and naming the output directory from tdk to tdk-${tdk.version}. So, implementing this change would require that the build-test.sh and build-production.sh scripts be modified to work with the new directory names. The build-local.sh was just a build script I grabbed from another jakarta project. I am proposing that these changes be added to the jakarta-turbine-tdk repository. I think others will find these useful. Thanks, - Dan ========== build-local.sh ==================== #!/bin/sh #-------------------------------------------- # No need to edit anything past here #-------------------------------------------- if test -z "${JAVA_HOME}" ; then echo "ERROR: JAVA_HOME not found in your environment." echo "Please, set the JAVA_HOME variable in your environment to match the" echo "location of the Java Virtual Machine you want to use." exit fi if test -f ${JAVA_HOME}/lib/tools.jar ; then CLASSPATH=${CLASSPATH}:${JAVA_HOME}/lib/tools.jar fi # convert the existing path to unix if [ "$OSTYPE" = "cygwin32" ] || [ "$OSTYPE" = "cygwin" ] ; then CLASSPATH=`cygpath --path --unix "$CLASSPATH"` fi for i in ${ANT_HOME}/lib/*.jar do ANT_JAR=${ANT_JAR}:$i done # OSX hack to make it work with jikes OSXHACK="/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Classes" if [ -d ${OSXHACK} ] ; then for i in ${OSXHACK}/*.jar do CLASSPATH=${CLASSPATH}:$i done fi CLASSPATH=${CLASSPATH}:${ANT_JAR} # convert the unix path to windows if [ "$OSTYPE" = "cygwin32" ] || [ "$OSTYPE" = "cygwin" ] ; then CLASSPATH=`cygpath --path --windows "$CLASSPATH"` fi ${JAVA_HOME}/bin/java -classpath ${CLASSPATH} org.apache.tools.ant.Main "$@" ==================== diff text ========================== cvs diff -u build.xml Index: build.xml =================================================================== RCS file: /home/cvspublic/jakarta-turbine-tdk/build/build.xml,v retrieving revision 1.4 diff -u -r1.4 build.xml --- build.xml 2001/05/14 06:03:24 1.4 +++ build.xml 2001/05/14 15:31:18 @@ -11,7 +11,7 @@ <property name="tdk.lib" value="../lib"/> <property name="tdk.xdocs" value="../xdocs"/> <property name="tdk.base" value="../dist"/> - <property name="tdk.dist" value="../dist/tdk"/> + <property name="tdk.dist" value="../dist/tdk-${tdk.version}"/> <property name="tdk.dist.lib" value="${tdk.dist}/share/lib"/> <property name="tdk.webapp" value="${tdk.dist}/webapps/tdk"/> <property name="tdk.site" value="${tdk.dist}/webapps/site"/> @@ -42,6 +42,16 @@ <!-- Jar Files --> <property name="hsql.jar" value="hsql.jar"/> + <!-- Build classpath --> + <path id="classpath"> + <fileset dir="${site2.home}/lib"> + <include name="**/jdom-*.jar"/> + </fileset> + <fileset dir="${turbine.home}/lib"> + <include name="**/*.jar"/> + </fileset> + </path> + <!-- ================================================================== --> <!-- Prints useful build environment values --> <!-- ================================================================== --> @@ -55,9 +65,8 @@ <echo message=""/> <available property="jdom.present" classname="org.jdom.JDOMException"> - <classpath path="${java.class.path}"/> + <classpath refid="classpath"/> </available> - </target> <!-- =================================================================== --> @@ -240,6 +249,7 @@ <taskdef name="anakia" classname="org.apache.velocity.anakia.AnakiaTask"> + <classpath refid="classpath"/> </taskdef> <mkdir dir="${tdk.site}"/> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]