use of org.eclipse.linuxtools.rpm.core.IProjectConfiguration in project linuxtools by eclipse.
the class RPMProjectTest method testGetSourcesFolder.
@Test
@Ignore
public void testGetSourcesFolder() throws Exception {
// Create a project for the test
IProject testProject = root.getProject("testBuildSourceRPMHelloWorld1");
testProject.create(monitor);
testProject.open(monitor);
// Instantiate an RPMProject
RPMProject rpmProject = new RPMProject(testProject, RPMProjectLayout.RPMBUILD);
IProjectConfiguration config = rpmProject.getConfiguration();
String folder = config.getSourcesFolder().getLocation().toOSString();
int sourceFolder = folder.indexOf("SOURCES");
assertTrue(sourceFolder != -1);
testProject.delete(true, true, null);
}
Aggregations