I have a fix. Let me keep at it and I'll send you the solution as a patch file. I made really good progress last night but I'm not doing the other mojo's until I get the usecase scenario figured out. Once I get the configuration methods all figured out and actually test them, we're golden.
Thanks
David
On 11/10/06, Scott Ryan <[EMAIL PROTECTED]> wrote:
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 configurationI'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
