On Thu, May 23, 2013 at 3:49 AM, sebb <seb...@gmail.com> wrote: > On 23 May 2013 08:34, Jörg Schaible <joerg.schai...@scalaris.com> wrote: > > Hi Sebb, > > > > sebb wrote: > > > > [snip] > > > >> However file-based activation does work OK - this would require > >> projects to define a dummy file somewhere, for example: > >> > >> src/site/resources/coverage.jacoco > >> or > >> src/site/resources/coverage.cobertura > >> > >> A component can thereby define the appropriate default coverage tool. > >> > >> This can be overridden on the command line, for example: > >> > >> -P!jacoco -Pcobertura > > > > if we start to get into the file-based profile activation, I strongly > > suggest to follow a common pattern and use a profile directory: > > > > =========== %< ============= > > pom.xml > > profiles/ > > cobertura > > =========== %< ============= > > > > Otherwise no-one knows in the end what file triggers an automated > profile. > > I choose src/site/resources because the profiles affect the site build > and I did not want to create a new folder. > > But of course other locations are possible. > > Or we could use "profile.jacoco" instead of "coverage.jacoco" under > src/site/resources > > I have committed the change as originally proposed. > We can change the trigger files (and associated comments) before releasing > CP30 > > Meanwhile please try out the new profiles. >
I like the file-based approach better than using the command line, so I used that in [codec] locally and was able to selectively run one coverage tool and then both. So it's good by me. Gary > > > - Jörg > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org > > For additional commands, e-mail: dev-h...@commons.apache.org > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org > For additional commands, e-mail: dev-h...@commons.apache.org > > -- E-Mail: garydgreg...@gmail.com | ggreg...@apache.org Java Persistence with Hibernate, Second Edition<http://www.manning.com/bauer3/> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/> Spring Batch in Action <http://www.manning.com/templier/> Blog: http://garygregory.wordpress.com Home: http://garygregory.com/ Tweet! http://twitter.com/GaryGregory