diff --git a/plugins/TestingList.java b/plugins/TestingList.java index 12cf953..18a1997 100644 --- a/plugins/TestingList.java +++ b/plugins/TestingList.java @@ -391,17 +391,21 @@ public class TestingList extends Panel { for (File listOfTest : listOfTests) { if (listOfTest.isDirectory()) { this.jTextField1.append("\nTest: " + listOfTest.getPath()); - InputStream ist = new FileInputStream(listOfTest.getPath()); - propTest.load(is); - addToTable(propDevice.getProperty("name"), - propDevice.getProperty("description"), - propDevice.getProperty("tests"), - propTest.getProperty("name")); - this.jTextField1.append("\nProperties: "); - this.jTextField1.append(propDevice.getProperty("name")); - this.jTextField1.append(propDevice.getProperty("description")); - this.jTextField1.append(propDevice.getProperty("tests")); - this.jTextField1.append(propTest.getProperty("name")); + configFile = new File(listOfFile.getPath() + FilenameUtils.separatorsToSystem("/.config")); + if(configFile.exists() && !configFile.isDirectory()){ + InputStream ist = new FileInputStream(configFile); + + propTest.load(ist); + addToTable(propDevice.getProperty("name"), + propDevice.getProperty("description"), + propDevice.getProperty("tests"), + propTest.getProperty("name")); + this.jTextField1.append("\nProperties: "); + this.jTextField1.append(propDevice.getProperty("name")); + this.jTextField1.append(propDevice.getProperty("description")); + this.jTextField1.append(propDevice.getProperty("tests")); + this.jTextField1.append(propTest.getProperty("name")); + } } } }