public class Application extends WOApplication {
public static void main(String[] argv) {
WOApplication.main(argv, Application.class);
}
public Application() {
NSLog.out.appendln("Welcome to " + name() + " !");
/* ** put your initialization code in here ** */
if ( System.getProperty("WOFrameworksBaseURL") != null ) setFrameworksBaseURL(System.getProperty("WOFrameworksBaseURL"));
frameworksBaseURL();
if ( System.getProperty("WOFrameworksBaseURL") != null ) setFrameworksBaseURL(System.getProperty("WOFrameworksBaseURL"));
frameworksBaseURL();
}
@Override
public String frameworksBaseURL() {
NSLog.out.appendln("frameworksBaseURL() pre super: WOProperties.TheFrameworksBaseURL = " + WOProperties.TheFrameworksBaseURL);
NSLog.out.appendln("frameworksBaseURL() pre super: System.getProperty(WOFrameworksBaseURL) = " + System.getProperty("WOFrameworksBaseURL"));
String s = super.frameworksBaseURL();
NSLog.out.appendln("frameworksBaseURL() post super: WOProperties.TheFrameworksBaseURL = " + WOProperties.TheFrameworksBaseURL);
NSLog.out.appendln("frameworksBaseURL() post super: System.getProperty(WOFrameworksBaseURL) = " + System.getProperty("WOFrameworksBaseURL"));
NSLog.out.appendln("frameworksBaseURL() post super: super.frameworksBaseURL() = " + s);
NSLog.out.appendln("");
return s;
}
@Override
public void setFrameworksBaseURL(String string) {
NSLog.out.appendln("setFrameworksBaseURL(String string): change from " + WOProperties.TheFrameworksBaseURL + " to " + string);
super.setFrameworksBaseURL(string);
}
}
WEBOBJECTS 5.4.3 - SHOWS BUG
[2009-1-11 11:26:8 EST] <main> WOFrameworksBaseURL=/WebObjects/WeboTest.woa/Frameworks
...
[2009-1-11 11:26:8 EST] <main> WebObjects version = 5.4.3
...
Welcome to WeboTest !
setFrameworksBaseURL(String string): change from null to /WebObjects/WeboTest.woa/Frameworks
frameworksBaseURL() pre super: WOProperties.TheFrameworksBaseURL = /WebObjects/WeboTest.woa/Frameworks
frameworksBaseURL() pre super: System.getProperty(WOFrameworksBaseURL) = /WebObjects/WeboTest.woa/Frameworks
setFrameworksBaseURL(String string): change from /WebObjects/WeboTest.woa/Frameworks to /WebObjects/Frameworks <--WHO'S CALLING THIS
frameworksBaseURL() post super: WOProperties.TheFrameworksBaseURL = /WebObjects/Frameworks
frameworksBaseURL() post super: System.getProperty(WOFrameworksBaseURL) = /WebObjects/WeboTest.woa/Frameworks
frameworksBaseURL() post super: super.frameworksBaseURL() = /WebObjects/Frameworks
setFrameworksBaseURL(String string): change from /WebObjects/Frameworks to /WebObjects/WeboTest.woa/Frameworks
frameworksBaseURL() pre super: WOProperties.TheFrameworksBaseURL = /WebObjects/WeboTest.woa/Frameworks
frameworksBaseURL() pre super: System.getProperty(WOFrameworksBaseURL) = /WebObjects/WeboTest.woa/Frameworks
frameworksBaseURL() post super: WOProperties.TheFrameworksBaseURL = /WebObjects/WeboTest.woa/Frameworks
frameworksBaseURL() post super: System.getProperty(WOFrameworksBaseURL) = /WebObjects/WeboTest.woa/Frameworks
frameworksBaseURL() post super: super.frameworksBaseURL() = /WebObjects/WeboTest.woa/Frameworks
WEBOBJECTS 5.3.3 - NO BUG
[2009-01-11 11:32:02 EST] <main> WOFrameworksBaseURL=/WebObjects/WeboTest.woa/Frameworks
...
Welcome to WeboTest !
setFrameworksBaseURL(String string): change from null to /WebObjects/WeboTest.woa/Frameworks
frameworksBaseURL() pre super: WOProperties.TheFrameworksBaseURL = /WebObjects/WeboTest.woa/Frameworks
frameworksBaseURL() pre super: System.getProperty(WOFrameworksBaseURL) = /WebObjects/WeboTest.woa/Frameworks
frameworksBaseURL() post super: WOProperties.TheFrameworksBaseURL = /WebObjects/WeboTest.woa/Frameworks
frameworksBaseURL() post super: System.getProperty(WOFrameworksBaseURL) = /WebObjects/WeboTest.woa/Frameworks
frameworksBaseURL() post super: super.frameworksBaseURL() = /WebObjects/WeboTest.woa/Frameworks
setFrameworksBaseURL(String string): change from /WebObjects/WeboTest.woa/Frameworks to /WebObjects/WeboTest.woa/Frameworks
frameworksBaseURL() pre super: WOProperties.TheFrameworksBaseURL = /WebObjects/WeboTest.woa/Frameworks
frameworksBaseURL() pre super: System.getProperty(WOFrameworksBaseURL) = /WebObjects/WeboTest.woa/Frameworks
frameworksBaseURL() post super: WOProperties.TheFrameworksBaseURL = /WebObjects/WeboTest.woa/Frameworks
frameworksBaseURL() post super: System.getProperty(WOFrameworksBaseURL) = /WebObjects/WeboTest.woa/Frameworks
frameworksBaseURL() post super: super.frameworksBaseURL() = /WebObjects/WeboTest.woa/Frameworks
Cheers
Tim