I have the following records in my projects's .classpath
file:
<classpathentry kind="src" path="src/main/webapp"
output="build/webapp"/>
<classpathentry kind="src" path="src/main/java"
output="build/webapp/WEB-INF/classes"/>
<classpathentry kind="src" path="src/main/resources"
output="build/webapp/WEB-INF/classes"/>
My intention is
- copy
src/main/webapp
intobuild/webapp
- then compile
src/main/java
intobuild/webapp/WEB-INF/classes
- then copy
src/main/resources
intobuild/webapp/WEB-INF/classes
However the result is actually,
- copy
src/main/webapp
intobuild/webapp
- prevent
build/webapp/WEB-INF/classes
from ever existing, but maintain the exact copy betweensrc/main/webapp
andbuild/webapp
Which means build/webapp/WEB-INF/classes
can never be created and steps 2 & 3 never successful.
I even tried modifying step 1 to
<classpathentry kind="src" path="src/main/webapp" output="build/webapp"
excluding="WEB-INF/classes/**"/>
which did not help at all.
The order of the classpathentry records are inconsequential.
Q1. Please help advise how I should write my classpathentry records to hierarchically combine them into the same output directory, so that a classpathentry of a higher folder hierarchy would not nullify a classpathentry of a lower folder hierarchy.
Q2.
BTW, I cannot find any document specification for the xml tags and tag-attributes for eclipse .classpath
file. I have tried googling "eclipse classpathentry" to no avail. Could someone also point me to a document?
- Are "exported", "excluding", "kind", "path", "output" the only attributes for the classpathentry tag?
- What other tags are allowed in the .classpath file, for example?
- A functional explanation for each of those tags and tag-attributes.