Sam,
I downloaded rhino1_7R2.zip from
ftp://ftp.mozilla.org/pub/mozilla.org/js/rhino1_7R2.zip
I compiled this simple little Java program:
package tmp;
import org.mozilla.javascript.ScriptRuntime;
public class Main {
public static void main(String[] args) {
System.out.println( ScriptRuntime.getMessage0(
"implementation.version"));
}
}
Against the js.jar from that distribution.
The output was:
Rhino 1.7 release 2 2009 03 22
The ant build files for Rhino include a filter which substitutes the
correct value for @implementation.vers...@. Are you by chance taking
the rhino source, plunking into an IDE and letting the IDE build it
without executing the filter?
Kevin
-----Original Message-----
From:
dev-tech-js-engine-rhino-bounces+kruland=motorola....@lists.mozilla.org
[mailto:[email protected]
lla.org] On Behalf Of Sam Howard
Sent: Wednesday, March 03, 2010 8:27 AM
To: [email protected]
Subject: Re: Rhino version from jar
Still no luck on this - I only recieve '@IMPLEMENTATION.VERSION@' as a
result. (Testing from latest builds on site.) Anybody have any other
ideas?
Thanks,
Sam
On 02/03/2010 16:25, Ruland Kevin-BHP637 wrote:
> Sam,
>
> Try this:
>
> String rhinoversion =
> ScriptRuntime.getMessage0("implementation.version")
>
> Kevin
>
> -----Original Message-----
> From:
>
dev-tech-js-engine-rhino-bounces+kruland=motorola....@lists.mozilla.org
>
[mailto:[email protected]
> lla.org] On Behalf Of Sam Howard
> Sent: Tuesday, March 02, 2010 10:21 AM
> To: [email protected]
> Subject: Rhino version from jar
>
> Hi guys,
>
> Does anyone know if it's possible to retrieve the version number from
> the jar? I had a look through the documentation but couldn't find
> anything. Any help would be much appreciated.
>
> Thanks,
>
> Sam
>
> _______________________________________________
> dev-tech-js-engine-rhino mailing list
> [email protected]
> https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino
>
>
>
_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino
_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino