Hi,

I'm using Maven 3.0.3 and trying to develop my own Maven plugin.  I'm having
trouble getting my configuration set properly.  I want to set a member field
that is a Boolean.  In my Mojo, I have


    public class SeleniumTestMojo extends AbstractMojo {

        private String results;
        private Boolean appendResults;
        …

        public void setAppendResults(Boolean appendResults) {
                System.out.println("calling append results with " + 
appendResults);
                this.appendResults = appendResults;
        }


but when I invoke this plugin from another project, a "null" is getting
passed into "appendResults".  Here is how I have it configured ...

        
                        <plugin>
                                <groupId>com.myco.systems</groupId>
                                <artifactId>maven-selenium-plugin</artifactId>
                                <executions>
                                        <execution>
                                                <phase>integration-test</phase>
                                                <id>integration-test</id>
                                                <configuration>
                                                        
<results>Results.html</results>
                                                        
<appendResults>true</appendResults>
                                                        …
                                                </configuration>
                                                <goals>
                                                        
<goal>seleniumtest</goal>
                                                </goals>
                                        </execution>
                                </executions> 
                        </plugin>

Any ideas why I'm getting "nulL" passed in to the setter and how I can
adjust my configuration or Mojo to get it set correctly?

Thanks, - Dave


--
View this message in context: 
http://maven.40175.n5.nabble.com/Trouble-setting-Boolean-property-in-custom-Mojo-tp4677954p4677954.html
Sent from the Maven - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to