Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 150839 Details for
Bug 293685
JAX-RPC client JSPs: JSPG0036E: Failed to find resource /sampleEchoProxy/TestClient.jsp
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Patch
org.eclipse.jst.j2ee.web_Patch_R3_0_5_patches.txt (text/plain), 4.71 KB, created by
Neeraj Agrawal
on 2009-10-29 12:16:09 EDT
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Neeraj Agrawal
Created:
2009-10-29 12:16:09 EDT
Size:
4.71 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jst.j2ee.web >Index: webproject/org/eclipse/jst/j2ee/web/project/facet/WebFacetInstallDelegate.java >=================================================================== >RCS file: /cvsroot/webtools/jeetools/plugins/org.eclipse.jst.j2ee.web/webproject/org/eclipse/jst/j2ee/web/project/facet/WebFacetInstallDelegate.java,v >retrieving revision 1.37.2.3.2.1 >diff -u -r1.37.2.3.2.1 WebFacetInstallDelegate.java >--- webproject/org/eclipse/jst/j2ee/web/project/facet/WebFacetInstallDelegate.java 6 Oct 2009 03:47:59 -0000 1.37.2.3.2.1 >+++ webproject/org/eclipse/jst/j2ee/web/project/facet/WebFacetInstallDelegate.java 29 Oct 2009 16:10:35 -0000 >@@ -14,6 +14,7 @@ > import java.io.ByteArrayInputStream; > import java.io.UnsupportedEncodingException; > import java.lang.reflect.InvocationTargetException; >+import java.util.ArrayList; > import java.util.Arrays; > import java.util.List; > >@@ -31,6 +32,7 @@ > import org.eclipse.jdt.core.IClasspathEntry; > import org.eclipse.jdt.core.IJavaProject; > import org.eclipse.jdt.core.JavaCore; >+import org.eclipse.jdt.core.JavaModelException; > import org.eclipse.jem.util.logger.proxy.Logger; > import org.eclipse.jst.common.project.facet.WtpUtils; > import org.eclipse.jst.common.project.facet.core.ClasspathHelper; >@@ -38,6 +40,8 @@ > import org.eclipse.jst.j2ee.internal.common.J2EEVersionUtil; > import org.eclipse.jst.j2ee.internal.common.classpath.J2EEComponentClasspathContainer; > import org.eclipse.jst.j2ee.internal.common.classpath.J2EEComponentClasspathContainerUtils; >+import org.eclipse.jst.j2ee.internal.plugin.J2EEPlugin; >+import org.eclipse.jst.j2ee.internal.plugin.J2EEPreferences; > import org.eclipse.jst.j2ee.internal.web.classpath.WebAppLibrariesContainer; > import org.eclipse.jst.j2ee.model.IModelProvider; > import org.eclipse.jst.j2ee.model.ModelProviderManager; >@@ -59,6 +63,7 @@ > import org.eclipse.wst.common.frameworks.datamodel.IDataModelOperation; > import org.eclipse.wst.common.project.facet.core.IDelegate; > import org.eclipse.wst.common.project.facet.core.IProjectFacetVersion; >+import org.eclipse.wst.project.facet.ProductManager; > > public final class WebFacetInstallDelegate extends J2EEFacetInstallDelegate implements IDelegate { > >@@ -99,7 +104,8 @@ > > String contextRoot = model.getStringProperty(IWebFacetInstallDataModelProperties.CONTEXT_ROOT); > setContextRootPropertyIfNeeded(c, contextRoot); >- setOutputFolder(model, c); >+ //setOutputFolder(model, c); >+ setJavaOutputPropertyIfNeeded(model, c); > > final IVirtualFolder webroot = c.getRootFolder(); > if (webroot.getProjectRelativePath().equals(new Path("/"))) //$NON-NLS-1$ >@@ -266,4 +272,52 @@ > } > } > } >+ >+ private void setJavaOutputPropertyIfNeeded(IDataModel model, final IVirtualComponent c) { >+ // Make sure output folder is set properly for web projects, and the product setting for single root structure is maintained. >+ // We may need to change the existing setup >+ >+ if (ProductManager.shouldUseSingleRootStructure()) { >+ String outputFolder = J2EEPlugin.getDefault().getJ2EEPreferences().getString(J2EEPreferences.Keys.DYN_WEB_OUTPUT_FOLDER); >+ >+ IJavaProject jproj = JavaCore.create(c.getProject()); >+ IClasspathEntry[] current = null; >+ boolean webinf = false; >+ IPath pjpath = c.getProject().getFullPath(); >+ try { >+ current = jproj.getRawClasspath(); >+ List updatedList = new ArrayList(); >+ IPath sourcePath = null; >+ boolean changeNeeded = false; >+ for (int i = 0; i < current.length; i++) { >+ IClasspathEntry entry = current[i]; >+ if ((entry.getEntryKind() == IClasspathEntry.CPE_SOURCE) && (entry.getOutputLocation() != null && entry.getOutputLocation().toString().indexOf(outputFolder) == -1)) { >+ //output different than the preference value >+ sourcePath = entry.getPath(); >+ updatedList.add(JavaCore.newSourceEntry(sourcePath)); >+ changeNeeded = true; >+ } >+ else >+ updatedList.add(entry); >+ } >+ IPath currentDefaultOutput = null; >+ currentDefaultOutput = jproj.getOutputLocation(); >+ if (currentDefaultOutput.toString().indexOf(outputFolder) == -1) >+ changeNeeded = true; >+ if (changeNeeded) { >+ IClasspathEntry[] updated = (IClasspathEntry[])updatedList.toArray(new IClasspathEntry[updatedList.size()]); >+ IPath outdir = pjpath.append(outputFolder); >+ jproj.setRawClasspath(updated,outdir ,null); >+ jproj.save(null, true); >+ } >+ } catch (JavaModelException e) { >+ Logger.getLogger().logError(e); >+ } >+ } >+ // Now just set the property >+ String existing = c.getMetaProperties().getProperty("java-output-path"); //$NON-NLS-1$ >+ if (existing == null) >+ setOutputFolder(model, c); >+ } >+ > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 293685
: 150839