In general, you need to be careful that your resources are not
overridden (copied over) by other similar operations at different mvn
phases.
Moreover, other resources - such as the ftl templates - are picked up
from the classpath, so if you use the same name as the ones in the jar
they make not be picked up.
What resources are we talking about? Please send us an example of
what you're trying to do.
On Tue Jan 3 17:32:22 2012, Olmo Rigolo wrote:
Hi Brian,
thanks for the advise. After looking into the security example I think
it's to complicated.
I just wanr to override the ressources for the style from
jbehave-core-ressourcse.zip during the generate-resourcse phase.
This can be done by configuring the maven-dependency-plugin.
I added a execution:
<execution>
<id>unpack-jbehave-reports-resources</id>
<phase>generate-resources</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<overwriteReleases>false</overwriteReleases>
<overwriteSnapshots>true</overwriteSnapshots>
<artifactItems>
<artifactItem>
<groupId>com.lib.jbehave</groupId>
<artifactId>report-resources</artifactId>
<version>1.0.0.0</version>
<outputDirectory>${project.build.directory}/jbehave/view</outputDirectory>
<includes>**\/*.css,**\/*.ftl,**\/*.js, **\/images\/*.*</includes>
</artifactItem>
</artifactItems>
</configuration>
</execution>
The sources are copied from the report-resources package to the target
folder where they are needed.
Nevertheless, the reporter does not use them. Maybe I have to hook
into another process/goal?
Anyone there who could help?
Cheers,
Olmo
On 3 January 2012 15:35, Brian Repko <[email protected]
<mailto:[email protected]>> wrote:
Check out the Spring-Security example - I know that this does this
(override ResourceLoader?) but I'm not sure if its the "best" way
to do this.
----- Original message -----
From: "Olmo Rigolo" <[email protected]
<mailto:[email protected]>>
To: [email protected] <mailto:[email protected]>
Date: Tue, 3 Jan 2012 15:33:56 +0100
Subject: [jbehave-dev] How to override the report template
Hi all,
hope you had a good time at Christmas.
I am wondering where to put the report resource files, so that
they can automatically be loaded by the reporter.
If I am right, they load them by default from the jbehave-core.jar
file.
Thanks!
Olmo
---
Brian Repko
LearnThinkCode, Inc. <http://www.learnthinkcode.com>
email: [email protected]
<mailto:[email protected]>
phone: +1 612 229 6779 <tel:%2B1%20612%20229%206779>
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email