ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antoine Levy Lambert <anto...@gmx.de>
Subject Re: Have junitreport load styles from JAR
Date Sun, 20 Apr 2014 03:18:14 GMT
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 <marcel@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


Mime
View raw message