From ade07d69fb67df9a6b9431d8dd6d3140fab53c3f Mon Sep 17 00:00:00 2001 From: Stefan Bodewig Date: Wed, 12 Jul 2000 12:43:00 +0000 Subject: [PATCH] strip attribute didn't work. git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267764 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/org/apache/tools/ant/taskdefs/Patch.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/org/apache/tools/ant/taskdefs/Patch.java b/src/main/org/apache/tools/ant/taskdefs/Patch.java index f0b7dbc47..a2e8df5c2 100644 --- a/src/main/org/apache/tools/ant/taskdefs/Patch.java +++ b/src/main/org/apache/tools/ant/taskdefs/Patch.java @@ -107,7 +107,7 @@ public class Patch extends Exec { *

patch's -p 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;