diff --git a/jck/jtrunner/JavaTestRunner.java b/jck/jtrunner/JavaTestRunner.java index 88ef1d5646..ac11343dfa 100644 --- a/jck/jtrunner/JavaTestRunner.java +++ b/jck/jtrunner/JavaTestRunner.java @@ -283,13 +283,14 @@ public static boolean generateJTB() throws Exception { jtxDevFullPath = ""; } - if (customJtx != null && !customJtx.equals("")) { + if (customJtx == null) { + customJtx = ""; + } else { File customJtxFile = new File(customJtx); if (customJtxFile.exists()) { System.out.println("Using additional custom excludes list file " + customJtx); } else { System.out.println("Unable to find additional custom excludes list file " + customJtx); - customJtx = ""; } }