jefft       02/01/14 19:04:02

  Modified:    .        BUILD_DOCS.txt
  Added:       .        build.sh build.bat cpappend.bat
  Log:
  Add build scripts which use the jakarta-site2 jars for Anakia, and update the
  docs accordingly.
  
  Revision  Changes    Path
  1.4       +20 -11    jakarta-commons/BUILD_DOCS.txt
  
  Index: BUILD_DOCS.txt
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/BUILD_DOCS.txt,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- BUILD_DOCS.txt    19 Sep 2001 10:23:21 -0000      1.3
  +++ BUILD_DOCS.txt    15 Jan 2002 03:04:02 -0000      1.4
  @@ -2,25 +2,34 @@
   #
   #  To build the Commons site :
   #
  -#  1) Make sure Ant, Xerces, Velocity (at least v1.2-dev)
  -#     and JDOM are in your classpath.
  +#  EITHER:
   #
  -#  2) Either invoke Ant directly with the build.xml file in this
  -#    directory
  +#    1) Check the jakarta-site2 module out from CVS, to the same directory as
  +#      jakarta-commons.
   #
  -#  or 
  +#    2) Run './build.sh' or 'build.bat'
   #
  -#  java org.apache.tools.ant.Main -buildfile build.xml
  +#  OR:
   #
  -#  or
  +#    1) Make sure Ant, Xerces, Velocity (at least v1.2-dev)
  +#       and JDOM are in your classpath.
   #
  -#  use this as a build.sh script :)
  +#    2) Either invoke Ant directly with the build.xml file in this
  +#      directory
   #
  -#  3) Then commit the xdocs and docs changes to CVS
  +#    or 
   #
  -#  4) On daedalus, cd to /www/jakarta.apache.org/commons
  +#    java org.apache.tools.ant.Main -buildfile build.xml
   #
  -#  5) Type ' cvs update '
  +#    or
  +#
  +#    use this as a build.sh script :)
  +#
  +#    3) Then commit the xdocs and docs changes to CVS
  +#
  +#    4) On daedalus, cd to /www/jakarta.apache.org/commons
  +#
  +#    5) Type ' cvs update '
   #
   #-----------------------------
   # Script for building 
  
  
  
  1.1                  jakarta-commons/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
  
  # Add in your .jar files first
  for i in ./lib/*.jar
  do
      CLASSPATH=$CLASSPATH:"$i"
  done
  # Add in the jakarta-site2 library files
  for i in ../jakarta-site2/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-commons/build.bat
  
  Index: build.bat
  ===================================================================
  @echo off
  
  for %%i in (..\jakarta-site2\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-commons/cpappend.bat
  
  Index: cpappend.bat
  ===================================================================
  set _CP=%1;%_CP%
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to