public Artifact getMetadataArtifact() { if (metadataArtifact == null) { metadataArtifact = DefaultArtifact.newIvyArtifact(resolvedRevId, resolvedPublicationDate); } return metadataArtifact; }
public Artifact getMetadataArtifact(ModuleRevisionId mrid, Resource res) { return DefaultArtifact.newIvyArtifact(mrid, new Date(res.getLastModified())); }
public Artifact getMetadataArtifact(ModuleRevisionId mrid, Resource res) { return DefaultArtifact.newIvyArtifact(mrid, new Date(res.getLastModified())); }
private ArtifactOrigin getDefaultMetadataArtifactOrigin(ModuleRevisionId mrid) { // it's important to say the origin is not local to make sure it won't ever be used for // anything else than original token return new ArtifactOrigin(DefaultArtifact.newIvyArtifact(mrid, null), false, getIvyFileInCache(mrid).getPath()); }
private boolean isDependencyModuleExcluded(DependencyDescriptor dd, String rootModuleConf, ModuleRevisionId dependencyRevisionId, String conf) { Artifact a = DefaultArtifact.newIvyArtifact(dependencyRevisionId, null); if (isRoot()) { // no callers, but maybe some exclude Boolean exclude = doesExclude(md, rootModuleConf, new String[] {rootModuleConf}, dd, a, new Stack()); return exclude == null ? false : exclude.booleanValue(); } return callers.doesCallersExclude(rootModuleConf, a); }
public File getIvyFileInCache(ModuleRevisionId mrid) { String file = IvyPatternHelper.substitute(getIvyPattern(), DefaultArtifact.newIvyArtifact(mrid, null)); return new File(getRepositoryCacheRoot(), file); }
defaultMrids.add(mrid); } else { Artifact metadataArtifact = DefaultArtifact.newIvyArtifact(mrid, pubdate); MetadataArtifactDownloadReport madr = new MetadataArtifactDownloadReport(
public ResolvedResource findIvyFileRef(DependencyDescriptor dd, ResolveData data) { ModuleRevisionId mrid = dd.getDependencyRevisionId(); if (isM2compatible()) { mrid = convertM2IdForResourceSearch(mrid); } return findResourceUsingPatterns(mrid, ivyPatterns, DefaultArtifact.newIvyArtifact(mrid, data.getDate()), getRMDParser(dd, data), data.getDate()); }
public void analyse(String pattern, DependencyAnalyser depAnalyser) { JarModuleFinder finder = new JarModuleFinder(pattern); ModuleDescriptor[] mds = depAnalyser.analyze(finder.findJarModules()); Message.info("found " + mds.length + " modules"); for (int i = 0; i < mds.length; i++) { File ivyFile = new File(IvyPatternHelper.substitute( pattern, DefaultArtifact.newIvyArtifact(mds[i].getModuleRevisionId(), mds[i].getPublicationDate()))); try { Message.info("generating " + ivyFile); XmlModuleDescriptorWriter.write(mds[i], ivyFile); } catch (IOException e) { Message.debug(e); } } }
replaceConfigurationWildcards(); getMd().setModuleArtifact( DefaultArtifact.newIvyArtifact(getMd().getResolvedModuleRevisionId(), getMd() .getPublicationDate())); if (!artifactsDeclared) {
if (options.getSrcIvyPattern() != null) { File ivyFile = settings.resolveFile(IvyPatternHelper.substitute( options.getSrcIvyPattern(), DefaultArtifact.newIvyArtifact(pubmrid, new Date()))); if (!ivyFile.exists()) { throw new IllegalArgumentException("ivy file to publish not found for " + mrid