You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Marcel Stör <ma...@frightanic.com> on 2014/04/19 23:47:48 UTC
Have junitreport load styles from JAR
Looking at the source of
org.apache.tools.ant.taskdefs.optional.junit.AggregateTransformer#getStylesheet
I see no way I could pack my style sheets into a JAR file and reference
them in the junitreport.report.styledir parameter.
Is that assumption correct?
I'd need something like this:
<junitreport todir="...">
<report styledir="jar://c:/my.jar/foo" format="noframes" todir="..."/>
<fileset dir="....">
<include name="**/*.xml" />
</fileset>
</junitreport>
Context: I use the junitreport task in a Maven build (similar to
http://stackoverflow.com/a/2847475/131929).
--
Marcel Stör, http://frightanic.com
Couchsurfing: http://www.couchsurfing.com/people/marcelstoer
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: Have junitreport load styles from JAR
Posted by Antoine Levy Lambert <an...@gmx.de>.
Hello Marcel,
you are unfortunately right, there is no way you can use directly stylesheets from a jar file.
What you can do is have ant extract the stylesheets from the jar file for you and use them afterwards.
Not particularly elegant but will work.
Regards,
Antoine
On Apr 19, 2014, at 5:47 PM, Marcel Stör <ma...@frightanic.com> wrote:
> Looking at the source of org.apache.tools.ant.taskdefs.optional.junit.AggregateTransformer#getStylesheet I see no way I could pack my style sheets into a JAR file and reference them in the junitreport.report.styledir parameter.
>
> Is that assumption correct?
>
> I'd need something like this:
> <junitreport todir="...">
> <report styledir="jar://c:/my.jar/foo" format="noframes" todir="..."/>
> <fileset dir="....">
> <include name="**/*.xml" />
> </fileset>
> </junitreport>
>
> Context: I use the junitreport task in a Maven build (similar to http://stackoverflow.com/a/2847475/131929).
>
> --
> Marcel Stör, http://frightanic.com
> Couchsurfing: http://www.couchsurfing.com/people/marcelstoer
> O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org