On 02/11/2007, at 12:37 PM, Andrew Lindesay wrote:
> I just renamed my Main to be "XYZMain" where "XYZ" was the prefix
> used over the whole project. I now use "XYZMain" as the default
> page. This seemed to "get around" the problem.
>
> cheers.
>
>> Class mainClass = _NSUtilities.classWithName("Main");
>> NSLog.out.appendln("Main class is " + mainClass.getName());
Another option (if the above doesn't always succeed)...
public Application()
{
<....>
findMeFirstClasses = ERXProperties.dictionaryForKey( <..> );
for ( Enumeration en = findMeFirstClasses.allKeys().objectEnumerator
(); en.hasMoreElements(); )
{
String key = ( String )en.nextElement();
String className = ( String )findMeFirstClasses.valueForKey( key );
_NSUtilities.setClassForName( Class.forName( className ), key );
}
}
And in your Properties file:
NSUtilities.shortNames={\
Main = "my.proj.package.Main";\
<...>
}
with regards,
--Lachlan Deck
This archive was generated by hypermail 2.0.0 : Fri Nov 02 2007 - 00:07:10 EDT