View Javadoc
1   package org.kuali.common.devops.model;
2   
3   import org.kuali.common.util.maven.model.Artifact;
4   
5   public enum Artifacts {
6   
7   	JDK6(HotSpot.GID, HotSpot.JDK6, HotSpot.JDK6_LATEST, HotSpot.LINUX_X64, "zip"), //
8   	JDK7(HotSpot.GID, HotSpot.JDK7, HotSpot.JDK7_LATEST, HotSpot.LINUX_X64, "zip"); //
9   
10  	private final Artifact artifact;
11  
12  	private Artifacts(String groupId, String artifactId, String version, String classifier, String type) {
13  		this.artifact = new Artifact.Builder(groupId, artifactId, version).classifier(classifier).type(type).build();
14  	}
15  
16  	public Artifact getArtifact() {
17  		return artifact;
18  	}
19  
20  	private static final class HotSpot {
21  
22  		private static final String JDK6_LATEST = "1.6.0-u45";
23  		private static final String JDK7_LATEST = "1.7.0-u40";
24  
25  		private static final String GID = "com.oracle";
26  		private static final String JDK6 = "jdk6";
27  		private static final String JDK7 = "jdk7";
28  		private static final String LINUX_X64 = "linux-x64";
29  
30  	}
31  
32  }