You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Conor MacNeill <co...@cortexebusiness.com.au> on 2003/01/08 08:47:44 UTC
Re: a quick ?? on the dtd task of ejbjar
Deacon, Garrett (DST-CLT) wrote:
> In the documentation it specifies two mandatory parameters, public id and
> location. WRT location it states that ...
>
> "The location of the local copy of the DTD. This can either be a file or a
> resource loadable from the classpath"
> What exactly does the second part mean. Can I specifiy a jar file that
> contains the dtds?
>
You can't specify the jar directly - you can specify a resource within a jar
and that jar is on the classpath. Java is able to load non-class files as
resources from the classpath and <ejbjar> uses this to load the dtd.
For example, the weblogic element will attempt to load the dtd from the resource
/weblogic/ejb20/dd/xml/weblogic700-ejb-jar.dtd
If you look in the weblogic jars, you'll see it in there with this path.
Conor
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>