Re: Deployment resources paths in nightly

From: Lachlan Deck (lachlan.dec..mail.com)
Date: Tue Nov 25 2008 - 15:59:02 EST

  • Next message: Lachlan Deck: "Re: Deployment resources paths in nightly"

    On 26/11/2008, at 12:06 AM, Mike Schrag wrote:

    >> // 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 ...

    You're correct. I'd not noticed as the line following took care of
    'doing the right thing'.

    with regards,

    --
    

    Lachlan Deck



    This archive was generated by hypermail 2.0.0 : Tue Nov 25 2008 - 15:59:56 EST