Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
81 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package xsbti; | ||
|
||
import java.net.URL; | ||
|
||
public interface IvyRepository extends Repository | ||
{ | ||
String id(); | ||
URL url(); | ||
String ivyPattern(); | ||
String artifactPattern(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package xsbti; | ||
|
||
import java.net.URL; | ||
|
||
public interface MavenRepository extends Repository | ||
{ | ||
String id(); | ||
URL url(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package xsbti; | ||
|
||
public enum Predefined | ||
{ | ||
Local("local"), | ||
MavenLocal("maven-local"), | ||
MavenCentral("maven-central"), | ||
ScalaToolsReleases("scala-tools-releases"), | ||
ScalaToolsSnapshots("scala-tools-snapshots"); | ||
|
||
private final String label; | ||
private Predefined(String label) { this.label = label; } | ||
public String toString() { return label; } | ||
|
||
public static Predefined toValue(String s) | ||
{ | ||
for(Predefined p : values()) | ||
if(s.equals(p.toString())) | ||
return p; | ||
|
||
StringBuilder msg = new StringBuilder("Expected one of "); | ||
for(Predefined p : values()) | ||
msg.append(p.toString()).append(", "); | ||
msg.append("got '").append(s).append("'."); | ||
throw new RuntimeException(msg.toString()); | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
launch/interface/src/main/java/xsbti/PredefinedRepository.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package xsbti; | ||
|
||
public interface PredefinedRepository extends Repository | ||
{ | ||
Predefined id(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package xsbti; | ||
|
||
public interface Repository {} |