[prev in list] [next in list] [prev in thread] [next in thread] 

List:       groovy-user
Subject:    [groovy-user] Re: GroovyScriptEngine: Problem with own ResourceConnector
From:       muehle <muehlenhoff () ponton ! de>
Date:       2013-09-25 7:29:50
Message-ID: 1380094190064-5717066.post () n5 ! nabble ! com
[Download RAW message or body]

Hello,

sorry, I forgot to tell:

Groovy: 2.1.7
OS: Windows 7
No servlet container

It looks like the script cache uses the toExternalForm (of the URL object)
to put the script into the cache. The second time the script is used the
same key is used to get the cached script and unfortunately it is used as
script name (name is then file:/..) and hand over to the
getResourceConnector .

Interesting is, the File class of Java doesn't care about the strange names:
new File(root,"file:/path/to/file") will resolve to the correct file.

Regards,
Jens




--
View this message in context: \
http://groovy.329449.n5.nabble.com/GroovyScriptEngine-Problem-with-own-ResourceConnector-tp5717048p5717066.html
 Sent from the groovy - user mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic