preslavrachev / maven-play-plugin

Automatically exported from code.google.com/p/maven-play-plugin
0 stars 0 forks source link

Configure inclusion/exclusion filters for "conf" directory resources being copied to "WEB-INF/classes" directory in war mojos ("log4j.properties" for example) #104

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. engable logging
2. log4j.properties file is available in conf folder
3. mvn play:initialize play:precompile play:war

What is the expected output? What do you see instead?
Expect to see war created and has log4j.properties file in WEB-INF/classses.  
But it copies all other files in conf folder but not log4j.properties

What version of the product are you using? On what operating system?
1.2.4 . Tried on windows and linux

Please provide any additional information below.

Original issue reported on code.google.com by martin.j...@gmail.com on 2 Jul 2012 at 4:44

GoogleCodeExporter commented 9 years ago
Now only "application.conf", "messages", "messages.*", "routes" files are being 
copied. it's hardcoded in the AbstractPlayWarMojo java source file.

"warConfResourcesIncludes" and "warConfResourcesExcludes" filters will be added 
to allow inclusion/exclusion configuration.

To be backward compatible, no additional resources will be copied to 
"WEB-INF/classes" by default. It must be configured.

Original comment by gslowiko...@gmail.com on 2 Jul 2012 at 7:17

GoogleCodeExporter commented 9 years ago

Original comment by gslowiko...@gmail.com on 2 Jul 2012 at 7:17

GoogleCodeExporter commented 9 years ago

Original comment by gslowiko...@gmail.com on 2 Jul 2012 at 7:18

GoogleCodeExporter commented 9 years ago
Implemented in svn rev.10440

Original comment by gslowiko...@gmail.com on 2 Jul 2012 at 7:19

GoogleCodeExporter commented 9 years ago
Snapshot deployed.

Sample configuration:

<parent>
    <groupId>com.google.code.maven-play-plugin</groupId>
    <artifactId>play-app-default-parent</artifactId>
    <version>1.0.0-beta3-SNAPSHOT</version> <!-- use latest snapshot version -->
</parent>

<build>
    <plugins>
        <plugin>
            <groupId>com.google.code.maven-play-plugin</groupId>
            <artifactId>play-maven-plugin</artifactId>
            <extensions>true</extensions>
            <configuration>
                <warConfResourcesIncludes>**</warConfResourcesIncludes>
                <!-- or <warConfResourcesIncludes>application.conf,messages,messages.*,routes,log4j.properties</warConfResourcesIncludes> -->
            </configuration>
        </plugin>
    </plugins>
</build>

Original comment by gslowiko...@gmail.com on 2 Jul 2012 at 7:26