Skip to content
This repository was archived by the owner on Jul 23, 2020. It is now read-only.

Commit 68a43c4

Browse files
committed
* Use java 1.7 in generated projects.
* Bump plug-in version to 0.2.8.
1 parent 4020616 commit 68a43c4

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

META-INF/MANIFEST.MF

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
22
Bundle-ManifestVersion: 2
33
Bundle-Name: EclipseCoder Java Support
44
Bundle-SymbolicName: net.fornwall.eclipsecoder.javasupport; singleton:=true
5-
Bundle-Version: 0.2.7
5+
Bundle-Version: 0.2.8
66
Bundle-ClassPath: .
77
Bundle-Vendor: Fredrik Fornwall
88
Export-Package: net.fornwall.eclipsecoder.javasupport

src/net/fornwall/eclipsecoder/javasupport/JavaLanguageSupport.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,12 @@ public IFile createLanguageProject(IProject project) throws CoreException, JavaM
5050

5151
IClasspathEntry sourceEntry = JavaCore.newSourceEntry(javaProject.getPath());
5252
IClasspathEntry conEntry = JavaCore.newContainerEntry(new Path(JavaRuntime.JRE_CONTAINER
53-
+ "/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"));
53+
+ "/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"));
5454
IClasspathEntry junitEntry = JavaCore.newContainerEntry(new Path("org.eclipse.jdt.junit.JUNIT_CONTAINER/4"));
5555
javaProject.setRawClasspath(new IClasspathEntry[] { sourceEntry, conEntry, junitEntry }, null);
5656

57-
// current topcoder setup uses java 1.5:
58-
// http://www.topcoder.com/tc?module=Static&d1=help&d2=generalFaq#java3
59-
final String JAVA_VERSION = JavaCore.VERSION_1_5;
57+
// current topcoder setup uses java 1.7:
58+
final String JAVA_VERSION = JavaCore.VERSION_1_7;
6059
javaProject.setOption(JavaCore.COMPILER_COMPLIANCE, JAVA_VERSION);
6160
javaProject.setOption(JavaCore.COMPILER_SOURCE, JAVA_VERSION);
6261
javaProject.setOption(JavaCore.COMPILER_CODEGEN_TARGET_PLATFORM, JAVA_VERSION);

0 commit comments

Comments
 (0)