Commit 2a977176 authored by Romain Bioteau's avatar Romain Bioteau

chore(java8) update java compliance to java 8 (#216)

parent 8d249d0f
......@@ -9,7 +9,7 @@
<launcherArgs>
<programArgs>--launcher.XXMaxPermSize512m -clearPersistedState
</programArgs>
<vmArgs>-Dosgi.requiredJavaVersion=1.7 -Dfile.encoding=UTF8 -Xmx512m -Xms128m -XX:MaxPermSize=256m
<vmArgs>-Dosgi.requiredJavaVersion=1.8 -Dfile.encoding=UTF8 -Xmx512m -Xms128m
</vmArgs>
<vmArgsLin>-Djava.endorsed.dirs=endorsed
</vmArgsLin>
......@@ -36,9 +36,9 @@
</launcher>
<vm>
<linux include="false">org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7</linux>
<macos include="false">org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7</macos>
<windows include="false">org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7</windows>
<linux include="false">org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8</linux>
<macos include="false">org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8</macos>
<windows include="false">org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8</windows>
</vm>
<license>
......@@ -91,7 +91,6 @@ along with this program. If not, see &lt;http://www.gnu.org/licenses/&gt;.
<property name="osgi.nls.warnings" value="ignore" />
<property name="portal.version" value="${bundle.version}" />
<property name="product.version" value="${project.version}" />
<property name="simulation.version" value="${simulation.version}" />
</configurations>
</product>
......@@ -98,7 +98,7 @@
<validVersionList>
<validVersion>
<bitness>@os_arch@</bitness>
<minVersion>1.7</minVersion>
<minVersion>1.8</minVersion>
<maxVersion>1.8</maxVersion>
<requireJDK>0</requireJDK>
<vendor></vendor>
......@@ -245,7 +245,7 @@
</createDirectory>
<runProgram>
<program>tar</program>
<programArguments>-xzf "${installdir}/jre-8u45-macosx-x64.gz" -C "${installdir}/jre"</programArguments>
<programArguments>-xzf "${installdir}/jre-8u112-macosx-x64.tar.gz" -C "${installdir}/jre"</programArguments>
<progressText>Installing JRE...</progressText>
<ruleList>
<platformTest>
......@@ -255,7 +255,7 @@
</runProgram>
<runProgram>
<program>mv</program>
<programArguments>"${installdir}/jre/jre1.8.0_45.jre/Contents" "${installdir}/jre"</programArguments>
<programArguments>"${installdir}/jre/jre1.8.0_112.jre/Contents" "${installdir}/jre"</programArguments>
<ruleList>
<platformTest>
<type>osx</type>
......@@ -264,7 +264,7 @@
</runProgram>
<runProgram>
<program>rm</program>
<programArguments>-rf "${installdir}/jre-8u45-macosx-x64.gz"</programArguments>
<programArguments>-rf "${installdir}/jre-8u112-macosx-x64.tar.gz"</programArguments>
<ruleList>
<platformTest>
<type>osx</type>
......
......@@ -285,11 +285,11 @@
<properties>
<if.task>net.sf.antcontrib.logic.IfTask</if.task>
<jre.url>http://repositories.rd.lan/tools/studio-tools</jre.url>
<jre.winx86.url>jre1.7.0_55-windows</jre.winx86.url>
<jre.winx86.x64.url>jre1.7.0_55-windows-x64</jre.winx86.x64.url>
<jre.linuxx86.url>jre1.7.0_55-linux</jre.linuxx86.url>
<jre.linuxx86.x64.url>jre1.7.0_55-linux-x64</jre.linuxx86.x64.url>
<jre.osx.url>jre-8u45-macosx-x64</jre.osx.url>
<jre.winx86.url>jre-8u112-windows-i586</jre.winx86.url>
<jre.winx86.x64.url>jre-8u112-windows-x64</jre.winx86.x64.url>
<jre.linuxx86.url>jre-8u112-linux-i586</jre.linuxx86.url>
<jre.linuxx86.x64.url>jre-8u112-linux-x64</jre.linuxx86.x64.url>
<jre.osx.url>jre-8u112-macosx-x64</jre.osx.url>
</properties>
<build>
<plugins>
......@@ -503,16 +503,17 @@
<isset property="jre.present" />
</not>
<then>
<get src="${jre.url}/${jre.winx86.url}.zip" dest="${user.home}"
<get src="${jre.url}/${jre.winx86.url}.tar.gz" dest="${user.home}"
verbose="true" />
<unzip src="${user.home}/${jre.winx86.url}.zip" dest="${user.home}" />
<delete file="${user.home}/${jre.winx86.url}.zip" />
<gunzip src="${user.home}/${jre.winx86.url}.tar.gz"/>
<untar src="${user.home}/${jre.winx86.url}.tar" dest="${user.home}/${jre.winx86.url}"/>
<delete file="${user.home}/${jre.winx86.url}.tar" />
<delete file="${user.home}/${jre.winx86.url}.tar.gz" />
</then>
</if>
<copy
todir="${project.build.directory}/products/${productId}/win32/win32/x86/jre">
<fileset dir="${user.home}/${jre.winx86.url}/jre" />
<fileset dir="${user.home}/${jre.winx86.url}/jre1.8.0_112" />
</copy>
</tasks>
</configuration>
......@@ -534,17 +535,17 @@
<isset property="jre.present" />
</not>
<then>
<get src="${jre.url}/${jre.winx86.x64.url}.zip" dest="${user.home}"
<get src="${jre.url}/${jre.winx86.x64.url}.tar.gz" dest="${user.home}"
verbose="true" />
<unzip src="${user.home}/${jre.winx86.x64.url}.zip"
dest="${user.home}" />
<delete file="${user.home}/${jre.winx86.x64.url}.zip" />
<gunzip src="${user.home}/${jre.winx86.x64.url}.tar.gz"/>
<untar src="${user.home}/${jre.winx86.x64.url}.tar" dest="${user.home}/${jre.winx86.x64.url}"/>
<delete file="${user.home}/${jre.winx86.x64.url}.tar" />
<delete file="${user.home}/${jre.winx86.x64.url}.tar.gz" />
</then>
</if>
<copy
todir="${project.build.directory}/products/${productId}/win32/win32/x86_64/jre">
<fileset dir="${user.home}/${jre.winx86.x64.url}/jre" />
<fileset dir="${user.home}/${jre.winx86.x64.url}/jre1.8.0_112" />
</copy>
</tasks>
</configuration>
......@@ -566,16 +567,16 @@
<isset property="jre.present" />
</not>
<then>
<get src="${jre.url}/${jre.linuxx86.url}.zip" dest="${user.home}" />
<unzip src="${user.home}/${jre.linuxx86.url}.zip"
dest="${user.home}" />
<delete file="${user.home}/${jre.linuxx86.url}.zip" />
<get src="${jre.url}/${jre.linuxx86.url}.tar.gz" dest="${user.home}" />
<gunzip src="${user.home}/${jre.linuxx86.url}.tar.gz"/>
<untar src="${user.home}/${jre.linuxx86.url}.tar" dest="${user.home}/${jre.linuxx86.url}"/>
<delete file="${user.home}/${jre.linuxx86.url}.tar" />
<delete file="${user.home}/${jre.linuxx86.url}.tar.gz" />
</then>
</if>
<copy
todir="${project.build.directory}/products/${productId}/linux/gtk/x86/jre">
<fileset dir="${user.home}/${jre.linuxx86.url}/jre" />
<fileset dir="${user.home}/${jre.linuxx86.url}/jre1.8.0_112" />
</copy>
</tasks>
</configuration>
......@@ -597,16 +598,16 @@
<isset property="jre.present" />
</not>
<then>
<get src="${jre.url}/${jre.linuxx86.x64.url}.zip" dest="${user.home}" />
<unzip src="${user.home}/${jre.linuxx86.x64.url}.zip"
dest="${user.home}" />
<delete file="${user.home}/${jre.linuxx86.x64.url}.zip" />
<get src="${jre.url}/${jre.linuxx86.x64.url}.tar.gz" dest="${user.home}" />
<gunzip src="${user.home}/${jre.linuxx86.x64.url}.tar.gz"/>
<untar src="${user.home}/${jre.linuxx86.x64.url}.tar" dest="${user.home}/${jre.linuxx86.x64.url}"/>
<delete file="${user.home}/${jre.linuxx86.x64.url}.tar" />
<delete file="${user.home}/${jre.linuxx86.x64.url}.tar.gz" />
</then>
</if>
<copy
todir="${project.build.directory}/products/${productId}/linux/gtk/x86_64/jre">
<fileset dir="${user.home}/${jre.linuxx86.x64.url}/jre" />
<fileset dir="${user.home}/${jre.linuxx86.x64.url}/jre1.8.0_112" />
</copy>
</tasks>
</configuration>
......@@ -619,8 +620,8 @@
</goals>
<configuration>
<tasks>
<get src="${jre.url}/${jre.osx.url}.gz"
dest="${project.build.directory}/products/${productId}/macosx/cocoa/x86_64/${jre.osx.url}.gz" />
<get src="${jre.url}/${jre.osx.url}.tar.gz"
dest="${project.build.directory}/products/${productId}/macosx/cocoa/x86_64/${jre.osx.url}.tar.gz" />
</tasks>
</configuration>
</execution>
......
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="output" path="target/classes"/>
</classpath>
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
org.eclipse.jdt.core.compiler.compliance=1.6
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
org.eclipse.jdt.core.compiler.compliance=1.8
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
org.eclipse.jdt.core.compiler.source=1.6
org.eclipse.jdt.core.compiler.source=1.8
......@@ -4,5 +4,5 @@ Bundle-Name: Bonita Studio models
Bundle-SymbolicName: org.bonitasoft.studio-models;singleton:=true
Bundle-Version: 7.4.2.qualifier
Bundle-Vendor: BonitaSoft S.A.
Bundle-RequiredExecutionEnvironment: JavaSE-1.7
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Bundle-ActivationPolicy: lazy
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="output" path="bin"/>
......
......@@ -9,5 +9,5 @@ Require-Bundle: org.eclipse.ui,
org.eclipse.core.runtime,
org.eclipse.ui.ide.application;bundle-version="1.0.0",
org.bonitasoft.studio.pics;bundle-version="1.0.0"
Bundle-RequiredExecutionEnvironment: JavaSE-1.7
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Bundle-ActivationPolicy: lazy
......@@ -2,7 +2,7 @@
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="src-test/java"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="output" path="bin"/>
</classpath>
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
org.eclipse.jdt.core.compiler.compliance=1.7
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
org.eclipse.jdt.core.compiler.compliance=1.8
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.source=1.7
org.eclipse.jdt.core.compiler.source=1.8
......@@ -6,7 +6,7 @@ Bundle-Version: 7.4.2.qualifier
Bundle-ClassPath: .
Bundle-Vendor: %providerName
Bundle-Localization: plugin
Bundle-RequiredExecutionEnvironment: JavaSE-1.7
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Export-Package: org.bonitasoft.studio.actors,
org.bonitasoft.studio.actors.i18n;x-friends:="org.bonitasoft.studio.actors.tests,org.bonitasoft.studio.test.swtbot.util,org.bonitasoft.studio.tests",
org.bonitasoft.studio.actors.model.organization,
......
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="src-test/java"/>
......
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
org.eclipse.jdt.core.compiler.compliance=1.7
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
org.eclipse.jdt.core.compiler.compliance=1.8
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.source=1.7
org.eclipse.jdt.core.compiler.source=1.8
......@@ -70,7 +70,7 @@ Require-Bundle: org.bonitasoft.studio.diagram,
org.codehaus.groovy.eclipse.dsl;bundle-version="2.9.2",
org.eclipse.core.net,
org.eclipse.osgi
Bundle-RequiredExecutionEnvironment: JavaSE-1.7
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Bundle-ActivationPolicy: lazy
Import-Package: javax.inject;version="1.0.0",
org.bonitasoft.engine.api,
......
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="src-test/java"/>
......
......@@ -13,6 +13,6 @@ Require-Bundle: org.eclipse.ui,
org.eclipse.ui.browser,
org.bonitasoft.studio.preferences,
org.bonitasoft.studio.common
Bundle-RequiredExecutionEnvironment: JavaSE-1.7
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Bundle-ActivationPolicy: lazy
Export-Package: org.bonitasoft.studio.browser.operation
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="src-test/java"/>
......
......@@ -49,7 +49,7 @@ Require-Bundle: org.bonitasoft.studio.engine;bundle-version="1.0.0",
org.eclipse.e4.ui.model.workbench;bundle-version="1.1.0.v20140512-1820",
org.eclipse.e4.core.di;bundle-version="1.4.0",
org.eclipse.e4.core.di.extensions;bundle-version="0.12.0"
Bundle-RequiredExecutionEnvironment: JavaSE-1.7
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Bundle-ActivationPolicy: lazy
Import-Package: org.bonitasoft.engine.api,
org.bonitasoft.engine.bdm,
......
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="src-test/java"/>
......
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
org.eclipse.jdt.core.compiler.compliance=1.7
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
org.eclipse.jdt.core.compiler.compliance=1.8
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.source=1.7
org.eclipse.jdt.core.compiler.source=1.8
......@@ -4,7 +4,7 @@ Bundle-Name: Diagram Utils
Bundle-SymbolicName: org.bonitasoft.studio.common.diagram;singleton:=true
Bundle-Version: 7.4.2.qualifier
Bundle-Vendor: BonitaSoft S.A.
Bundle-RequiredExecutionEnvironment: JavaSE-1.7
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Require-Bundle: org.eclipse.gmf.runtime.lite.svg;bundle-version="1.0.0",
org.bonitasoft.studio.model;bundle-version="1.0.0",
org.bonitasoft.studio.common;bundle-version="1.0.0",
......
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="src-test/java"/>
......
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
org.eclipse.jdt.core.compiler.compliance=1.7
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
org.eclipse.jdt.core.compiler.compliance=1.8
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.source=1.7
org.eclipse.jdt.core.compiler.source=1.8
......@@ -38,7 +38,7 @@ Require-Bundle: org.eclipse.ui,
org.eclipse.e4.core.di;bundle-version="1.4.0",
org.bonitasoft.studio.tests-utils;bundle-version="7.1.0";resolution:=optional,
com.google.guava;bundle-version="11.0.1";visibility:=reexport
Bundle-RequiredExecutionEnvironment: JavaSE-1.7
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Bundle-ActivationPolicy: lazy
Export-Package: org.apache.xbean.classloader,
org.bonitasoft.studio.common.repository,
......
......@@ -88,9 +88,9 @@ public class CreateBonitaBPMProjectOperationTest {
orderedProjectCreation.verify(project).open(monitor);
orderedProjectCreation.verify(project).setDescription(any(IProjectDescription.class), eq(monitor));
verify(javaProject).setOption(JavaCore.COMPILER_COMPLIANCE, JavaCore.VERSION_1_7);
verify(javaProject).setOption(JavaCore.COMPILER_SOURCE, JavaCore.VERSION_1_7);
verify(javaProject).setOption(JavaCore.COMPILER_CODEGEN_TARGET_PLATFORM, JavaCore.VERSION_1_7);
verify(javaProject).setOption(JavaCore.COMPILER_COMPLIANCE, JavaCore.VERSION_1_8);
verify(javaProject).setOption(JavaCore.COMPILER_SOURCE, JavaCore.VERSION_1_8);
verify(javaProject).setOption(JavaCore.COMPILER_CODEGEN_TARGET_PLATFORM, JavaCore.VERSION_1_8);
verify(javaProject).setOption(JavaCore.CORE_JAVA_BUILD_INVALID_CLASSPATH, "ignore");
}
......
......@@ -39,8 +39,8 @@ public class CreateBonitaBPMProjectOperation implements IWorkspaceRunnable {
private IProject project;
private final IWorkspace workspace;
private final String projectName;
private final Set<String> builders = new HashSet<String>();
private final Set<String> natures = new HashSet<String>();
private final Set<String> builders = new HashSet<>();
private final Set<String> natures = new HashSet<>();
public CreateBonitaBPMProjectOperation(final IWorkspace workspace, final String projectName) {
this.workspace = workspace;
......@@ -76,9 +76,9 @@ public class CreateBonitaBPMProjectOperation implements IWorkspaceRunnable {
private void createJavaProject(final IProgressMonitor monitor) {
monitor.subTask(Messages.initializingJavaProject);
final IJavaProject javaProject = asJavaProject();
javaProject.setOption(JavaCore.COMPILER_COMPLIANCE, JavaCore.VERSION_1_7);
javaProject.setOption(JavaCore.COMPILER_SOURCE, JavaCore.VERSION_1_7);
javaProject.setOption(JavaCore.COMPILER_CODEGEN_TARGET_PLATFORM, JavaCore.VERSION_1_7);
javaProject.setOption(JavaCore.COMPILER_COMPLIANCE, JavaCore.VERSION_1_8);
javaProject.setOption(JavaCore.COMPILER_SOURCE, JavaCore.VERSION_1_8);
javaProject.setOption(JavaCore.COMPILER_CODEGEN_TARGET_PLATFORM, JavaCore.VERSION_1_8);
javaProject.setOption(JavaCore.CORE_JAVA_BUILD_INVALID_CLASSPATH, "ignore");
monitor.worked(1);
}
......
......@@ -92,7 +92,7 @@ public class ProjectClasspathFactory {
}
protected IExecutionEnvironment javaRuntimeEnvironment() {
return JavaRuntime.getExecutionEnvironmentsManager().getEnvironment("JavaSE-1.7");
return JavaRuntime.getExecutionEnvironmentsManager().getEnvironment("JavaSE-1.8");
}
protected IClasspathEntry newContainerEntry(final IPath path, final boolean isExported) {
......
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry exported="true" kind="lib" path="lib/imgscalr-lib-3.2.jar"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="src-test/java"/>
......
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
org.eclipse.jdt.core.compiler.compliance=1.7
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
org.eclipse.jdt.core.compiler.compliance=1.8
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.source=1.7
org.eclipse.jdt.core.compiler.source=1.8
......@@ -50,7 +50,7 @@ Require-Bundle: org.eclipse.core.runtime,
org.eclipse.e4.core.services,
org.eclipse.e4.core.di;bundle-version="1.4.0",
com.google.guava;bundle-version="11.0.1";visibility:=reexport
Bundle-RequiredExecutionEnvironment: JavaSE-1.7
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Bundle-ActivationPolicy: lazy
Import-Package: org.bonitasoft.engine.api,
org.bonitasoft.engine.bpm.bar,
......