http://www.sonatype.com/books/mvnref-book/reference/writing-plugins-sect-mojo-params.html


So that would make it:

/**
 * @parameter
 */
private Boolean appendResults;
 

And you probably don't want to use the setter. This field already works.


 

-Robert


> Date: Mon, 8 Aug 2011 12:45:58 -0700
> From: [email protected]
> To: [email protected]
> Subject: RE: Trouble setting Boolean property in custom Mojo
> 
> Hi,
> 
> I didn't find anything about doclets in the link and am still lost. My
> plugin config mirrors the example. What's more bizarre is that within my
> plugin project when I test my config, it works fine. My test config file is
> …
> 
> <project xmlns="http://maven.apache.org/POM/4.0.0";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/maven-v4_0_0.xsd";>
> <build>
> <plugins> 
> <plugin>
> <groupId>com.myco.systems</groupId>
> <artifactId>maven-selenium-plugin</artifactId>
> <configuration>
> <results>Results.html</results>
> <appendResults>true</appendResults>
> ...
> </configuration>
> </plugin>
> </plugins>
> </build>
> </project>
> 
> and my test file is …
> 
> /**
> * Basic test of execution
> */
> public void testExecution() throws Exception {
> try {
> final File pom = getTestFile(POMFILE);
> assertNotNull(pom);
> assertTrue(pom.exists());
> final SeleniumTestMojo cacheClearMojo = (SeleniumTestMojo)
> lookupMojo(GOAL, pom);
> assertNotNull(cacheClearMojo);
> cacheClearMojo.execute();
> } catch (final Exception e) {
> e.printStackTrace();
> fail();
> }
> }
> 
> so everything is working great. Would really appreciate some additional
> help, - Dave
> 
> --
> View this message in context: 
> http://maven.40175.n5.nabble.com/Trouble-setting-Boolean-property-in-custom-Mojo-tp4677954p4678945.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]
>                                         
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to