<java:class> in non source-folder [message #45706] |
Fri, 16 May 2008 11:41  |
Eclipse User |
|
|
|
Hey Paul,
some time ago I read about problems when the srcFolder attribute of a
<java:class> tag is not a "source folder". This is a problem for me, so I think
about switching to the <ws:file> tag. Before trying, I'd like to ask about
possible problems, e.g. in the template which is responsible for generating the
class content I use all other kinds of <java> tags. Do these in some way rely on
being "inside" a <java:file> tag?
What is the general advantage from using <java:class> over <ws:file>?
Thanks,
Felix
|
|
|
Re: <java:class> in non source-folder [message #45767 is a reply to message #45706] |
Fri, 16 May 2008 12:50   |
Eclipse User |
|
|
|
I don't seem to get it done. The problem is that I suddenly get no more
exception traces. Jet just says "errors during execution".
I tried it like that. Maybe someone finds what I do wrong, I am unsure about
those variables in xpath functions..
<c:iterate select="//Class" var="_class">
<ws:file path="{concat($genpath,replace($_class/@__qname, '.','/'),'.java')}"
template="templates/class.jet"/>
</c:iterate>
<c:iterate select="//Enumeration" var="_enum">
<ws:file path="{concat($genpath,replace($_enum/@__qname, '.','/'),'.java')}"
template="templates/enumeration.jet"/>
</c:iterate>
Thanks,
Felix
|
|
|
|
Re: <java:class> in non source-folder [message #46085 is a reply to message #45767] |
Wed, 21 May 2008 20:20  |
Eclipse User |
|
|
|
Felix:
I prefer:
<ws:file path="{$genpath}/{replace($_class/@__qname, '.','/')}.java"
template="templates/class.jet"/>
but, I don't see anything wrong with your example, unless $genpath doesn't
end with a /
Is there anything in the error log?
Paul
|
|
|
Powered by
FUDForum. Page generated in 0.04069 seconds