jakarta-regexp-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@locus.apache.org
Subject cvs commit: jakarta-regexp/xdocs/stylesheets project.xml
Date Mon, 27 Nov 2000 19:48:06 GMT
jon         00/11/27 11:48:04

  Modified:    build    build-regexp.bat build-regexp.sh build-regexp.xml
  Added:       build    ant-1.2.jar xerces-1.2.1.jar
               docs     changes.html index.html
               xdocs    README.txt RETest.txt changes.xml index.xml
                        velocity.properties
               xdocs/stylesheets project.xml
  Removed:     build    ant.jar xml.jar
               docs     changes.htsrc index.htsrc
  Log:
  added new xdocs system
  update build to ant-1.2
  preparation for release 1.2
  
  Revision  Changes    Path
  1.3       +15 -24    jakarta-regexp/build/build-regexp.bat
  
  Index: build-regexp.bat
  ===================================================================
  RCS file: /home/cvs/jakarta-regexp/build/build-regexp.bat,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- build-regexp.bat	2000/05/03 01:12:45	1.2
  +++ build-regexp.bat	2000/11/27 19:47:16	1.3
  @@ -1,42 +1,29 @@
   @echo off
   
  -
  -REM --------------------------------------------
  -REM Defualt == jar
  -REM "core"           target builds core classes
  -REM "clean"          target removes bin directory
  -REM "jar"            target builds core + jar
  -REM "javadoc"        target builds the javadoc
  -REM "package"        target builds core + jar + javadoc + distribution
  -REM --------------------------------------------
  -set TARGET=%1%
  -
  -
   REM --------------------------------------------
   REM No need to edit anything past here
   REM --------------------------------------------
  +set _BUILDFILE=%BUILDFILE%
   set BUILDFILE=build-regexp.xml
  -if "%TARGET%" == "" goto setdist
  -goto final
   
  -:setdist
  -set TARGET=jar
  -goto final
  -
   :final
   
  -if "%JAVA_HOME%" == "" goto javahomeerror
  +set _CLASSPATH=%CLASSPATH%
   
  +if "%JAVA_HOME%" == "" goto javahomeerror
   if exist %JAVA_HOME%\lib\tools.jar set CLASSPATH=%CLASSPATH%;%JAVA_HOME%\lib\tools.jar
  -set CP=%CLASSPATH%;ant.jar;xml.jar
   
  -echo Classpath: %CP%
  -echo JAVA_HOME: %JAVA_HOME%
  +REM this is hard coded paths. that sucks. need to figure out
  +REM a better way as I couldn't get lcp.bat to work properly! :-( (JSS)
  +set CLASSPATH=%CLASSPATH%;.\ant-1.2.jar;.\xerces-1.2.1.jar
  +set CLASSPATH=%CLASSPATH%;..\..\jakarta-site2\lib\velocity-0.7.jar
  +set CLASSPATH=%CLASSPATH%;..\..\jakarta-site2\lib\jdom-b5.jar
   
  -%JAVA_HOME%\bin\java.exe -classpath "%CP%" org.apache.tools.ant.Main -buildfile %BUILDFILE% %TARGET%
  +echo %CLASSPATH%
   
  -goto end
  +%JAVA_HOME%\bin\java.exe org.apache.tools.ant.Main -buildfile %BUILDFILE% %1 %2 %3 %4 %5 %6 %7 %8 %9
   
  +goto end
   
   REM -----------ERROR-------------
   :javahomeerror
  @@ -45,3 +32,7 @@
   echo "location of the Java Virtual Machine you want to use."
   
   :end
  +set BUILDFILE=%_BUILDFILE%
  +set _BUILDFILE=
  +set CLASSPATH=%_CLASSPATH%
  +set _CLASSPATH=
  
  
  
  1.2       +21 -20    jakarta-regexp/build/build-regexp.sh
  
  Index: build-regexp.sh
  ===================================================================
  RCS file: /home/cvs/jakarta-regexp/build/build-regexp.sh,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- build-regexp.sh	2000/04/27 01:23:43	1.1
  +++ build-regexp.sh	2000/11/27 19:47:19	1.2
  @@ -1,15 +1,5 @@
   #!/bin/sh
   
  -# --------------------------------------------
  -# Defualt == jar
  -# "core"           target builds core classes
  -# "clean"          target removes bin directory
  -# "jar"            target builds core + jar
  -# "javadoc"        target builds the javadoc
  -# "package"        target builds core + jar + javadoc + distribution
  -# --------------------------------------------
  -TARGET=${1}
  -
   #--------------------------------------------
   # No need to edit anything past here
   #--------------------------------------------
  @@ -20,21 +10,32 @@
       exit
   fi
   
  -if test -z "${TARGET}" ; then 
  -TARGET=jar
  -fi
  -
   if test -f ${JAVA_HOME}/lib/tools.jar ; then
       CLASSPATH=${CLASSPATH}:${JAVA_HOME}/lib/tools.jar
   fi
   
  -echo "Now building ${TARGET}..."
  -
  -CP=${CLASSPATH}:ant.jar:xml.jar
  +# convert the existing path to unix
  +if [ "$OSTYPE" = "cygwin32" ] || [ "$OSTYPE" = "cygwin" ] ; then
  +   CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
  +fi
   
  -echo "Classpath: ${CP}"
  -echo "JAVA_HOME: ${JAVA_HOME}"
  +# Add in your .jar files first
  +for i in ./*.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-regexp.xml
   
  -${JAVA_HOME}/bin/java -classpath ${CP} org.apache.tools.ant.Main -buildfile ${BUILDFILE} ${TARGET}
  +${JAVA_HOME}/bin/java -classpath ${CLASSPATH} org.apache.tools.ant.Main \
  +                      -buildfile ${BUILDFILE} "$@"
  
  
  
  1.4       +125 -44   jakarta-regexp/build/build-regexp.xml
  
  Index: build-regexp.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-regexp/build/build-regexp.xml,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- build-regexp.xml	2000/05/14 21:51:14	1.3
  +++ build-regexp.xml	2000/11/27 19:47:21	1.4
  @@ -1,48 +1,68 @@
   <?xml version="1.0"?>
   
   <!-- ======================================================================= -->
  -<!-- Build file                                                      -->
  +<!-- Build file                                                              -->
   <!-- ======================================================================= -->
  -<project name="Jakarta-Regexp" default="main" basedir=".">
  +<project name="Jakarta-Regexp" default="jar" basedir=".">
   
       <!-- =================================================================== -->
       <!-- Initializes some variables                                          -->
       <!-- =================================================================== -->
  -    <target name="init">    
  -        <property name="ant.home" value="."/>
  -        <property name="Name" value="Jakarta-Regexp"/>
  -        <property name="year" value="2000"/>
  -        <property name="version" value="1.1"/>
  -        <property name="project" value="jakarta-regexp"/>
  -        <property name="build.compiler" value="classic"/>
  -        <property name="build.dir" value="../bin"/>
  -        <property name="build.src" value="${build.dir}/src"/>
  -        <property name="build.dest" value="${build.dir}/classes"/>
  -        <property name="src.java.dir" value="../src/java"/>
  -        <property name="javadoc.destdir" value="../docs/apidocs"/>
  -        <property name="final.name" value="${project}-${version}"/>
  -        <property name="final.dir" value="../${final.name}/"/>
  -        <property name="debug" value="off"/>
  -        <property name="optimize" value="on"/>
  -        <property name="deprecation" value="off"/>
  -        
  -        <filter token="year" value="${year}"/>
  -        <filter token="version" value="${version}"/>
  -        <filter token="date" value="${TODAY}"/>
  +    <property name="ant.home" value="."/>
  +    <property name="Name" value="Jakarta-Regexp"/>
  +    <property name="year" value="2000"/>
  +    <property name="version" value="1.2"/>
  +    <property name="project" value="jakarta-regexp"/>
  +    <property name="build.compiler" value="classic"/>
  +    <property name="build.dir" value="../bin"/>
  +    <property name="build.src" value="${build.dir}/src"/>
  +    <property name="build.dest" value="${build.dir}/classes"/>
  +    <property name="src.java.dir" value="../src/java"/>
  +    <property name="javadoc.destdir" value="../docs/api/"/>
  +    <property name="final.name" value="${project}-${version}"/>
  +    <property name="final.dir" value="../${final.name}/"/>
  +    <property name="debug" value="off"/>
  +    <property name="optimize" value="on"/>
  +    <property name="deprecation" value="off"/>
  +
  +    <!-- Anakia -->
  +    <property name="docs.src" value="../xdocs"/>
  +    <property name="docs.dest" value="../docs"/>
  +
  +    <!-- ================================================================== -->
  +    <!-- Prints useful build environment values                             -->
  +    <!-- ================================================================== -->
  +    <target name="env">
  +        <echo message="build.compiler = ${build.compiler}"/>
  +        <echo message="java.home = ${java.home}"/>
  +        <echo message="user.home = ${user.home}"/>
  +        <echo message="java.class.path = ${java.class.path}"/>
  +        <echo message=""/>
       </target>
   
       <!-- =================================================================== -->
       <!-- Copies the source code to the build directory and does filtering    -->
       <!-- =================================================================== -->
  -    <target name="prepare" depends="init">
  +    <target name="prepare" depends="env">
  +        <filter token="year" value="${year}"/>
  +        <filter token="version" value="${version}"/>
  +        <filter token="date" value="${TODAY}"/>
  +
  +        <available classname="org.apache.velocity.anakia.AnakiaTask" 
  +            property="AnakiaTask.present"/>
  +
           <mkdir dir="${build.dir}"/>
           <mkdir dir="${build.dest}"/>
           <mkdir dir="${build.src}"/>
  -        <chmod src="bin/antRun" perm="744"/>
  +        <chmod dir="bin/" perm="744"/>
   
  -        <copydir src="${src.java.dir}" dest="${build.src}" 
  -            includes="**/*.java **/*.properties"
  -            filtering="on"/>
  +        <copy todir="${build.src}" filtering="yes">
  +            <fileset dir="${src.java.dir}">
  +                <include name="**/*.java"/>
  +                <include name="**/*.properties"/>
  +                <include name="**/package.html"/>
  +            </fileset>
  +        </copy>
       </target>
   
       <!-- =================================================================== -->
  @@ -51,6 +71,7 @@
       <target name="compile" depends="prepare">
           <javac srcdir="${build.src}"
               destdir="${build.dest}"
  +            excludes="**/package.html"
               debug="${debug}"
               deprecation="${deprecation}"
               optimize="${optimize}"/>
  @@ -62,7 +83,6 @@
       <target name="jar" depends="compile">
           <jar jarfile="${build.dir}/${final.name}.jar"
               basedir="${build.dest}"
  -            includes="org/**"
               excludes="**/package.html"/>
       </target>
       
  @@ -71,46 +91,63 @@
       <!-- =================================================================== -->
       <target name="javadocs" depends="prepare">
           <mkdir dir="${javadoc.destdir}"/>
  -        <javadoc packagenames="org.apache.regexp.*"
  +        <javadoc
               sourcepath="${build.src}"
  +            packagenames="org.apache.regexp.*"
               destdir="${javadoc.destdir}"
               author="true"
               private="true"
               version="true"
  +            use="true"
               windowtitle="${Name} ${version} API"
               doctitle="${Name} ${version} API"
  -            bottom="Copyright &#169; ${year} Apache Software Foundation. All Rights Reserved."
  -        />
  +            bottom="Copyright &amp;copy; ${year} Apache Software Foundation. All Rights Reserved."
  +            >
  +    	</javadoc>
       </target>
       
       <!-- =================================================================== -->
       <!-- Package                                                             -->
       <!-- =================================================================== -->
  -    <target name="package" depends="jar,javadocs">
  +    <target name="package" depends="jar,docs,javadocs">
           <mkdir dir="${final.dir}"/>
  -        <mkdir dir="${final.dir}/src/java"/>
  -        <copydir src="${build.dir}/src/" dest="${final.dir}/src/java/"/>
  -        <copydir src="../docs" dest="${final.dir}/docs"
  -            excludes="**/dist/**"/>
  -        <copydir src="../build" dest="${final.dir}/build"/>
  -        <copyfile src="../LICENSE" dest="${final.dir}/LICENSE"/>
  -
  -        <copyfile src="${build.dir}/${final.name}.jar" dest="${final.dir}/${final.name}.jar"/>
  +        
  +        <copy todir="${final.dir}/src/java">
  +            <fileset dir="${src.java.dir}"/>
  +        </copy>
  +        <copy todir="${final.dir}/docs">
  +            <fileset dir="${docs.dest}">
  +                <exclude name="**/dist/**"/>
  +            </fileset>
  +        </copy>
  +        <copy todir="${final.dir}/xdocs">
  +            <fileset dir="${docs.src}"/>
  +        </copy>
  +        <copy todir="${final.dir}/build">
  +            <fileset dir="../build">
  +                <exclude name="velocity.log"/>            
  +            </fileset>
  +        </copy>
  +        <copy file="../LICENSE" tofile="${final.dir}/LICENSE"/>
  +        <copy file="${build.dir}/${final.name}.jar" tofile="${final.dir}/${final.name}.jar"/>
       </target>
     
       <!-- =================================================================== -->
       <!-- Packages the distribution with ZIP                                  -->
       <!-- =================================================================== -->
       <target name="package-zip" depends="package">
  -        <zip zipfile="../${Name}-${version}.zip" basedir="../" includes="**/${final.name}/**"/>
  +        <delete file="../${final.name}.zip" verbose="false"/>
  +        <zip zipfile="../${final.name}.zip" basedir="../${final.name}" includes="**/**"/>
       </target>
       
       <!-- =================================================================== -->
       <!-- Packages the distribution with TAR-GZIP                             -->
       <!-- =================================================================== -->
       <target name="package-tgz" depends="package">
  -        <tar tarfile="../${Name}-${version}.tar" basedir="../" includes="**/${final.name}/**"/>
  -        <gzip zipfile="../${Name}-${version}.tar.gz" src="../${Name}-${version}.tar"/>
  +        <delete file="../${final.name}.tar" verbose="false"/>
  +        <delete file="../${final.name}.tar.gz" verbose="false"/>
  +        <tar tarfile="../${final.name}.tar" basedir="../" includes="**/${final.name}/**"/>
  +        <gzip zipfile="../${final.name}.tar.gz" src="../${final.name}.tar"/>
       </target>
       
       <!-- =================================================================== -->
  @@ -118,4 +155,48 @@
       <!-- =================================================================== -->
       <target name="package-all" depends="package-zip, package-tgz">
       </target>
  +
  +    <!-- ================================================================== -->
  +    <!-- Cleans up the build directory                                      -->
  +    <!-- ================================================================== -->
  +    <target name="clean">
  +        <delete dir="${build.dir}"/>
  +    </target>
  +
  +    <!-- ================================================================== -->
  +    <!-- Anakia Documentation Builder                                       -->
  +    <!-- ================================================================== -->
  +    <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>
  +    
  +    <target name="docs" depends="prepare-error" if="AnakiaTask.present">
  +        <taskdef name="anakia" classname="org.apache.velocity.anakia.AnakiaTask"/>
  +        <anakia basedir="${docs.src}" destdir="${docs.dest}/"
  +             extension=".html" style="./site.vsl"
  +             projectFile="stylesheets/project.xml"
  +             excludes="**/stylesheets/** empty.xml"
  +             includes="**/*.xml"
  +             lastModifiedCheck="true"
  +             velocityPropertiesFile="${docs.src}/velocity.properties">
  +        </anakia>
  +        <!-- Not needed for now
  +        <copy todir="${docs.dest}/images" filtering="no">
  +            <fileset dir="${docs.src}/images">
  +                <include name="**/*.gif"/>
  +                <include name="**/*.jpeg"/>
  +                <include name="**/*.jpg"/>
  +            </fileset>
  +        </copy>
  +        -->
  +        <copy todir="${docs.dest}" filtering="no">
  +            <fileset dir="${docs.src}">
  +                <include name="RETest.txt"/>
  +            </fileset>
  +        </copy>
  +    </target>
  +    
   </project>
  
  
  
  1.1                  jakarta-regexp/build/ant-1.2.jar
  
  	<<Binary file>>
  
  
  1.1                  jakarta-regexp/build/xerces-1.2.1.jar
  
  	<<Binary file>>
  
  
  1.1                  jakarta-regexp/docs/changes.html
  
  Index: changes.html
  ===================================================================
  <!-- Content Stylesheet for Site -->
  
          
  <!-- start the processing -->
      <!-- ====================================================================== -->
      <!-- Main Page Section -->
      <!-- ====================================================================== -->
      <html>
          <head>
              <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
  
                                                      <meta name="author" value="Jon S. Stevens">
              <meta name="email" value="jon@latchkey.com">
              
              <title>Jakarta Regexp - Regexp Changes</title>
          </head>
  
          <body bgcolor="#ffffff" text="#000000" link="#525D76">        
              <table border="0" width="100%" cellspacing="0">
                  <!-- TOP IMAGE -->
                  <tr>
                      
  <td colspan="2">
  <a href="http://jakarta.apache.org"><img src="http://jakarta.apache.org/images/jakarta-logo.gif" align="left" border="0"/></a>
  </td>
                  </tr>
              </table>
              <table border="0" width="100%" cellspacing="4">
                  <tr><td colspan="2">
                      <hr noshade="" size="1"/>
                  </td></tr>
                  
                  <tr>
                      <!-- LEFT SIDE NAVIGATION -->
                      <td valign="top" nowrap="true">
                                  <strong>Regexp</strong>
          <ul>
                      <li>    <a href="./index.html">Front Page</a>
  </li>
                      <li>    <a href="./changes.html">Changes</a>
  </li>
                  </ul>
              <strong>Download</strong>
          <ul>
                      <li>    <a href="./site/binindex.html">Binaries</a>
  </li>
                  </ul>
              <strong>Get Involved</strong>
          <ul>
                      <li>    <a href="./site/getinvolved.html">Overview</a>
  </li>
                      <li>    <a href="./site/cvsindex.html">CVS Repositories</a>
  </li>
                      <li>    <a href="./site/mail.html">Mailing Lists</a>
  </li>
                  </ul>
              <strong>Related Projects</strong>
          <ul>
                      <li>    <a href="./oro/index.html">ORO</a>
  </li>
                  </ul>
                          </td>
                      <td align="left" valign="top">
                                                                      <table border="0" cellspacing="0" cellpadding="2" width="100%">
        <tr><td bgcolor="#525D76">
          <font color="#ffffff" face="arial,helvetica,sanserif">
            <strong>Regexp Changes</strong>
          </font>
        </td></tr>
        <tr><td>
          <blockquote>
                      
                  <p>
  This document reflects the changes between releases for the Jakarta Regexp
  package.
  </p>
                                  
                  <h3>Version 1.2</h3>
                                  
                  <ul>
  <li>Updated to Ant 1.2 (JSS)</li>
  <li>Documentation now built with <a href="http://jakarta.apache.org/site/jakarta-site2.html">Anakia</a> (JSS)</li>
  <li><a href="http://jakarta.apache.org/cvsweb/index.cgi/jakarta-regexp/src/java/org/apache/regexp/RE.java?rev=1.3&amp;content-type=text/vnd.viewcvs-markup">Fixed bug</a></li>
  <li><a href="http://jakarta.apache.org/cvsweb/index.cgi/jakarta-regexp/src/java/org/apache/regexp/RE.java?rev=1.4&amp;content-type=text/vnd.viewcvs-markup">Fixed bug</a></li>
  <li><a href="http://jakarta.apache.org/cvsweb/index.cgi/jakarta-regexp/src/java/org/apache/regexp/RE.java?rev=1.5&amp;content-type=text/vnd.viewcvs-markup">Fixed bug</a></li>
  <li><a href="http://jakarta.apache.org/cvsweb/index.cgi/jakarta-regexp/src/java/org/apache/regexp/RE.java?rev=1.6&amp;content-type=text/vnd.viewcvs-markup">Fixed bug</a></li>
  </ul>
                                  
                  <h3>Version 1.1</h3>
                                  
                  <p>
  Contributions by Ales Novak:
  </p>
                                  
                  <ul>
  <li>RECompiler.compile() - copy on return</li>
  <li>RE.matchNodes() - BOL and EOL cases
  if RE.MATCH_MULTILINE is specified.
  - Think of RETest.java which prints
  MATCH!!!: ......
  two times while in the older version only one time.
  </li>
  <li>
  RE.java also contains an extension which allow to parse
  InputStreams, Readers and char arrays in addition to Strings.
  All needed modifications are only in the RE class.
  </li>
  </ul>
                                  
                  <p>
  Contributions by Jon S. Stevens:
  </p>
                                  
                  <ul>
  <li>Fix in the build system for building on NT</li>
  <li>Documentation fixes / additions</li>
  </ul>
                                  
                  <h3>Version 1.0</h3>
                                  
                  <ul>
  <li>Repackaging from original contribution. No major code changes.</li>
  </ul>
                              </blockquote>
        </td></tr>
      </table>
                                          </td>
                  </tr>
  
                  <!-- FOOTER -->
                  <tr><td colspan="2">
                      <hr noshade="" size="1"/>
                  </td></tr>
                  <tr><td colspan="2">
                      <div align="center"><font color="{#525D76" size="-1"><em>
                      Copyright &#169; 1999-2000, Apache Software Foundation
                      </em></font></div>
                  </td></tr>
              </table>
          </body>
      </html>
  <!-- end the processing -->
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  1.1                  jakarta-regexp/docs/index.html
  
  Index: index.html
  ===================================================================
  <!-- Content Stylesheet for Site -->
  
          
  <!-- start the processing -->
      <!-- ====================================================================== -->
      <!-- Main Page Section -->
      <!-- ====================================================================== -->
      <html>
          <head>
              <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
  
                                                      <meta name="author" value="Jon S. Stevens">
              <meta name="email" value="jon@latchkey.com">
              
              <title>Jakarta Regexp - Regexp</title>
          </head>
  
          <body bgcolor="#ffffff" text="#000000" link="#525D76">        
              <table border="0" width="100%" cellspacing="0">
                  <!-- TOP IMAGE -->
                  <tr>
                      
  <td colspan="2">
  <a href="http://jakarta.apache.org"><img src="http://jakarta.apache.org/images/jakarta-logo.gif" align="left" border="0"/></a>
  </td>
                  </tr>
              </table>
              <table border="0" width="100%" cellspacing="4">
                  <tr><td colspan="2">
                      <hr noshade="" size="1"/>
                  </td></tr>
                  
                  <tr>
                      <!-- LEFT SIDE NAVIGATION -->
                      <td valign="top" nowrap="true">
                                  <strong>Regexp</strong>
          <ul>
                      <li>    <a href="./index.html">Front Page</a>
  </li>
                      <li>    <a href="./changes.html">Changes</a>
  </li>
                  </ul>
              <strong>Download</strong>
          <ul>
                      <li>    <a href="./site/binindex.html">Binaries</a>
  </li>
                  </ul>
              <strong>Get Involved</strong>
          <ul>
                      <li>    <a href="./site/getinvolved.html">Overview</a>
  </li>
                      <li>    <a href="./site/cvsindex.html">CVS Repositories</a>
  </li>
                      <li>    <a href="./site/mail.html">Mailing Lists</a>
  </li>
                  </ul>
              <strong>Related Projects</strong>
          <ul>
                      <li>    <a href="./oro/index.html">ORO</a>
  </li>
                  </ul>
                          </td>
                      <td align="left" valign="top">
                                                                      <table border="0" cellspacing="0" cellpadding="2" width="100%">
        <tr><td bgcolor="#525D76">
          <font color="#ffffff" face="arial,helvetica,sanserif">
            <strong>Regexp</strong>
          </font>
        </td></tr>
        <tr><td>
          <blockquote>
                      
                  <p>
  Regexp is a 100% Pure Java Regular Expression package that was graciously 
  donated to the Apache Software Foundation by Jonathan Locke. He originally wrote 
  this software back in 1996 and it has stood up quite well to the test of time. 
  It includes complete Javadoc documentation as well as a simple Applet for visual 
  debugging and testing suite for compatibility.
  </p>
                                  
                  <p>
  This package is intended to be an answer to a question we commonly hear in the 
  Java world:
  <br />
  <strong>"Why isn't there a decent regular expression package available for 
  Java under a BSD-Style (ie: Apache) license?"</strong>
  </p>
                                  
                  <p>
  You can <a href="../site/binindex.html">download</a> builds.
  </p>
                                  
                  <p>
  You can view the list of 
  <a href="./changes.html">changes</a> between revisions.
  </p>
                                  
                  <p>
  The Javadoc is <a href="http://jakarta.apache.org/regexp/apidocs/">available online</a>. 
  It is also included in the distribution download.
  </p>
                                  
                  <p>
  An online <a href="http://jakarta.apache.org/jyve-faq/Turbine/screen/DisplayTopics/action/SetAll/project_id/2/faq_id/27">FAQ</a>
  is available for commonly asked questions like, "What is a regular
  expression?", "Why did you do this? There are already other Java
  regexp packages available!", etc. 
  </p>
                                  
                  <p>
  If you would like to get involved with this project in one way or another 
  (Mailing lists, CVS, Contributions), please see the <a href="../site/getinvolved.html">Getting Involved</a> section of the Jakarta Website.
  </p>
                                  
                  <h3><a href="../site/whoweare.html">Contributors</a></h3>
                                  
                  <ul>
  <li>Jonathan Locke wrote the original code.</li>
  <li>James Davidson for making the contact with Jonathan and asking him to release his 
  source code.</li>
  <li>Jon S. Stevens is responsible for re-packaging it and preparing it 
  for release.</li>
  <li>Craig McClanahan is responsible for setting up the CVS and mailing lists.</li>
  <li><a href="mailto:ales AT netbeans.com">Ales Novak</a> has contributed
  bug fixes and feature enhancements.</li>
  </ul>
                              </blockquote>
        </td></tr>
      </table>
                                          </td>
                  </tr>
  
                  <!-- FOOTER -->
                  <tr><td colspan="2">
                      <hr noshade="" size="1"/>
                  </td></tr>
                  <tr><td colspan="2">
                      <div align="center"><font color="{#525D76" size="-1"><em>
                      Copyright &#169; 1999-2000, Apache Software Foundation
                      </em></font></div>
                  </td></tr>
              </table>
          </body>
      </html>
  <!-- end the processing -->
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  1.1                  jakarta-regexp/xdocs/README.txt
  
  Index: README.txt
  ===================================================================
  $Id: README.txt,v 1.1 2000/11/27 19:47:58 jon Exp $
  
  
  You can find out more information on how the documentation is 
  generated by going to this website:
  
  http://jakarta.apache.org/site/jakarta-site2.html
  
  thanks!
  
  
  1.1                  jakarta-regexp/xdocs/RETest.txt
  
  Index: RETest.txt
  ===================================================================
  #1
  abc
  abc
  YES
  abc
  
  #2
  abc
  xbc
  NO
  
  #3
  abc
  axc
  NO
  
  #4
  abc
  abx
  NO
  
  #5
  abc
  xabcy
  YES
  abc
  
  #6
  abc
  ababc
  YES
  abc
  
  #7
  ab*c
  abc
  YES
  abc
  
  #8
  ab*bc
  abc
  YES
  abc
  
  #9
  ab*bc
  abbc
  YES
  abbc
  
  #10
  ab*bc
  abbbbc
  YES
  abbbbc
  
  #11
  ab+bc
  abbc
  YES
  abbc
  
  #12
  ab+bc
  abc
  NO
  
  #13
  ab+bc
  abq
  NO
  
  #14
  ab+bc
  abbbbc
  YES
  abbbbc
  
  #15
  ab?bc
  abbc
  YES
  abbc
  
  #16
  ab?bc
  abc
  YES
  abc
  
  #17
  ab?bc
  abbbbc
  NO
  
  #18
  ab?c
  abc
  YES
  abc
  
  #19
  a.c
  abc
  YES
  abc
  
  #20
  a.c
  axc
  YES
  axc
  
  #21
  a.*c
  axyzc
  YES
  axyzc
  
  #22
  a.*c
  axyzd
  NO
  
  #23
  a[bc]d
  abc
  NO
  
  #24
  a[bc]d
  abd
  YES
  abd
  
  #25
  a[b-d]e
  abd
  NO
  
  #26
  a[b-d]e
  ace
  YES
  ace
  
  #27
  a[b-d]
  aac
  YES
  ac
  
  #28
  a[b-a]
  ERR
  
  #29
  a[-b]
  aa
  YES
  aa
  
  #30
  a[b-]
  ac
  YES
  ac
  
  #31
  a[]b
  ERR
  
  #32
  a[
  ERR
  
  #33
  a]
  ERR
  
  #34
  a[]]
  ERR
  
  #35
  a[^bc]d
  aed
  YES
  aed
  
  #36
  a[^bc]
  abd
  NO
  
  #37
  ab|cd
  abc
  YES
  ab
  
  #38
  ab|cd
  abcd
  YES
  ab
  
  #39
  ab|cd
  bcda
  YES
  cd
  
  #40
  a[]b
  ERR
  
  #41
  ()ef
  ef
  YES
  ef
  
  
  #42
  ()*
  ERR
  
  #43
  *a
  ERR
  
  #44
  (*)b
  ERR
  
  #45
  a\
  ERR
  
  #46
  a\(b
  a(b
  YES
  a(b
  
  #47
  a\(*b
  ab
  YES
  ab
  
  #48
  a\(*b
  a((b
  YES
  a((b
  
  #49
  a\\b
  a\b
  YES
  a\b
  
  #50
  abc)
  ERR
  
  #51
  (abc
  ERR
  
  #52
  ((a))
  abc
  YES
  a
  a
  a
  
  #53
  (a)b(c)
  abc
  YES
  abc
  a
  c
  
  #54
  a+b+c
  aabbabc
  YES
  abc
  
  #55
  a**
  ERR
  
  #56
  a++
  ERR
  
  #57
  a*
  aaaa
  YES
  aaaa
  
  #58
  a*
  baaaa
  YES
  
  
  #59
  (a*)*
  ERR
  
  #60
  (a*)+
  ERR
  
  #61
  (a|)*
  ERR
  
  #62
  (ab|cd)e
  abcde
  YES
  cde
  cd
  
  #63
  [abhgefdc]ij
  hij
  YES
  hij
  
  #64
  ab*
  xabyabbbz
  YES
  ab
  
  #65
  ab*
  xayabbbz
  YES
  a
  
  #66
  abcd*efg
  abcdefg
  YES
  abcdefg
  
  #67
  (ab|ab*)bc
  abc
  YES
  abc
  a
  
  
  #68
  (a|b|c|d|e)f
  ef
  YES
  ef
  e
  
  #69
  a|b|c|d|e
  e
  YES
  e
  
  #70
  (.*)c(.*)
  abcde
  YES
  abcde
  ab
  de
  
  #71
  \((.*), (.*)\)
  (a, b)
  YES
  (a, b)
  a
  b
  
  #72
  a(bc)d
  abcd
  YES
  abcd
  bc
  
  #73
  a*
  x
  YES
  
  
  #74
  ([abc])*d
  abbbcd
  YES
  abbbcd
  c
  
  #75
  a*
  
  YES
  
  
  #76
  ([abc])*bcd
  abcd
  YES
  abcd
  a
  
  #77
  (a|b)c*d
  abcd
  YES
  bcd
  b
  
  #78
  a([bc]*)c*
  abc
  YES
  abc
  bc
  
  #79
  [a-zA-Z_][a-zA-Z0-9_]*
  alpha
  YES
  alpha
  
  #80
  ((a)(b)c)(d)
  abcd
  YES
  abcd
  abc
  a
  b
  d
  
  #81
  (ab|a)b*c
  abc
  YES
  abc
  ab
  
  #82
  a[bcd]+dcdcde
  adcdcde
  NO
  
  #83
  ((((((((((a)))))))))
  ERR
  
  #84
  (((((((((a)))))))))
  a
  YES
  a
  a
  a
  a
  a
  a
  a
  a
  a
  a
  
  #85
  [k]
  ab
  NO
  
  #86
  abcd
  abcd
  YES
  abcd
  
  #87
  a[-]?c
  abc
  YES
  abc
  
  #88
  multiple words of text
  uh-uh
  NO
  
  #89
  multiple words
  multiple words, yeah
  YES
  multiple words
  
  #90
  a[bcd]*dcdcde
  adcdcde
  YES
  adcdcde
  
  #91
  a([bc]*)(c*d)
  abcd
  YES
  abcd
  bc
  d
  
  #92
  a([bc]+)(c*d)
  abcd
  YES
  abcd
  bc
  d
  
  #93
  a([bc]*)(c+d)
  abcd
  YES
  abcd
  b
  cd
  
  #94
  abc
  
  NO
  
  #95
  ^*
  ERR
  
  #96
  $*
  ERR
  
  #97
  ^abc$
  abc
  YES
  abc
  
  #98
  ^abc$
  abcc
  NO
  
  #99
  ^abc
  abcc
  YES
  abc
  
  #100
  ^abc$
  aabc
  NO
  
  #101
  abc$
  aabc
  YES
  abc
  
  #102
  ^
  abc
  YES
  
  
  #103
  $
  abc
  YES
  
  #104
  $b
  b
  NO
  
  #105
  (a+|b)*
  ab
  YES
  ab
  b
  
  #106
  (a+|b)+
  ab
  YES
  ab
  b
  
  #107
  (a+|b)?
  ab
  YES
  a
  a
  
  #108
  (^*
  ERR
  
  #109
  )(
  ERR
  
  #110
  [^ab]*
  cde
  YES
  cde
  
  #111
  ^(ab|cd)e
  abcde
  NO
  
  #112
  ^a(bc+|b[eh])g|.h$
  abh
  YES
  bh
  
  
  #113
  (bc+d$|ef*g.|h?i(j|k))
  effgz
  YES
  effgz
  effgz
  
  
  #114
  (bc+d$|ef*g.|h?i(j|k))
  ij
  YES
  ij
  ij
  j
  
  
  #115
  (bc+d$|ef*g.|h?i(j|k))
  effg
  NO
  
  #116
  (bc+d$|ef*g.|h?i(j|k))
  bcdd
  NO
  
  #117
  (bc+d$|ef*g.|h?i(j|k))
  reffgz
  YES
  effgz
  effgz
  
  #118
  a*b\s+c
  aaaab    c
  YES
  aaaab    c
  
  #119
  a*b\s+c
  aaaabfc
  NO
  
  #120
  a*(b*c*)
  aabbcc
  YES
  aabbcc
  bbcc
  
  #121
  a?b+c*
  b
  YES
  b
  
  #122
  \d+
  99
  YES
  99
  
  #123
  ^[:javastart:]+[:javapart:]+$
  javaIdentifier0
  YES
  javaIdentifier0
  
  #124
  ^[:javastart:]+[:javapart:]+$
  ?javaIdentifier
  NO
  
  #125
  [a-e]?d\\e
  yyzabecd\eyyz
  YES
  cd\e
  
  #126
  ((\w+)/)*(\w+)
  foo/bar/baz
  YES
  foo/bar/baz
  bar/
  bar
  baz
  
  #127
  i am a green (giant|man|martian)
  i am a green man
  YES
  i am a green man
  man
  
  #128
  ([a-c]+?)c
  abcabcabc
  YES
  abc
  ab
  
  #129
  ([ab]*?)b
  aaaaabaaaababab
  YES
  aaaaab
  aaaaa
  
  #130
  ([ab]*)b
  aaaaabaaaababab
  YES
  aaaaabaaaababab
  aaaaabaaaababa
  
  #131
  ([ab]??)b
  bb
  YES
  b
  
  #132
  (c[ab]?)b
  cbb
  YES
  cbb
  cb
  
  #133
  (c[ab]??)b
  cbb
  YES
  cb
  c
  
  #134
  (c[ab]*?)b
  cbb
  YES
  cb
  c
  
  #135
  [:digit:]+
  789
  YES
  789
  
  #136
  [:digit:]+
  abc
  NO
  
  #137
  [:xdigit:]+
  ffe5a
  YES
  ffe5a
  
  #138
  [:wacky:]+
  ERR
  
  #139
  (wee|week)(knights|knight)
  weeknights
  YES
  weeknights
  wee
  knights
  
  #140
  (ac*)c*d[ac]*\1
  acdacaa
  YES
  acdac
  ac
  
  #141
  (a.*b)(a.*b)
  accbaccccb
  YES
  accbaccccb
  accb
  accccb
  
  #142
  (.)=\1
  x=x
  YES
  x=x
  x
  
  #143
  ([ab])=\1
  a=a
  YES
  a=a
  a
  
  #144
  ([ab]+)=\1
  abba=abba
  YES
  abba=abba
  abba
  
  #145
  \u004a
  J
  YES
  J
  
  #146
  \x4a
  J
  YES
  J
  
  #147
  \[([:javastart:][:javapart:]*)\]
  foo[bar]baz
  YES
  [bar]
  bar
  
  #148
  (\s*\w+)?
    aa
  YES
    aa
    aa
  
  
  
  1.1                  jakarta-regexp/xdocs/changes.xml
  
  Index: changes.xml
  ===================================================================
  <?xml version="1.0"?>
  <document>
  
    <properties>
      <author email="jon@latchkey.com">Jon S. Stevens</author>
      <title>Regexp Changes</title>
    </properties>
  
  <body>
  
    <section name="Regexp Changes">
  
  <p>
  This document reflects the changes between releases for the Jakarta Regexp
  package.
  </p>
  
  <h3>Version 1.2</h3>
  <ul>
  <li>Updated to Ant 1.2 (JSS)</li>
  <li>Documentation now built with <a 
  href="http://jakarta.apache.org/site/jakarta-site2.html">Anakia</a> (JSS)</li>
  <li><a href="http://jakarta.apache.org/cvsweb/index.cgi/jakarta-regexp/src/java/org/apache/regexp/RE.java?rev=1.3&amp;content-type=text/vnd.viewcvs-markup">Fixed bug</a></li>
  <li><a href="http://jakarta.apache.org/cvsweb/index.cgi/jakarta-regexp/src/java/org/apache/regexp/RE.java?rev=1.4&amp;content-type=text/vnd.viewcvs-markup">Fixed bug</a></li>
  <li><a href="http://jakarta.apache.org/cvsweb/index.cgi/jakarta-regexp/src/java/org/apache/regexp/RE.java?rev=1.5&amp;content-type=text/vnd.viewcvs-markup">Fixed bug</a></li>
  <li><a href="http://jakarta.apache.org/cvsweb/index.cgi/jakarta-regexp/src/java/org/apache/regexp/RE.java?rev=1.6&amp;content-type=text/vnd.viewcvs-markup">Fixed bug</a></li>
  </ul>
  
  <h3>Version 1.1</h3>
  
  <p>
  Contributions by Ales Novak:
  </p>
  
  <ul>
  <li>RECompiler.compile() - copy on return</li>
  <li>RE.matchNodes() - BOL and EOL cases
  if RE.MATCH_MULTILINE is specified.
  - Think of RETest.java which prints
  MATCH!!!: ......
  two times while in the older version only one time.
  </li>
  <li>
  RE.java also contains an extension which allow to parse
  InputStreams, Readers and char arrays in addition to Strings.
  All needed modifications are only in the RE class.
  </li>
  </ul>
  
  <p>
  Contributions by Jon S. Stevens:
  </p>
  
  <ul>
  <li>Fix in the build system for building on NT</li>
  <li>Documentation fixes / additions</li>
  </ul>
  
  <h3>Version 1.0</h3>
  <ul>
  <li>Repackaging from original contribution. No major code changes.</li>
  </ul>
  
    </section>
  
  </body>
  </document>
  
  
  
  
  1.1                  jakarta-regexp/xdocs/index.xml
  
  Index: index.xml
  ===================================================================
  <?xml version="1.0"?>
  <document>
  
    <properties>
      <author email="jon@latchkey.com">Jon S. Stevens</author>
      <title>Regexp</title>
    </properties>
  
  <body>
  
    <section name="Regexp">
  
  <p>
  Regexp is a 100% Pure Java Regular Expression package that was graciously 
  donated to the Apache Software Foundation by Jonathan Locke. He originally wrote 
  this software back in 1996 and it has stood up quite well to the test of time. 
  It includes complete Javadoc documentation as well as a simple Applet for visual 
  debugging and testing suite for compatibility.
  </p>
  
  <p>
  This package is intended to be an answer to a question we commonly hear in the 
  Java world:
  <br/>
  <strong>&quot;Why isn't there a decent regular expression package available for 
  Java under a BSD-Style (ie: Apache) license?&quot;</strong>
  </p>
  
  <p>
  You can <a href="../site/binindex.html">download</a> builds.
  </p>
  
  <p>
  You can view the list of 
  <a href="./changes.html">changes</a> between revisions.
  </p>
  
  <p>
  The Javadoc is <a href="http://jakarta.apache.org/regexp/apidocs/">available online</a>. 
  It is also included in the distribution download.
  </p>
  
  <p>
  An online <a
  href="http://jakarta.apache.org/jyve-faq/Turbine/screen/DisplayTopics/action/SetAll/project_id/2/faq_id/27">FAQ</a>
  is available for commonly asked questions like, &quot;What is a regular
  expression?&quot;, &quot;Why did you do this? There are already other Java
  regexp packages available!&quot;, etc. 
  </p>
  
  <p>
  If you would like to get involved with this project in one way or another 
  (Mailing lists, CVS, Contributions), please see the <a 
  href="../site/getinvolved.html">Getting Involved</a> section of the Jakarta Website.
  </p>
  
  <h3><a href="../site/whoweare.html">Contributors</a></h3>
  
  <ul>
  <li>Jonathan Locke wrote the original code.</li>
  <li>James Davidson for making the contact with Jonathan and asking him to release his 
  source code.</li>
  <li>Jon S. Stevens is responsible for re-packaging it and preparing it 
  for release.</li>
  <li>Craig McClanahan is responsible for setting up the CVS and mailing lists.</li>
  <li><a href="mailto:ales AT netbeans.com">Ales Novak</a> has contributed
  bug fixes and feature enhancements.</li>
  </ul>
  
    </section>
  
  </body>
  </document>
  
  
  
  
  1.1                  jakarta-regexp/xdocs/velocity.properties
  
  Index: velocity.properties
  ===================================================================
  #----------------------------------------------------------------------------
  # These are the default properties for the
  # Velocity Runtime. These values are used when
  # Runtime.init() is called, and when Runtime.init(properties)
  # fails to find the specificed properties file.
  #----------------------------------------------------------------------------
  
  #----------------------------------------------------------------------------
  # R U N T I M E  L O G  
  #----------------------------------------------------------------------------
  # This is the location of the Velocity Runtime log.
  #----------------------------------------------------------------------------
  
  runtime.log = velocity.log
  
  #----------------------------------------------------------------------------
  # T E M P L A T E  E N C O D I N G
  #----------------------------------------------------------------------------
  
  template.encoding=8859_1
  
  #----------------------------------------------------------------------------
  # C O N T E N T  T Y P E  
  #----------------------------------------------------------------------------
  # This is the default content type for the VelocityServlet.
  #----------------------------------------------------------------------------
  
  default.contentType=text/html
  
  #----------------------------------------------------------------------------
  # F O R E A C H  P R O P E R T I E S
  #----------------------------------------------------------------------------
  # These properties control how the counter is accessed in the #foreach
  # directive. By default the reference $velocityCount will be available
  # in the body of the #foreach directive. The default starting value
  # for this reference is 1.
  #----------------------------------------------------------------------------
  
  counter.name = velocityCount
  counter.initial.value = 1
  
  #----------------------------------------------------------------------------
  # I N C L U D E  P R O P E R T I E S
  #----------------------------------------------------------------------------
  # These are the properties that governed the way #include'd content
  # is governed.
  #----------------------------------------------------------------------------
  
  include.path=../../jakarta-site2/xdocs/stylesheets
  include.cache = false
  include.output.errormsg.start = <!-- include error : 
  include.output.errormsg.end   =  see error log -->
  
  #----------------------------------------------------------------------------
  # P A R S E  P R O P E R T I E S
  #----------------------------------------------------------------------------
  
  parse_directive.maxdepth = 10
  
  #----------------------------------------------------------------------------
  # T E M P L A T E  L O A D E R S
  #----------------------------------------------------------------------------
  # 
  # 
  #----------------------------------------------------------------------------
  
  template.loader.1.public.name = File
  template.loader.1.description = Velocity File Template Loader
  template.loader.1.class = org.apache.velocity.runtime.loader.FileTemplateLoader
  template.loader.1.template.path = ../../jakarta-site2/xdocs/stylesheets
  template.loader.1.cache = false
  template.loader.1.modificationCheckInterval = 2
  
  #template.loader.2.public.name = URL
  #template.loader.2.description = Velocity URL Template Loader
  #template.loader.2.class = org.apache.velocity.runtime.loader.URLTemplateLoader
  #template.loader.2.template.path = http://localhost/templates/
  #template.loader.2.cache = false
  
  #----------------------------------------------------------------------------
  # E X T E R N A L  S E R V I C E  I N I T I A L I Z A T I O N
  #----------------------------------------------------------------------------
  # If this property is set to true then an external service will
  # set certain system properties and initialize the Velocity
  # Runtime. This method is used by Turbine to initialize the
  # Velocity Runtime for the TurbineVelocityService.
  #----------------------------------------------------------------------------
  
  external.init = false
  
  #----------------------------------------------------------------------------
  # VELOCIMACRO GLOBAL LIBRARY
  #----------------------------------------------------------------------------
  # name of default global library.  It is expected to be in the regular
  # template path.  You may remove it (either the file or this property) if 
  # you wish with no harm.
  #----------------------------------------------------------------------------
  #velocimacro.library.global=VM_global_library.vm
  
  
  
  
  1.1                  jakarta-regexp/xdocs/stylesheets/project.xml
  
  Index: project.xml
  ===================================================================
  <?xml version="1.0" encoding="ISO-8859-1"?>
  <project name="Jakarta Regexp"
          href="http://jakarta.apache.org/">
  
      <title>Jakarta Regexp</title>
      <!-- uncomment and put your project logo here!
      <logo href="/images/jakarta-logo.gif">The Jakarta Project</logo>
      -->
      
      <body>
      <menu name="Regexp">
          <item name="Front Page"            href="/index.html"/>
          <item name="Changes"               href="/changes.html"/>
      </menu>
  
      <menu name="Download">
          <item name="Binaries"              href="/site/binindex.html"/>
      </menu>
  
      <menu name="Get Involved">
          <item name="Overview"              href="/site/getinvolved.html"/>
          <item name="CVS Repositories"      href="/site/cvsindex.html"/>
          <item name="Mailing Lists"         href="/site/mail.html"/>
      </menu>
  
      <menu name="Related Projects">
          <item name="ORO"                   href="/oro/index.html"/>
      </menu>
      </body>
  </project>
  
  
  

Mime
View raw message