use of org.commonjava.maven.galley.spi.transport.Transport in project galley by Commonjava.
the class CoreFixture method initMissingComponents.
public void initMissingComponents() throws Exception {
if (coreBuilder == null) {
initGalley();
}
final List<Transport> transports = coreBuilder.getEnabledTransports();
if (transports == null || transports.isEmpty()) {
System.out.println("Initializing test transport implicitly");
initTestTransport();
}
coreBuilder.initMissingComponents();
if (temp != null && cacheDir == null) {
cacheDir = temp.newFolder("cache");
}
Logger logger = LoggerFactory.getLogger(getClass());
logger.debug("Initializing FileCacheProvider with:\n Cache directory: {}\n PathGenerator: {}\n FileEventManager: {}\n TransferDecorator: {}", cacheDir, coreBuilder.getPathGenerator(), coreBuilder.getFileEvents(), coreBuilder.getTransferDecorator());
coreBuilder.withCache(new FileCacheProvider(cacheDir, coreBuilder.getPathGenerator(), coreBuilder.getFileEvents(), coreBuilder.getTransferDecorator()));
}
use of org.commonjava.maven.galley.spi.transport.Transport in project galley by Commonjava.
the class GalleyMavenFixture method withExtraTransports.
public GalleyMavenFixture withExtraTransports(final Transport... transports) {
checkInitialized();
this.extraTransports = transports;
for (final Transport transport : transports) {
mavenBuilder.withAdditionalTransport(transport);
}
return this;
}
Aggregations