]> git.argeo.org Git - gpl/argeo-slc.git/blob - TestAntBuild.java
48fd27aea34bd352a750f557d8fd14cd61905188
[gpl/argeo-slc.git] / TestAntBuild.java
1 package org.argeo.slc.example.junit;
2
3 import java.io.File;
4
5 import org.argeo.slc.ant.AntRegistryUtil;
6
7 import junit.framework.TestCase;
8
9 public class TestAntBuild extends TestCase {
10 public void testAllRunSimple() {
11 File slcBaseDir = new File("./src/test/slc").getAbsoluteFile();
12 System.setProperty("log4j.configuration", "file:///"+slcBaseDir.getPath()
13 + "/conf/log4j.properties");
14
15 File antFile = new File(slcBaseDir.getPath()
16 + "/root/Category1/SubCategory2/build.xml");
17 AntRegistryUtil.runAll(antFile);
18 }
19 }