Browse Source

Fixed detection of duplicate entries in <jlink>.

Submitted by:	Matthew Kuperus Heun <matthew.k.heun@gaerospace.com>


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

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

@@ -236,7 +236,7 @@ public class jlink extends Object{
//In that case, just ignore the error and go on to the
//next entry.
String mess = ex.getMessage();
if (mess.indexOf("duplicate") > 0){
if (mess.indexOf("duplicate") >= 0){
//It was the duplicate entry.
continue;
} else {


Loading…
Cancel
Save