My laptop's screen is screwed and there is no CVS at work, so I can't 
help in a couple of days, but:

Take a look at MergeTagsHandler.merge/getMergeContent. That's where the 
String is converted to an URL, so maybe you get a better understanding 
by looking at it.

I agree with Erik's whining about being backwards compatible, but it 
applies to releases, not current CVS snapshots.

I'm pretty confident that the new URL stuff is backwards compatible 
though. Try building the samples, and check the weblogic-ejb-jar.xml. 
It gets the security role stuff at the bottom from a merge file, and I 
didn't have to put any weird file://///////////// stuff in order to 
make it work.

Aslak

----- Original Message -----
From: "Andrew Stevens" <[EMAIL PROTECTED]>
Date: Monday, February 11, 2002 4:37 pm
Subject: [Xdoclet-devel] File->URL for templates

> Now that the various template files use java.net.URL instead of 
> java.io.File 
> to hold them, what syntax does it need to specify custom templates 
> to use?
> 
> I had been using
>         <entitybmp templatefile="entitybmp.j"/>
>         <dao templatefile="dao.j"/>
> in the ejbdoclet task for the DAO amendments I'm working on, to 
> save having 
> to keep rebuilding the xdoclet.jar all the time (<dao/> is a new 
> subtask I 
> added).  However, that now gives an exception
> "java.net.MalformedURLException: no protocol: entitybmp.j"
> 
> If I change it to use "file:entitybmp.j" & "file:dao.j" I get
> java.lang.NullPointerException
>    at sun.net.www.ParseUtil.decode(ParseUtil.java:44)
>    at 
> sun.net.www.protocol.file.FileURLConnection.connect
(FileURLConnection.java:62)
>    ...
> while "file://entitybmp.j" & "file://dao.j" gives 
> "java.net.UnknownHostException: dao.j"
> 
> Is it still possible to use the custom templates in this way, and 
> if so 
> what's the correct format for the templatefile parameter?
> 
> 
> Andrew.
> 
> _________________________________________________________________
> Chat with friends online, try MSN Messenger: http://messenger.msn.com
> 
> 
> _______________________________________________
> Xdoclet-devel mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/xdoclet-devel
> 


_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to