public String getArtifactVersion(String artifactName) { String version = billOfMaterials.getArtifactVersion(artifactName); return Versions.isLocal(version) ? Versions.fromLocal(version) : version; } }
public void writeArtifactConfig(BillOfMaterials bom, String artifactName, String profileName, String contents) { String version = bom.getArtifactVersion(artifactName); String name = googleProfileReader.profilePath(artifactName, version, profileName); writeTextObject(name, contents); }
public ArtifactSources getArtifactSources(String artifactName) { try { return services.getArtifactSources(artifactName); } catch (NoKnownArtifact ignored) { } try { return dependencies.getArtifactSources(artifactName); } catch (NoKnownArtifact ignored) { } return null; } }
public void writeBom(String version, String contents) { String name = googleProfileReader.bomPath(version); writeTextObject(name, contents); }
public InputStream readProfile(String artifactName, String version, String profileName) throws IOException { return pickProfileReader(version).readProfile(artifactName, version, profileName); }
public InputStream readArchiveProfile(String artifactName, String version, String profileName) throws IOException { return pickProfileReader(version).readArchiveProfile(artifactName, version, profileName); }
public BillOfMaterials readBom(String version) throws IOException { return pickProfileReader(version).readBom(version); }
@Override public InputStream readProfile(String artifactName, String version, String profileName) throws IOException { return getContents(profilePath(artifactName, version, profileName)); }
public InputStream readProfile(String artifactName, String version, String profileName) throws IOException { String path = profilePath(artifactName, version, profileName); return getContents(path); }
public String getArtifactCommit(String artifactName) { try { return services.getArtifactCommit(artifactName); } catch (NoKnownArtifact ignored) { } try { return dependencies.getArtifactCommit(artifactName); } catch (NoKnownArtifact ignored) { } throw new IllegalArgumentException("No artifact with name " + artifactName + " could be found in the BOM"); }
public String getArtifactVersion(String artifactName) { try { return services.getArtifactVersion(artifactName); } catch (NoKnownArtifact ignored) { } try { return dependencies.getArtifactVersion(artifactName); } catch (NoKnownArtifact ignored) { } throw new IllegalArgumentException("No artifact with name " + artifactName + " could be found in the BOM"); }
ArtifactSources getArtifactSources(String artifactName) { return getFieldArtifact(Dependencies.class, this, artifactName).getArtifactSources(); } }
String getArtifactVersion(String artifactName) { return getFieldArtifact(Services.class, this, artifactName).getVersion(); }
String getArtifactCommit(String artifactName) { return getFieldArtifact(Dependencies.class, this, artifactName).getCommit(); }
public Versions readVersions() throws IOException { if (googleProfileReader == null) { return null; } else { // git can't store these return googleProfileReader.readVersions(); } }
public InputStream readArchiveProfile(String artifactName, String version, String profileName) throws IOException { return readProfile(artifactName, version, profileName + ".tar.gz"); }
public String getArtifactVersion(String artifactName) { String version = billOfMaterials.getArtifactVersion(artifactName); return Versions.isLocal(version) ? Versions.fromLocal(version) : version; } }
ArtifactSources getArtifactSources(String artifactName) { return getFieldArtifact(Services.class, this, artifactName).getArtifactSources(); } }
String getArtifactVersion(String artifactName) { return getFieldArtifact(Dependencies.class, this, artifactName).getVersion(); }
String getArtifactCommit(String artifactName) { return getFieldArtifact(Services.class, this, artifactName).getCommit(); }