package org.jenkinsci.plugins.p4.client; import org.apache.maven.model.Model; import org.apache.maven.model.io.xpp3.MavenXpp3Reader; import org.codehaus.plexus.util.xml.pull.XmlPullParserException; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStreamReader; public class Identifier { private String product; private String version; public Identifier() throws IOException, XmlPullParserException { MavenXpp3Reader reader = new MavenXpp3Reader(); Model model = reader.read(new InputStreamReader(new FileInputStream("pom.xml"), "UTF-8")); version = model.getVersion(); product = model.getArtifactId(); String platform = System.getProperty("os.name"); platform = platform.replaceAll(" ", "_"); version += "/" + platform; } public String getVersion() { return version; } public String getProduct() { return product; } }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#6 | 21668 | Paul Allen | Identifier fix by adding filtering to resources. | ||
#5 | 21662 | Paul Allen | FindBug fixes for reading the POM. | ||
#4 | 21661 | Paul Allen | Expand Version and ID in Server log. | ||
#3 | 10030 | Paul Allen | Added plaform details to version string. | ||
#2 | 9851 | Paul Allen | Merging using p4-jenkins | ||
#1 | 9690 | Paul Allen |
[Branching using p4-jenkins] Release 1.0.1 |
||
//guest/paul_allen/dev/p4-jenkins/p4-client/src/main/java/org/jenkinsci/plugins/p4/client/Identifier.java | |||||
#1 | 9672 | Paul Allen | Refactor name from 'p4_client' to 'p4'. | ||
//guest/paul_allen/dev/p4-jenkins/p4-client/src/main/java/org/jenkinsci/plugins/p4_client/client/Identifier.java | |||||
#1 | 8629 | Paul Allen |
Added p4java with connection/authorisation helper classes. Included SSL support and detection of Unicode servers. |