use of aQute.bnd.build.Workspace in project bnd by bndtools.
the class WorkspaceTest method testPropertyDefaulting.
public void testPropertyDefaulting() throws Exception {
try (Workspace ws = Workspace.getWorkspace(IO.getFile("testresources/ws-defaulting"))) {
Project p = ws.getProject("p1");
assertEquals("defaults", p.getProperty("myprop1"));
assertEquals("workspace", p.getProperty("myprop2"));
assertEquals("project", p.getProperty("myprop3"));
assertEquals("src", p.mergeProperties("src"));
}
}
use of aQute.bnd.build.Workspace in project bnd by bndtools.
the class WorkspaceTest method testNestedWorkspace.
public void testNestedWorkspace() throws Exception {
try (Workspace ws = Workspace.getWorkspace(IO.getFile("testresources/redirectws/wss/ws"))) {
assertEquals("true", ws.getProperty("testcnf"));
assertEquals("true", ws.getProperty("ext"));
}
}
use of aQute.bnd.build.Workspace in project bnd by bndtools.
the class WorkspaceBundleVersionedDependencyTest method testWorkspaceVersionedDependencyWithSubbundle.
public static void testWorkspaceVersionedDependencyWithSubbundle() throws Exception {
IO.copy(IO.getFile("testresources/ws-versioneddependencies-withsubbundle"), IO.getFile("generated/ws-versioneddependencies-withsubbundle"));
Workspace ws = Workspace.getWorkspace(IO.getFile("generated/ws-versioneddependencies-withsubbundle"));
ws.getProject("mydependency").build();
Project project = ws.getProject("myconsumer");
project.clean();
project.build();
assertTrue(project.check());
}
use of aQute.bnd.build.Workspace in project bnd by bndtools.
the class WorkspaceBundleVersionedDependencyTest method testWorkspaceVersionedDependency.
public static void testWorkspaceVersionedDependency() throws Exception {
IO.copy(IO.getFile("testresources/ws-versioneddependencies"), IO.getFile("generated/ws-versioneddependencies"));
Workspace ws = Workspace.getWorkspace(IO.getFile("generated/ws-versioneddependencies"));
Project project = ws.getProject("myconsumer");
project.clean();
project.build();
assertTrue(project.check());
}
use of aQute.bnd.build.Workspace in project bnd by bndtools.
the class WorkspaceRepositoryTest method setUp.
public void setUp() throws Exception {
workspace = new Workspace(IO.getFile("testresources/ws-repo-test"));
repo = new WorkspaceRepository(workspace);
}
Aggregations