Re: Deployment resources paths in nightly

From: Mike Schrag (mschra..dimension.com)
Date: Tue Nov 25 2008 - 08:06:48 EST

  • Next message: Mike Schrag: "Re: Deployment resources paths in nightly"

    > // fix frameworks/app webserver resources url.
    > LOG.info( "WOApplicationBaseURL:" + applicationBaseURL() );
    > if
    > ( ERXProperties
    > .booleanForKeyWithDefault
    > ( "ISHFrameworksBaseURL.relativeToApplicationBaseURL", true ) )
    > {
    > String realAppName = NSPathUtilities.lastPathComponent( path() );
    > NSArray< String > components = new NSArray< String >( new String[] {
    > realAppName, "Contents", "Frameworks"
    > } );
    > String newBaseURL = applicationBaseURL();
    > for ( Enumeration< String > en = components.objectEnumerator();
    > en.hasMoreElements(); )
    > newBaseURL =
    > NSPathUtilities.stringByAppendingPathComponent( newBaseURL,
    > en.nextElement() );
    > ERXProperties.setStringForKey( "WOFrameworksBaseURL", newBaseURL );
    > setFrameworksBaseURL( newBaseURL );
    > }
    > LOG.info( "WOFrameworksBaseURL:" + frameworksBaseURL() );
    > ...

    This line:
                    ERXProperties.setStringForKey( "WOFrameworksBaseURL", newBaseURL );
    has the key/value backwards, it looks like ...

    ms



    This archive was generated by hypermail 2.0.0 : Tue Nov 25 2008 - 08:07:35 EST