Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJay Arthanareeswaran2018-04-24 03:19:58 -0400
committerJay Arthanareeswaran2018-05-06 11:34:40 -0400
commit18cb8c18a0ece00d59fe97c8d820c8be6145f1c5 (patch)
treea1dfe71bba134d92de34ef824849c8810dc755ee /org.eclipse.jdt.compiler.apt
parent5a622059a48034d2d21098be9011db82419a808d (diff)
downloadeclipse.jdt.core-18cb8c18a0ece00d59fe97c8d820c8be6145f1c5.tar.gz
eclipse.jdt.core-18cb8c18a0ece00d59fe97c8d820c8be6145f1c5.tar.xz
eclipse.jdt.core-18cb8c18a0ece00d59fe97c8d820c8be6145f1c5.zip
Change-Id: I5f370677dd238aabd52566a49f93c7a8ce707e2d Signed-off-by: Jay Arthanareeswaran <jarthana@in.ibm.com>
Diffstat (limited to 'org.eclipse.jdt.compiler.apt')
-rw-r--r--org.eclipse.jdt.compiler.apt/src/org/eclipse/jdt/internal/compiler/apt/util/EclipseFileManager.java14
1 files changed, 12 insertions, 2 deletions
diff --git a/org.eclipse.jdt.compiler.apt/src/org/eclipse/jdt/internal/compiler/apt/util/EclipseFileManager.java b/org.eclipse.jdt.compiler.apt/src/org/eclipse/jdt/internal/compiler/apt/util/EclipseFileManager.java
index ec9051533e..38ce78b664 100644
--- a/org.eclipse.jdt.compiler.apt/src/org/eclipse/jdt/internal/compiler/apt/util/EclipseFileManager.java
+++ b/org.eclipse.jdt.compiler.apt/src/org/eclipse/jdt/internal/compiler/apt/util/EclipseFileManager.java
@@ -87,6 +87,7 @@ public class EclipseFileManager implements StandardJavaFileManager {
File jrtHome;
JrtFileSystem jrtSystem;
public ResourceBundle bundle;
+ String releaseVersion;
public EclipseFileManager(Locale locale, Charset charset) {
this.locale = locale == null ? Locale.getDefault() : locale;
@@ -814,6 +815,13 @@ public class EclipseFileManager implements StandardJavaFileManager {
} else {
throw new IllegalArgumentException();
}
+ case "--relese": //$NON-NLS-1$
+ if (remaining.hasNext()) {
+ this.releaseVersion = remaining.next();
+ return true;
+ } else {
+ throw new IllegalArgumentException();
+ }
}
} catch (IOException e) {
// ignore
@@ -1206,7 +1214,9 @@ public class EclipseFileManager implements StandardJavaFileManager {
customEncoding,
isSourceOnly,
accessRuleSet,
- destPath, null);
+ destPath,
+ null,
+ this.releaseVersion);
if (currentClasspath != null) {
paths.add(currentClasspath);
}
@@ -1336,7 +1346,7 @@ public class EclipseFileManager implements StandardJavaFileManager {
new DefaultProblemFactory());
for (Path path : paths) {
List<Classpath> mp = ModuleFinder.findModules(path.toFile(), null,
- new Parser(problemReporter, true), null, true);
+ new Parser(problemReporter, true), null, true, this.releaseVersion);
for (Classpath cp : mp) {
Collection<String> moduleNames = cp.getModuleNames(null);
for (String string : moduleNames) {

Back to the top