package org.argeo.slc.ant;\r
\r
-import junit.framework.TestCase;\r
+import java.net.URL;\r
\r
-public class SlcAntTest extends TestCase {\r
+import org.apache.commons.logging.Log;\r
+import org.apache.commons.logging.LogFactory;\r
+\r
+import org.argeo.slc.unit.AbstractSpringTestCase;\r
+\r
+public class SlcAntTest extends AbstractSpringTestCase {\r
+ private Log log = LogFactory.getLog(getClass());\r
\r
public void testSimpleRun() {\r
- AntRegistryUtil.runAll(getClass().getResource(\r
- "/org/argeo/slc/ant/build.xml"), "test", null);\r
+ // AntRegistryUtil.runAll(getClass().getResource(\r
+ // "/org/argeo/slc/ant/build.xml"), "test", null);\r
+\r
+ URL url = getClass().getResource("/org/argeo/slc/ant/build.xml");\r
+ log.info("Run Ant file from URL: " + url);\r
+ AntRunner antRunner = new AntRunner(getContext(), url, "test");\r
+\r
+ antRunner.run();\r
}\r
\r
}\r