use of org.eclipse.tycho.core.shared.MavenContext in project tycho by eclipse.
the class VerifierServiceImplTest method setup.
@Before
public void setup() {
subject = new VerifierServiceImpl();
logger = new ErrorStoreMemoryLog();
MavenContext mavenContext = new MavenContextImpl(null, logger);
subject.setMavenContext(mavenContext);
}
use of org.eclipse.tycho.core.shared.MavenContext in project tycho by eclipse.
the class RemoteAgentMavenMirrorsTest method initSubject.
@Before
public void initSubject() throws Exception {
File localRepository = tempManager.newFolder("localRepo");
MavenContext mavenContext = new MavenContextImpl(localRepository, OFFLINE, logVerifier.getLogger(), new Properties());
mavenRepositorySettings = new MavenRepositorySettingsStub();
subject = new RemoteAgent(mavenContext, mavenRepositorySettings, OFFLINE);
}
use of org.eclipse.tycho.core.shared.MavenContext in project tycho by eclipse.
the class MavenContextConfigurator method afterFrameworkStarted.
@Override
public void afterFrameworkStarted(EmbeddedEquinox framework) {
MavenSession session = context.getSession();
File localRepoRoot = new File(session.getLocalRepository().getBasedir());
MavenLoggerAdapter mavenLogger = new MavenLoggerAdapter(logger, false);
Properties globalProps = getGlobalProperties(session);
MavenContext mavenContext = new MavenContextImpl(localRepoRoot, session.isOffline(), mavenLogger, globalProps);
framework.registerService(MavenContext.class, mavenContext);
}
use of org.eclipse.tycho.core.shared.MavenContext 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);
}
use of org.eclipse.tycho.core.shared.MavenContext 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());
}
Aggregations