Browse Source

strip attribute didn't work.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267764 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 25 years ago
parent
commit
ade07d69fb
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/main/org/apache/tools/ant/taskdefs/Patch.java

+ 1
- 1
src/main/org/apache/tools/ant/taskdefs/Patch.java View File

@@ -107,7 +107,7 @@ public class Patch extends Exec {
* <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;


Loading…
Cancel
Save