use of org.apache.ivy.osgi.repo.BundleRepoDescriptor in project ant-ivy by apache.
the class BuildOBRTaskTest method testResolve.
@Test
public void testResolve() throws Exception {
Project otherProject = TestHelper.newProject();
otherProject.setProperty("ivy.settings.file", "test/test-repo/bundlerepo/ivysettings.xml");
IvyResolve resolve = new IvyResolve();
resolve.setProject(otherProject);
resolve.setFile(new File("test/test-repo/ivy-test-buildobr.xml"));
resolve.setResolveId("withResolveId");
resolve.execute();
File obrFile = new File("build/cache/obr.xml");
buildObr.setProject(otherProject);
buildObr.setResolveId("withResolveId");
buildObr.setOut(obrFile);
buildObr.execute();
BundleRepoDescriptor obr = readObr(obrFile);
assertEquals(1, CollectionUtils.toList(obr.getModules()).size());
}
Aggregations