-
-
Notifications
You must be signed in to change notification settings - Fork 155
/
Copy pathArtifactIds4Scala2.java
53 lines (44 loc) · 1.38 KB
/
ArtifactIds4Scala2.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/*
* This is free and unencumbered software released into the public domain.
* See UNLICENSE.
*/
package scala_maven_dependency;
import java.util.Arrays;
import java.util.List;
public class ArtifactIds4Scala2 implements ArtifactIds {
static final String SCALA_LIBRARY_ARTIFACTID = "scala-library";
static final String SCALA_COMPILER_ARTIFACTID = "scala-compiler";
static List<String> SCALA_DISTRO_ARTIFACTS =
Arrays.asList(
SCALA_LIBRARY_ARTIFACTID,
"scala-swing",
"scala-dbc",
SCALA_COMPILER_ARTIFACTID,
"scalap",
"partest");
@Override
public List<String> scalaDistroArtifactIds() throws Exception {
return SCALA_DISTRO_ARTIFACTS;
}
@Override
public String scalaLibraryArtifactId() throws Exception {
return SCALA_LIBRARY_ARTIFACTID;
}
@Override
public String scalaCompilerArtifactId() throws Exception {
return SCALA_COMPILER_ARTIFACTID;
}
@Override
public String scalaDocArtifactId() throws Exception {
return null;
}
public String compilerMainClassName(boolean useFsc) throws Exception {
return useFsc ? "scala.tools.nsc.CompileClient" : "scala.tools.nsc.Main";
}
public String consoleMainClassName() throws Exception {
return "scala.tools.nsc.MainGenericRunner";
}
public String apidocMainClassName() throws Exception {
return "scala.tools.nsc.ScalaDoc";
}
}