Hi Mauro,

thank you for your answer.
We thougth we could just override the existing templates by using the same
names.
We'll try to load a different name and if this does not work, we have to
send you an example :)

If you could quickly write how to do that (change the template (ftl)), we'd
be very happy!


Olmo

On 3 January 2012 20:12, Mauro Talevi <[email protected]> wrote:

> 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 
>> <brian.repko@learnthinkcode.**com<[email protected]><mailto:
>> brian.repko@**learnthinkcode.com <[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].**org<[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:brian.repko@**learnthinkcode.com<[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<http://xircles.codehaus.org/manage_email>
>
>
>

Reply via email to