The solution I found:

application.init

getResourceSettings().addResourceFolder("/WEB-INF/html");

Your resources will be protected by web-inf and the configuration is the
same in local development machine and in the remote development machine,
where you can give permits to your web designers. Not the best solution but
the simplest.

In maven,

<resource>
<filtering>false</filtering>
<directory>src/main/webapp/</directory>
</resource>

On Fri, Jun 18, 2010 at 4:21 AM, <b...@actrix.gen.nz> wrote:

> Hi,
>
> You could have the files in a sibling directory in the web directory
> that is hidden by the wicket filter mapping. Has many benefits.
>
> Allows web developers to freely edit and view files in context with
> links that actually work. FInally HTML refactoring will work. Can
> someone suggest how to get the three lines of code into Wicket that
> are needed to support this?
>
> Please See
>
> "Cannot substitute RelativePathPrefixHandler"
> https://issues.apache.org/jira/browse/WICKET-2881
>
>
> Bernard
>
>
>
>
>
>
>
>
> On Thu, 17 Jun 2010 16:31:09 -0300, you wrote:
>
> >Hi all,
> >    I need to change the development enviroment for
> >
> >            IResourceStreamLocator locator =
> >            new ResourceStreamLocator(new Path(new Folder("html")));
> >          getResourceSettings().setResourceStreamLocator(locator);
> >
> >but, what I also need is that maven copy the resources form
> > src/main/resources to src/main/WEB-INF/html. This is needed because when
> >maven creates the war file the resources should also be located in that
> >directory.
> >
> >I've tried
> >
> ><plugin>
> >   <groupId>org.apache.maven.plugins</groupId>
> >   <artifactId>maven-resources-plugin</artifactId>
> >   <version>2.4.1</version>
> >   <executions>
> >   <execution>
> >         <id>copy-package-config</id>
> >         <phase>package</phase>
> >         <goals>
> >         <goal>copy-resources</goal>
> >         </goals>
> >         <configuration>
> >         <outputDirectory>${basedir}/html</outputDirectory>
> >                                        <resources>
> >                                      <resource>
> >
> >  <directory>${basedir}/src/main/resources</directory>
> >
> ><filtering>true</filtering>
> >                                             </resource>
> >                                        </resources>
> >         </configuration>
> >   </execution>
> >   </executions>
> >  </plugin>
> >
> >and I got
> >
> >[1] Inside the definition for plugin 'maven-resources-plugin' specify the
> >following:
> >
> ><configuration>
> >  ...
> >  <resources>VALUE</resources>
> ></configuration>.
> >
> >
> >I don't know what else to do
> >
> >thanks in advance
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Fernando Wermus.

www.linkedin.com/in/fernandowermus

Reply via email to