commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jua...@apache.org
Subject cvs commit: jakarta-commons-sandbox/jrcs/src/test/org/apache/commons/jrcs/diff DiffTest.java
Date Fri, 01 Nov 2002 18:19:12 GMT
juanco      2002/11/01 10:19:12

  Modified:    jrcs     build.xml
               jrcs/src/test/org/apache/commons/jrcs/diff DiffTest.java
  Log:
  added zip file packaging of distros
  
  Revision  Changes    Path
  1.5       +22 -1     jakarta-commons-sandbox/jrcs/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/jrcs/build.xml,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- build.xml	9 Oct 2002 13:59:16 -0000	1.4
  +++ build.xml	1 Nov 2002 18:19:12 -0000	1.5
  @@ -295,15 +295,27 @@
       <gzip zipfile="${tarfile}.gz" src="${tarfile}" />
   
       <delete file="${tarfile}" />
  +
  +    <property name="zipfile" value="${dist.dir}/jrcs-${version}.zip" />
  +    <zip zipfile="${zipfile}" basedir="${basedir}">
  +      <exclude name="classes/**/*" />
  +      <exclude name="dist/**/*" />
  +      <exclude name="lib/gnu*.jar" />
  +      <exclude name="lib/junit*.jar" />
  +      <exclude name="lib/JavaCC.zip" />
  +    </zip>
  +
     </target>
   
     <target name="full.dist" depends="all">
       <mkdir dir="${dist.dir}" />
       <property name="full.tarfile" value="${dist.dir}/jrcs-full-${version}.tar" />
  +    <property name="zipfile" value="${dist.dir}/jrcs-full-${version}.zip" />
       <delete file="${full.tarfile}" />
   
       <tar tarfile="${full.tarfile}" basedir="${basedir}">
         <exclude name="${full.tarfile}" />
  +      <exclude name="${zipfile}" />
         <exclude name="**/CVS/*" />
         <exclude name="classes/**/*" />
         <exclude name="dist/**/*" />
  @@ -314,6 +326,15 @@
       <gzip zipfile="${full.tarfile}.gz" src="${full.tarfile}" />
   
       <delete file="${full.tarfile}" />
  +
  +    <zip zipfile="${zipfile}" basedir="${basedir}">
  +      <exclude name="${full.tarfile}" />
  +      <exclude name="${zipfile}" />
  +      <exclude name="**/CVS/*" />
  +      <exclude name="classes/**/*" />
  +      <exclude name="dist/**/*" />
  +      <exclude name="lib/JavaCC.zip" />
  +    </zip>
     </target>
   
     <target name="dist" depends="compact.dist,full.dist" />
  
  
  
  1.3       +1 -1      jakarta-commons-sandbox/jrcs/src/test/org/apache/commons/jrcs/diff/DiffTest.java
  
  Index: DiffTest.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/jrcs/src/test/org/apache/commons/jrcs/diff/DiffTest.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- DiffTest.java	28 Sep 2002 15:57:11 -0000	1.2
  +++ DiffTest.java	1 Nov 2002 18:19:12 -0000	1.3
  @@ -224,7 +224,7 @@
                      };
   
         for(int seed = 0; seed < 10; seed++) {
  -        Object[] shuffle = Diff.shuffle(orig, seed);
  +        Object[] shuffle = Diff.shuffle(orig);
           Revision revision = Diff.diff(orig, shuffle);
           Object[] patched = revision.patch(orig);
           if (!Diff.compare(patched, shuffle)) {
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message