Skip to contentSkip to conversation

Set JavaSource=1.6 for headless build

PATCH New Ioana Grigoropol 1 participant 1 message Sep 5, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Set JavaSource=1.6 for headless build

- @Override annotations can be used starting with jre >= 1.6
- Headless build plugin limited the java compilation to 1.5 (no matter what the system jdk is)

---
 .../org.yocto.sdk.headless.build/build.properties  |    4 ++--
 .../sdk/remotetools/wizards/bsp/MainPage.java      |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
features/org.yocto.sdk.headless.build/build.properties +2 -2
index 24ccf99..9a3e4d9 100644
@@ -247,10 +247,10 @@ javacVerbose=true
 #compilerArg=
 
 # Default value for the version of the source code. This value is used when compiling plug-ins that do not set the Bundle-RequiredExecutionEnvironment or set javacSource in build.properties
-javacSource=1.5
+javacSource=1.6
 
 # Default value for the version of the byte code targeted. This value is used when compiling plug-ins that do not set the Bundle-RequiredExecutionEnvironment or set javacTarget in build.properties.
-javacTarget=1.5
+javacTarget=1.6
 
 #individualSourceBundles=true
 
plugins/org.yocto.sdk.remotetools/src/org/yocto/sdk/remotetools/wizards/bsp/MainPage.java +2 -2
index 861cb08..fea1c76 100644
@@ -520,12 +520,12 @@ public class MainPage extends WizardPage {
 		BuildLocationListener(String value){
 			this.value = value;
 		}
-		//@Override
+		@Override
 		public void focusGained(FocusEvent e) {
 			value = ((Text)e.getSource()).getText();
 		}
 
-		//@Override
+		@Override
 		public void focusLost(FocusEvent e) {
 			if(!((Text)e.getSource()).getText().equals(value)) {
 				checkBuildDir();
Signature · 1 line
1.7.9.5