Can you post the working version just for closure?
I’m glad to hear it’s working now.
Thanks!
~Brad
Can you post the working version just for closure?
I’m glad to hear it’s working now.
Thanks!
~Brad
Sure…
var javaLoader = “”;
var libPath = ‘/system/plugins/WURFL-lib’;
var wurflFile = ExpandPath(libPath & ‘\wurfl.xml’);
var wurflObj = createObject(“java”,“java.io.File”).init(wurflFile);
super.init(arguments.controller);
javaLoader = getPlugin(“JavaLoader”);
javaLoader.appendPaths(ExpandPath(libPath));
javaLoader.create(“net.sourceforge.wurfl.core.CustomWURFLHolder”).init(wurflObj);
I am also going to submit this back to forgeBox, and maybe twist Luis’s arm to include it as a standard plugin. I can see great value for something like this in the framework.
Regards,
Andrew Scott
Sure…
var javaLoader = “”;
var libPath = ‘/system/plugins/WURFL-lib’;
var wurflFile = ExpandPath(libPath & ‘\wurfl.xml’);
var wurflObj = createObject(“java”,“java.io.File”).init(wurflFile);
super.init(arguments.controller);
javaLoader = getPlugin(“JavaLoader”);
javaLoader.appendPaths(ExpandPath(libPath));
javaLoader.create(“net.sourceforge.wurfl.core.CustomWURFLHolder”).init(wurflObj);
I am also going to submit this back to forgeBox, and maybe twist Luis’s arm to include it as a standard plugin. I can see great value for something like this in the framework.
It is a mobile device detection system, in a nutshell.
Regards,
Andrew Scott