Fix for the Issue #101
Replaced the hardcoded xml path in the log message.
diff --git a/src/main/java/org/testng/TestNG.java b/src/main/java/org/testng/TestNG.java
index adba95d..dcf000b 100644
--- a/src/main/java/org/testng/TestNG.java
+++ b/src/main/java/org/testng/TestNG.java
@@ -354,7 +354,7 @@
}
if (! foundTestngXml) {
Utils.log("TestNG", 1,
- "Couldn't find a testng.xml in the jar file, running all the classes");
+ "Couldn't find the " + m_xmlPathInJar + " in the jar file, running all the classes");
XmlSuite xmlSuite = new XmlSuite();
xmlSuite.setVerbose(0);
xmlSuite.setName("Jar suite");
@@ -374,9 +374,6 @@
catch(SAXException ex) {
ex.printStackTrace();
}
- catch(MalformedURLException ex) {
- ex.printStackTrace();
- }
catch(IOException ex) {
ex.printStackTrace();
}