use of org.eclipse.tycho.core.shared.MavenContextImpl in project tycho by eclipse.
the class PomDependencyCollectorTest method setUpSubject.
@Before
public void setUpSubject() throws Exception {
MavenContextImpl mavenContext = new MavenContextImpl(new File("dummy"), logVerifier.getLogger());
subject = new PomDependencyCollectorImpl(mavenContext);
}
use of org.eclipse.tycho.core.shared.MavenContextImpl 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.MavenContextImpl in project tycho by eclipse.
the class RemoteAgentCompositeLoadingTest method initSubject.
@Before
public void initSubject() throws Exception {
File localRepo = tempManager.newFolder("localRepo");
subject = new RemoteAgent(new MavenContextImpl(localRepo, logVerifier.getLogger()));
}
use of org.eclipse.tycho.core.shared.MavenContextImpl 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.MavenContextImpl 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);
}
Aggregations