Search in sources :

Example 6 with MavenContextImpl

use of org.eclipse.tycho.core.shared.MavenContextImpl in project tycho by eclipse.

the class MirrorApplicationServiceTest method initTestContext.

@Before
public void initTestContext() throws Exception {
    destinationRepo = new DestinationRepositoryDescriptor(tempFolder.newFolder("dest"), DEFAULT_NAME);
    File projectFolder = tempFolder.getRoot();
    ReactorProjectIdentities currentProject = new ReactorProjectIdentitiesStub(projectFolder);
    context = new BuildContext(currentProject, DEFAULT_QUALIFIER, DEFAULT_ENVIRONMENTS);
    subject = new MirrorApplicationServiceImpl();
    MavenContext mavenContext = new MavenContextImpl(null, logVerifier.getLogger());
    subject.setMavenContext(mavenContext);
}
Also used : MavenContextImpl(org.eclipse.tycho.core.shared.MavenContextImpl) BuildContext(org.eclipse.tycho.p2.tools.BuildContext) MavenContext(org.eclipse.tycho.core.shared.MavenContext) ReactorProjectIdentitiesStub(org.eclipse.tycho.test.util.ReactorProjectIdentitiesStub) ReactorProjectIdentities(org.eclipse.tycho.ReactorProjectIdentities) File(java.io.File) DestinationRepositoryDescriptor(org.eclipse.tycho.p2.tools.DestinationRepositoryDescriptor) Before(org.junit.Before)

Example 7 with MavenContextImpl

use of org.eclipse.tycho.core.shared.MavenContextImpl in project tycho by eclipse.

the class MirrorStandaloneTest method initTestContext.

@Before
public void initTestContext() throws Exception {
    destinationRepo = new DestinationRepositoryDescriptor(tempFolder.newFolder("dest"), DEFAULT_NAME);
    subject = new MirrorApplicationServiceImpl();
    MavenContext mavenContext = new MavenContextImpl(null, logVerifier.getLogger());
    subject.setMavenContext(mavenContext);
    targetFolder = new BuildOutputDirectory(tempFolder.getRoot());
}
Also used : MavenContextImpl(org.eclipse.tycho.core.shared.MavenContextImpl) MavenContext(org.eclipse.tycho.core.shared.MavenContext) BuildOutputDirectory(org.eclipse.tycho.BuildOutputDirectory) DestinationRepositoryDescriptor(org.eclipse.tycho.p2.tools.DestinationRepositoryDescriptor) Before(org.junit.Before)

Aggregations

MavenContextImpl (org.eclipse.tycho.core.shared.MavenContextImpl)7 Before (org.junit.Before)6 File (java.io.File)5 MavenContext (org.eclipse.tycho.core.shared.MavenContext)5 Properties (java.util.Properties)2 DestinationRepositoryDescriptor (org.eclipse.tycho.p2.tools.DestinationRepositoryDescriptor)2 MavenSession (org.apache.maven.execution.MavenSession)1 BuildOutputDirectory (org.eclipse.tycho.BuildOutputDirectory)1 ReactorProjectIdentities (org.eclipse.tycho.ReactorProjectIdentities)1 MavenLoggerAdapter (org.eclipse.tycho.osgi.adapters.MavenLoggerAdapter)1 MavenRepositorySettingsStub (org.eclipse.tycho.p2.remote.testutil.MavenRepositorySettingsStub)1 BuildContext (org.eclipse.tycho.p2.tools.BuildContext)1 VerifierServiceImpl (org.eclipse.tycho.p2.tools.verifier.VerifierServiceImpl)1 ReactorProjectIdentitiesStub (org.eclipse.tycho.test.util.ReactorProjectIdentitiesStub)1