I tried to use the "parsexml" attribute of the resource tag as follows:
and in "userinput.xml", I have:
and in "glassfish/userinput.xml" I have:
When I compile the project, the compiler give an error such as:
If I check the referenced file "file:/C:/Users/brett/AppData/Local/Temp/izpp59850.tmp" it is completely empty. Looking at the source code of CompilerConfig.java, I don't see anything that is ever writing to the referenced file before it is parsed. At line 1333, I see the line:
This is trying to setup an XML reader on the temporary file. If I change this to:
then the code compiles fine and the included XML referenced by the "xinclude" is correctly included in "userInputSpec.xml".
I know that you have described a fix, but having a patch makes it easier for everyone to review