use of org.apache.ivy.util.DefaultMessageLogger in project ant-ivy by apache.
the class IvyPublishTest method setUp.
@Before
public void setUp() {
cleanTestDir();
cleanRep();
createCache();
project = TestHelper.newProject();
project.init();
project.setProperty("ivy.settings.file", "test/repositories/ivysettings.xml");
project.setProperty("build", "build/test/publish");
publish = new IvyPublish();
publish.setProject(project);
System.setProperty("ivy.cache.dir", cache.getAbsolutePath());
Message.setDefaultLogger(new DefaultMessageLogger(10));
}
use of org.apache.ivy.util.DefaultMessageLogger in project ant-ivy by apache.
the class PackagerResolverTest method setUp.
@Before
public void setUp() throws Exception {
Message.setDefaultLogger(new DefaultMessageLogger(99));
settings = new IvySettings();
ResolveEngine engine = new ResolveEngine(settings, new EventManager(), new SortEngine(settings));
cache = new File("build/cache");
data = new ResolveData(engine, new ResolveOptions());
cache.mkdirs();
settings.setDefaultCache(cache);
// Create work space with build and resource cache directories
workdir = new File("build/test/PackagerResolverTest");
builddir = new File(workdir, "build");
cachedir = new File(workdir, "resources");
cleanupTempDirs();
if (!builddir.mkdirs() || !cachedir.mkdirs()) {
throw new Exception("can't create directories under " + workdir);
}
}
Aggregations