Search in sources :

Example 1 with IProjectConfiguration

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);
}
Also used : RPMProject(org.eclipse.linuxtools.rpm.core.RPMProject) IProjectConfiguration(org.eclipse.linuxtools.rpm.core.IProjectConfiguration) IProject(org.eclipse.core.resources.IProject) Ignore(org.junit.Ignore) Test(org.junit.Test)

Aggregations

IProject (org.eclipse.core.resources.IProject)1 IProjectConfiguration (org.eclipse.linuxtools.rpm.core.IProjectConfiguration)1 RPMProject (org.eclipse.linuxtools.rpm.core.RPMProject)1 Ignore (org.junit.Ignore)1 Test (org.junit.Test)1