[xmlc] XMLC_SOURCE_FILE problems

[email protected] Thu, 01 Sep 2005 00:57:21 +0200
Newsgroups gmane.comp.java.enhydra.xmlc
Message-ID <[email protected]>
This is a multi-part message in MIME format...

------------=_1125529047-10599-313
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

I am generating the interfaces and implementations for my html pages with the following ant task syntax:

<xmlc
  verbose="on"
  srcdir="/webapps/myproject/root"
  sourceout="${target.dir}/xmlc/src"
  includes="**/*.html"
  options="/webapps/myproject/root/WEB-INF/options.xmlc"
  packagename="package.for.my.project"/>

I want to keep my html files in my webapp's root directory (this seems like what everyone would want to do) so that any html files that I don't have a servlet to change with xmlc can simply be served as static html.

But for some reason, when I go to call xmlcFactory.create(indexHTML.class), it is looking for the html file in "/webapps/myproject/root/package/for/my/project/index.html" instead of "/webapps/myproject/root/index.html", where I want it to look.  This is obviously due to the generated value for XMLC_SOURCE_FILE in the implementation class.  Why, why, WHY would it set that to the package rather than using the path it found the html file in under the "srcdir" that I passed it?

I have to have the "packagedir" parameter because I want to have more than one xmlc project at a time, and they can't all be classes called indexHTML in the root package.

Maybe I'm missing something, but it seems like my requirements of keeping the html files in the web root and having more than one xmlc project at a time would be quite common.  What can I do???

(and please don't say that I need to create a symlink for every html file!)

Cheers,
Erik


------------=_1125529047-10599-313
Content-Type: text/plain; name="message-footer.txt"
Content-Disposition: inline; filename="message-footer.txt"
Content-Transfer-Encoding: 8bit


--
You receive this message as a subscriber of the [email protected] mailing list.
To unsubscribe: mailto:[email protected]
For general help: mailto:[email protected]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws

------------=_1125529047-10599-313--