Note: I asked this same question on the Eclipse Web Tools Project (WTP) forum but unfortunately haven't had any responses. I'm hoping someone on SO has some insight.
Is there a specification for the .settings/org.eclipse.wst.common.component
Eclipse metadata file somewhere?
I know there is an XSD available but I want more information, specifically whether paths should have a leading slash or not.
E.g. when creating a new Dynamic Web Project in Eclipse, the org.eclipse.wst.common.component
file will have an entry that looks something like this:
<wb-resource deploy-path="/" source-path="/src/main/webapp"/>
However if the Gradle Eclipse plugin (or Maven Eclipse plugin) generates the file it will look like this (notice the absence of the leading slash for the source-path
attribute):
<wb-resource deploy-path="/" source-path="src/main/webapp"/>
The latter version causes trouble for me when deploying to WebSphere Liberty Profile and I want to figure out where it should be fixed?
Should the Gradle plugin rather add the leading slash?
Or is the leading slash optional and WebSphere Liberty must be more tolerant of configuration differences?
Or both?
For more information about my specific problem you can see the following posts: