jakarta-oro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@apache.org
Subject cvs commit: jakarta-oro/build build.xml
Date Sat, 19 May 2001 04:42:14 GMT
dfs         01/05/18 21:42:14

  Modified:    build    build.xml
  Log:
  Eliminated all of the hardcoded ../ references and replaced them with a
  top.dir property that indicates the location of the top-level project
  directory.  Also elminated group titles in the javadocs because they
  looked uglly and made the package summary difficult to read.
  
  Revision  Changes    Path
  1.6       +26 -40    jakarta-oro/build/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-oro/build/build.xml,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- build.xml	2001/05/18 23:56:43	1.5
  +++ build.xml	2001/05/19 04:42:13	1.6
  @@ -1,5 +1,5 @@
   <?xml version="1.0"?>
  -<!-- $Id: build.xml,v 1.5 2001/05/18 23:56:43 jon Exp $ -->
  +<!-- $Id: build.xml,v 1.6 2001/05/19 04:42:13 dfs Exp $ -->
   
   <project name="Jakarta-ORO" default="jar" basedir=".">
   
  @@ -7,19 +7,20 @@
     <property name="year" value="2001"/>
     <property name="version" value="2.0.3-dev-1"/>
     <property name="project" value="jakarta-oro"/>
  -  <property name="code.src" value="../src"/>
  -  <property name="build.src" value="../src/java"/>  
  -  <property name="build.dest" value="../classes"/>
  +  <property name="top.dir" value=".."/>
  +  <property name="code.src" value="${top.dir}/src"/>
  +  <property name="build.src" value="${top.dir}/src/java"/>  
  +  <property name="build.dest" value="${top.dir}/classes"/>
   
  -  <property name="javadoc.destdir" value="../docs/api"/>
  +  <property name="javadoc.destdir" value="${top.dir}/docs/api"/>
     <property name="final.name" value="${project}-${version}"/>
  -  <property name="final.dir" value="../${final.name}/"/>
  +  <property name="final.dir" value="${top.dir}/${final.name}/"/>
     <property name="debug" value="off"/>
     <property name="optimize" value="on"/>
     <property name="deprecation" value="off"/>
     <property name="ant.home" value="."/>
  -  <property name="docs.src" value="../xdocs"/>
  -  <property name="docs.dest" value="../docs"/>
  +  <property name="docs.src" value="${top.dir}/xdocs"/>
  +  <property name="docs.dest" value="${top.dir}/docs"/>
   
       <!-- prepare target.  Creates build directory. -->
   
  @@ -87,7 +88,7 @@
       <!-- jar target.  Compiles the source directory and creates a .jar file -->
   
       <target name="jar" depends="lib">
  -        <jar jarfile="../${final.name}.jar"
  +        <jar jarfile="${top.dir}/${final.name}.jar"
               basedir="${build.dest}"
               includes="org/**"
               excludes="**/package.html,**/overview.html"/>
  @@ -107,18 +108,6 @@
               doctitle="${Name} ${version} API"
               header="&lt;a href=&quot;http://jakarta.apache.org/oro/&quot; target=_top&gt;&lt;img
src=&quot;{@docroot}/../images/logoSmall.gif&quot; alt=&quot;Jakarta ORO&quot;
width=48 height=47 align=center border=0 hspace=1 vspace=1&gt;&lt;/a&gt;"
               bottom="Copyright &#169; ${year} Apache Software Foundation. All Rights
Reserved.">
  -    <group
  -     title="Core Regular Expression Interfaces and Perl5 Implementations"
  -         packages="org.apache.oro.text.regex"/>
  -    <group
  -     title="Perl5 Syntactic Sugar"
  -         packages="org.apache.oro.text.perl"/>
  -    <group
  -     title="AWK Regular Expressions"
  -         packages="org.apache.oro.text.awk"/>
  -    <group
  -     title="General Text Processing Classes and Glob Expressions"
  -         packages="org.apache.oro.text"/>
       </javadoc>
       <replace file="${javadoc.destdir}/overview-frame.html"
                    token="{@docroot}" value="."/>
  @@ -152,39 +141,36 @@
   
       <target name="package" depends="jar,javadocs,docs">
           <mkdir dir="${final.dir}"/>
  -        <mkdir dir="${final.dir}/src"/>
           <copy todir="${final.dir}/src">
               <fileset dir="${code.src}"/>
           </copy>
           <copy todir="${final.dir}/docs">
  -            <fileset dir="${docs.dest}">
  -                <exclude name="**/dist/**"/>
  -            </fileset>
  +            <fileset dir="${docs.dest}"/>
           </copy>
           <copy todir="${final.dir}/build">
  -            <fileset dir="../build"/>
  +            <fileset dir="${top.dir}/build"/>
           </copy>
   
  -        <copy file="../LICENSE" tofile="${final.dir}/LICENSE"/>
  -        <copy file="../BUGS" tofile="${final.dir}/BUGS"/>
  -        <copy file="../CHANGES" tofile="${final.dir}/CHANGES"/>
  -        <copy file="../README" tofile="${final.dir}/README"/>
  -        <copy file="../STYLE" tofile="${final.dir}/STYLE"/>
  -        <copy file="../TODO" tofile="${final.dir}/TODO"/>
  -        <copy file="../${final.name}.jar" tofile="${final.dir}/${final.name}.jar"/>
  +        <copy file="${top.dir}/LICENSE" tofile="${final.dir}/LICENSE"/>
  +        <copy file="${top.dir}/BUGS" tofile="${final.dir}/BUGS"/>
  +        <copy file="${top.dir}/CHANGES" tofile="${final.dir}/CHANGES"/>
  +        <copy file="${top.dir}/README" tofile="${final.dir}/README"/>
  +        <copy file="${top.dir}/STYLE" tofile="${final.dir}/STYLE"/>
  +        <copy file="${top.dir}/TODO" tofile="${final.dir}/TODO"/>
  +        <copy file="${top.dir}/${final.name}.jar" tofile="${final.dir}/${final.name}.jar"/>
       </target>
   
       <!-- package-zip target.  Packages the distribution with ZIP -->
   
       <target name="package-zip" depends="package">
  -        <zip zipfile="../${project}-${version}.zip" basedir="../" includes="**/${final.name}/**"/>
  +        <zip zipfile="${top.dir}/${project}-${version}.zip" basedir="${top.dir}/" includes="**/${final.name}/**"/>
       </target>
       
       <!-- Packages the distribution with TAR-GZIP -->
   
       <target name="package-tgz" depends="package">
  -        <tar tarfile="../${project}-${version}.tar" basedir="../" includes="**/${final.name}/**"/>
  -        <gzip zipfile="../${project}-${version}.tar.gz" src="../${project}-${version}.tar"/>
  +        <tar tarfile="${top.dir}/${project}-${version}.tar" basedir="${top.dir}/" includes="**/${final.name}/**"/>
  +        <gzip zipfile="${top.dir}/${project}-${version}.tar.gz" src="${top.dir}/${project}-${version}.tar"/>
       </target>
       
       <!-- Packages the distribution with ZIP and TAG-GZIP -->
  @@ -199,9 +185,9 @@
           <delete dir="${javadoc.destdir}"/>
           <delete dir="${final.dir}"/>
           <delete dir="${docs.dest}"/>
  -        <delete file="../${final.name}.jar"/>
  -        <delete file="../${final.name}.tar"/>
  -        <delete file="../${final.name}.tar.gz"/>
  -        <delete file="../${final.name}.zip"/>
  +        <delete file="${top.dir}/${final.name}.jar"/>
  +        <delete file="${top.dir}/${final.name}.tar"/>
  +        <delete file="${top.dir}/${final.name}.tar.gz"/>
  +        <delete file="${top.dir}/${final.name}.zip"/>
       </target>
   </project>
  
  
  

Mime
View raw message