logo       

[xmlc] XMLC_SOURCE_FILE problems: msg#00015

java.enhydra.xmlc

Subject: [xmlc] XMLC_SOURCE_FILE problems

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


--
You receive this message as a subscriber of the xmlc@xxxxxxxxxxxxx mailing list.
To unsubscribe: mailto:xmlc-unsubscribe@xxxxxxxxxxxxx
For general help: mailto:sympa@xxxxxxxxxxxxx?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise