Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 147044 | Differences between
and this patch

Collapse All | Expand All

(-)Ant Tools Support/org/eclipse/ant/internal/ui/launchConfigurations/AntJRETab.java (-2 / +8 lines)
Lines 184-196 Link Here
184
			 	
184
			 	
185
			 	//null out the vm type and jre container path to get the default vm install from JavaRuntime
185
			 	//null out the vm type and jre container path to get the default vm install from JavaRuntime
186
			 	copy.setAttribute(IJavaLaunchConfigurationConstants.ATTR_VM_INSTALL_TYPE, (String)null);
186
			 	copy.setAttribute(IJavaLaunchConfigurationConstants.ATTR_VM_INSTALL_TYPE, (String)null);
187
			 	copy.setAttribute(IJavaLaunchConfigurationConstants.ATTR_JRE_CONTAINER_PATH, (String)null);
187
			 	String oldpath = copy.getAttribute(IJavaLaunchConfigurationConstants.ATTR_JRE_CONTAINER_PATH, (String)null);
188
			 	if(oldpath != null) {
189
			 		copy.setAttribute(IJavaLaunchConfigurationConstants.ATTR_JRE_CONTAINER_PATH, (String)null);
190
			 	}
188
			 	IVMInstall defaultVMInstall= getDefaultVMInstall(copy);
191
			 	IVMInstall defaultVMInstall= getDefaultVMInstall(copy);
189
			 	if (defaultVMInstall != null) {
192
			 	if (defaultVMInstall != null) {
190
			 		//update if required
193
			 		//update if required
191
			 		setDefaultVMInstallAttributes(defaultVMInstall, copy);
194
			 		setDefaultVMInstallAttributes(defaultVMInstall, copy);
192
			 	}
195
			 	}
193
				if (copy.isDirty() && !copy.isReadOnly()) {
196
			 	if(oldpath != null) {
197
			 		copy.setAttribute(IJavaLaunchConfigurationConstants.ATTR_JRE_CONTAINER_PATH, oldpath);
198
			 	}
199
			 	if (copy.isDirty() && !copy.isReadOnly()) {
194
					configuration= copy.doSave();
200
					configuration= copy.doSave();
195
				}
201
				}
196
			 }
202
			 }

Return to bug 147044