Let me look at the code this weekend.  There is a pretty deep hierarchy of inheritance and it may be broken.  I tested it early on but it may have changed.
 
 

Scott Ryan
Chief Technology Officer
Soaring Eagle L.L.C.
[EMAIL PROTECTED]
www.soaringeagleco.com
(303) 263-3044

-----Original Message-----
From: David Whitehurst [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 09, 2006 7:37 PM
To: [email protected]
Subject: [mojo-dev] Pom plugin configuration

I'm having problems getting my configuration properties in via the pom as such  ...

        <plugin>
              <groupId>org.codehaus.mojo</groupId>
              <artifactId>appfuse-maven-plugin</artifactId>
              <configuration>
                 <modelPackageName>org.appfuse.model</modelPackageName>
                 <processingProperties>appfuse.properties</processingProperties>
              </configuration>
            </plugin>

Note: the modelPackageName has a @parameter default-value = "org.appfuse.model"  My processingProperties uses @parameter default-value=""

Even if I set that default to "appfuse.properties" the getProcessingProperties() method below will stackOverflow (log shows null) and trace over and over ...

The method below is commented because if I try to get the configured property file (mojo this.processingProperties) I get a stackOverflowException.  I can't figure it out.  Can anyone see anything wrong with this.

    public Properties getProcessingProperties()
    {

        // TODO - fix this
        //Properties localProcessingProperties = new Properties(); // = this.getProcessingProperties();
       
        Properties localProcessingProperties = null;//this.getProcessingProperties();
        if ( localProcessingProperties == null )
        {
            localProcessingProperties = new Properties();
        }
       
        if ( localProcessingProperties == null )
        {
            localProcessingProperties = new Properties();
        }

        if ( !localProcessingProperties.containsKey( "jsfwebtemplatename" ) )
        {
            localProcessingProperties.put( "templateName", this.getJsfWebTemplateName() );
        }

        if ( !localProcessingProperties.containsKey( "jsfwebpackagename" ) )
        {
            localProcessingProperties.put( "packageName", this.getJsfWebPackageName() );
        }
       
        if ( !localProcessingProperties.containsKey( "filePattern" ) )
        {
            localProcessingProperties.put( "filePattern", this.getFilePattern());
        }
       
        return localProcessingProperties;
    }
David

Reply via email to