[ http://issues.ops4j.org/browse/PAXEXAM-51?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12258#action_12258 ]
James Strachan commented on PAXEXAM-51: --------------------------------------- patch applied now. BTW from memory enabling the Wiki markup in JIRAs is just a flag on the Administration screen I think. More details here: http://www.atlassian.com/software/jira/docs/v3.13/configurerenderers.html > [PATCH] a helper method to make adding maven bundles more concise... > -------------------------------------------------------------------- > > Key: PAXEXAM-51 > URL: http://issues.ops4j.org/browse/PAXEXAM-51 > Project: Pax Exam > Issue Type: Improvement > Reporter: James Strachan > Assignee: Toni Menzel > Priority: Trivial > Fix For: 0.4.1 > > > I found this kind of code to be a little verbose > {code} > mavenBundle().groupId( "org.ops4j.pax.url" ).artifactId( "pax-url-mvn" > ).version( asInProject() ) > {code} > so ended up adding a little helper method - it might make sense to add this > to Pax Exam so if folks are adding loads of maven bundles they can do so in a > slightly more concise way > {code} > /** > * Adds a maven bundle for the given groupId and artifactId while deducing > the version to use > * from the > <code>target/classes/META-INF/maven/dependencies.properties</code> file that > is > * generated via the > * <a > href="http://wiki.ops4j.org/display/paxexam/Pax+Exam+-+Tutorial+1">depends-maven-plugin > > * from ServiceMix</a> > */ > public static MavenUrlProvisionOption mavenBundleAsInProject(String > groupId, String artifactId) { > return > mavenBundle().groupId(groupId).artifactId(artifactId).version(asInProject()); > } > {code} > Then this code > {code} > mavenBundle().groupId( "org.ops4j.pax.url" ).artifactId( "pax-url-mvn" > ).version( asInProject() ) > {code} > becomes this - (with one less static imports to resolve in your IDE) > {code} > mavenBundleAsInProject("org.ops4j.pax.url", "pax-url-mvn" ) > {code} -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.ops4j.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira _______________________________________________ general mailing list general@lists.ops4j.org http://lists.ops4j.org/mailman/listinfo/general