You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bo...@locus.apache.org on 2000/07/12 14:43:01 UTC

cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs Patch.java

bodewig     00/07/12 05:43:01

  Modified:    src/main/org/apache/tools/ant/taskdefs Patch.java
  Log:
  strip attribute didn't work.
  
  Revision  Changes    Path
  1.3       +1 -1      jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Patch.java
  
  Index: Patch.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Patch.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- Patch.java	2000/07/11 11:14:48	1.2
  +++ Patch.java	2000/07/12 12:43:00	1.3
  @@ -107,7 +107,7 @@
        * <p>patch's <i>-p</i> option.
        */
       public void setStrip(int num) throws BuildException {
  -        if (strip < 0) {
  +        if (num < 0) {
               throw new BuildException("strip has to be >= 0", location);
           }
           strip = num;