| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 8dbb396 commit b7d4cb0
15 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -191,21 +191,21 @@ public static Iterable<JDKToolsLibrary> makeFromRuntime(GlobalModel model) { | |||
| 191 | 191 | list.add(new JDKToolsLibrary(version, null, compiler, debugger, javadoc)); | |
| 192 | 192 | } | |
| 193 | 193 | ||
| 194 | - if (JavaVersion.JAVA_6.compareTo(version.majorVersion())>=0) { | ||
| 195 | - // at least Java 6, try Eclipse compiler | ||
| 196 | - msg(" at least Java 6, try EclipseCompiler"); | ||
| 197 | - // provide "UNKNOWN 6.0" as version | ||
| 198 | - FullVersion eclipseVersion = JavaVersion.parseFullVersion(JavaVersion.JAVA_6.fullVersion().versionString(), | ||
| 199 | - "Eclipse",""); | ||
| 200 | - msg(" version for Eclipse: "+eclipseVersion); | ||
| 201 | - compiler = getCompilerInterface("edu.rice.cs.drjava.model.compiler.EclipseCompiler", eclipseVersion); | ||
| 202 | - msg(" compiler="+compiler.getClass().getName()); | ||
| 203 | - if (compiler!=NoCompilerAvailable.ONLY) { | ||
| 204 | - // if we have found a compiler, add it | ||
| 205 | - msg(" compiler found"); | ||
| 206 | - list.add(new JDKToolsLibrary(eclipseVersion, null, compiler, debugger, javadoc)); | ||
| 207 | - } | ||
| 208 | - } | ||
| 194 | + // if (JavaVersion.JAVA_6.compareTo(version.majorVersion())>=0) { | ||
| 195 | + // // at least Java 6, try Eclipse compiler | ||
| 196 | + // msg(" at least Java 6, try EclipseCompiler"); | ||
| 197 | + // // provide "UNKNOWN 6.0" as version | ||
| 198 | + // FullVersion eclipseVersion = JavaVersion.parseFullVersion(JavaVersion.JAVA_6.fullVersion().versionString(), | ||
| 199 | + // "Eclipse",""); | ||
| 200 | + // msg(" version for Eclipse: "+eclipseVersion); | ||
| 201 | + // compiler = getCompilerInterface("edu.rice.cs.drjava.model.compiler.EclipseCompiler", eclipseVersion); | ||
| 202 | + // msg(" compiler="+compiler.getClass().getName()); | ||
| 203 | + // if (compiler!=NoCompilerAvailable.ONLY) { | ||
| 204 | + // // if we have found a compiler, add it | ||
| 205 | + // msg(" compiler found"); | ||
| 206 | + // list.add(new JDKToolsLibrary(eclipseVersion, null, compiler, debugger, javadoc)); | ||
| 207 | + // } | ||
| 208 | + // } | ||
| 209 | 209 | msg(" compilers found: "+list.size()); | |
| 210 | 210 | ||
| 211 | 211 | if (list.size()==0) { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -111,16 +111,6 @@ public class JarJDKToolsLibrary extends JDKToolsLibrary { | |||
| 111 | 111 | "com.sun.xml.internal.rngom", | |
| 112 | 112 | "com.sun.xml.internal.xsom", | |
| 113 | 113 | "org.relaxng", | |
| 114 | - // | ||
| 115 | - // // Mint: | ||
| 116 | - // "com.sun.tools.javac", | ||
| 117 | - // "com.sun.tools.javac.tree", | ||
| 118 | - // "com.sun.tools.javac.comp", | ||
| 119 | - // "com.sun.tools.javac.main", | ||
| 120 | - // "edu.rice.cs.mint", | ||
| 121 | - // "edu.rice.cs.mint.comp", | ||
| 122 | - // "edu.rice.cs.mint.runtime", | ||
| 123 | - // "edu.rice.cs.mint.runtime.mspTree" | ||
| 124 | 114 | }); | |
| 125 | 115 | } | |
| 126 | 116 | ||
@@ -203,7 +193,7 @@ else if (f.getName().equals("tools.jar")) { | |||
| 203 | 193 | File[] jars = IOUtil.attemptListFiles(libDir, IOUtil.extensionFilePredicate("jar")); | |
| 204 | 194 | if (jars != null) { bootClassPath.addAll(Arrays.asList(jars)); } | |
| 205 | 195 | } | |
| 206 | - bootClassPath.addAll(additionalBootClassPath); | ||
| 196 | + if (additionalBootClassPath!=null) { bootClassPath.addAll(additionalBootClassPath); } | ||
| 207 | 197 | if (bootClassPath.isEmpty()) { bootClassPath = null; } // null defers to the compiler's default behavior | |
| 208 | 198 | ||
| 209 | 199 | try { | |
@@ -455,8 +445,7 @@ public static Iterable<JarJDKToolsLibrary> search(GlobalModel model) { | |||
| 455 | 445 | if (lib.isValid()) { | |
| 456 | 446 | FullVersion v = lib.version(); | |
| 457 | 447 | Map<FullVersion, Iterable<JarJDKToolsLibrary>> mapToAddTo = results; | |
| 458 | - if (v.vendor().equals(JavaVersion.VendorType.UNKNOWN) || | ||
| 459 | - ((desc!=null)&&(desc.isCompound()))) { mapToAddTo = compoundResults; } | ||
| 448 | + if ((desc!=null)&&(desc.isCompound())) { mapToAddTo = compoundResults; } | ||
| 460 | 449 | ||
| 461 | 450 | if (mapToAddTo.containsKey(v)) { mapToAddTo.put(v, IterUtil.compose(lib, mapToAddTo.get(v))); } | |
| 462 | 451 | else { mapToAddTo.put(v, IterUtil.singleton(lib)); } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1029,6 +1029,12 @@ | |||
| 1029 | 1029 | <property name="nextgen-tools-1" location="${nextgen-home}/nextgen2.jar" /> | |
| 1030 | 1030 | <available property="nextgen-tools" value="${nextgen-tools-1}" file="${nextgen-tools-1}" /> | |
| 1031 | 1031 | ||
| 1032 | + <property name="nextgen-tools-2" location="${nextgen-home}/jars/nextgen2.jar" /> | ||
| 1033 | + <available property="nextgen-tools" value="${nextgen-tools-2}" file="${nextgen-tools-2}" /> | ||
| 1034 | + | ||
| 1035 | + <property name="nextgen-tools-3" location="${nextgen-home}/built" /> | ||
| 1036 | + <available property="nextgen-tools" value="${nextgen-tools-3}" file="${nextgen-tools-3}/edu/rice/cs/nextgen2/compiler/Main.class" /> | ||
| 1037 | + | ||
| 1032 | 1038 | <fail message="Can't find nextgen2.jar in the Nextgen home: ${nextgen-home}" unless="nextgen-tools" /> | |
| 1033 | 1039 | </target> | |
| 1034 | 1040 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments