dion 02/03/30 02:43:19 Modified: latka/src/test/org/apache/commons/latka/junit TestAll.java Log: Added basedir property way of getting file so that TestAll stops barfing. TestAll wont be needed once we move to maven Revision Changes Path 1.3 +6 -2 jakarta-commons/latka/src/test/org/apache/commons/latka/junit/TestAll.java Index: TestAll.java =================================================================== RCS file: /home/cvs/jakarta-commons/latka/src/test/org/apache/commons/latka/junit/TestAll.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- TestAll.java 18 Oct 2001 16:37:59 -0000 1.2 +++ TestAll.java 30 Mar 2002 10:43:19 -0000 1.3 @@ -65,7 +65,7 @@ /** * @author Chuck Burdick - * @version $Id: TestAll.java,v 1.2 2001/10/18 16:37:59 morgand Exp $ + * @version $Id: TestAll.java,v 1.3 2002/03/30 10:43:19 dion Exp $ */ public class TestAll extends TestCase { @@ -77,7 +77,11 @@ TestSuite suite = new TestSuite(); suite.addTest(TestJUnitEventReporter.suite()); suite.addTest(TestJUnitTestAdapter.suite()); - String fileName = "tests/samples/TestCommonsWebsite.xml"; + String baseDir = System.getProperty("basedir"); + assertNotNull("The system property basedir was not defined.", baseDir); + String fs = System.getProperty("file.separator"); + assertNotNull("The system property file.separator was not defined.", fs); + String fileName = baseDir + fs + "tests/samples/TestCommonsWebsite.xml"; suite.addTest(JUnitTestAdapter.createTestFromFile(fileName)); return suite; }
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>