The resources are unpacked by the unpack-view-resources to the location
specified via the embedder's configuration, which includes the story
reporter builder.
Solution would be to configure the embdder in the Maven plugin.
Shortcut is simply to copy the resources from target/jbehave/view via an
antrun plugin or gmaven plugin.
On 12/09/2012 08:55, Roy de Kleijn wrote:
Well, I'am executing this project with maven.
These are the generated folders:
-target
--jbehave
----conceptName
------view
------//here are NO JS/ftl/i18n/images/style folders
-----view
-----//here are the JS/ftl/i18n/images/style folders
So it's a reference problem I believe.
*From:*Mauro Talevi [mailto:[email protected]]
*Sent:* woensdag 12 september 2012 9:47
*To:* [email protected]
*Subject:* Re: [jbehave-user] Report in custom location
Can you send a sample project that reproduces your build with the
custom css?
On 12/09/2012 08:29, Roy de Kleijn wrote:
Hello,
I'm using the following code to store the reports in a custom
location.
The problem I have know: the report are not decorated. The CSS
cannot be found.
How can I solve this?
*return**new*MostUsefulConfiguration()
.useStoryLoader(*new*LoadFromClasspath(embeddableClass))
.useStoryParser(*new*RegexStoryParser(examplesTableFactory))
.useStoryReporterBuilder(*new*StoryReporterBuilder()
.withCodeLocation(CodeLocations./codeLocationFromClass/(embeddableClass))
.withDefaultFormats()
.withRelativeDirectory("jbehave/"+
System./getProperty/("conceptName"))
.withFormats(/CONSOLE/, /TXT/, /HTML/, /XML/))
.useParameterConverters(parameterConverters);
Thanks,
Roy