public synchronized ExtractedFileSet use() throws IOException { counter++; if (file ==null) { file = delegate.extractFileSet(distribution); logger.debug("Not Cached {} {}", counter, file); } else { logger.debug("Cached {} {}", counter, file); } return file; }
public synchronized IExtractedFileSet use() throws IOException { _counter++; if (_file==null) { _file=_delegate.extractFileSet(_distribution); _logger.debug("Not Cached {} {}", _counter, _file); } else { _logger.debug("Cached {} {}", _counter, _file); } return _file; }
public EXECUTABLE prepare(CONFIG config, Distribution distribution) { try { IArtifactStore artifactStore = runtime.getArtifactStore(); if (artifactStore.checkDistribution(distribution)) { ExtractedFileSet files = runtime.getArtifactStore().extractFileSet(distribution); return newExecutable(config, distribution, runtime, files); } else { throw new DistributionException("could not find Distribution",distribution); } } catch (IOException iox) { String messageOnException = config.supportConfig().messageOnException().apply(getClass(), iox); if (messageOnException==null) { messageOnException="prepare executable"; } logger.error(messageOnException, iox); throw new DistributionException(distribution,iox); } }
public EXECUTABLE prepare(CONFIG config, Distribution distribution) throws DistributionException { try { IArtifactStore artifactStore = runtime.getArtifactStore(); if (artifactStore.checkDistribution(distribution)) { IExtractedFileSet files = runtime.getArtifactStore().extractFileSet(distribution); return newExecutable(config, distribution, runtime, files); } else { throw new DistributionException("could not find Distribution",distribution); } } catch (IOException iox) { String messageOnException = config.supportConfig().messageOnException(getClass(), iox); if (messageOnException==null) { messageOnException="prepare executable"; } throw new DistributionException(messageOnException, distribution,iox); } }