[ 
http://jira.codehaus.org/browse/MOJO-1316?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=259192#action_259192
 ] 

Kevin Calcagno commented on MOJO-1316:
--------------------------------------

This functionality already exists as of version 1.0-alpha-2 (if not before; 
didn't look).  Add <quiet>true</quiet> to your configuration.  See the 
documentation at 
http://mojo.codehaus.org/properties-maven-plugin/read-project-properties-mojo.html

> Create 'ignoreResourceNotFound' configuration property to allow optional 
> <file> elements
> ----------------------------------------------------------------------------------------
>
>                 Key: MOJO-1316
>                 URL: http://jira.codehaus.org/browse/MOJO-1316
>             Project: Mojo
>          Issue Type: Improvement
>          Components: properties
>            Reporter: Les Hazlewood
>
> I use .properties files in my build environment (and production environment) 
> as an overrides mechanism.  For example, all application default settings are 
> in a file:
> application.properties.
> Any overrides, *if they exist*, would exist in the following places:
> ${user.home}/.companyName/divisionName/productName/defaultOverrides.properties
> ${user.home}/.companyName/divisionName/defaultOverrides.properties
> I want to list all of these files in the properties-maven-plugin 
> configuration so that, if they exist, they will be picked up and override the 
> defaults in application.properties.  Right now, if a listed .properties file 
> does not exist and the plugin runs, it fails the build.
> Please add a <ignoreResourceNotFound> configuration property so we can tell 
> the plugin it is ok not to fail the build if a listed file is missing. 
> For example:
> <plugin>
>   <groupId>org.codehaus.mojo</groupId>
>   <artifactId>properties-maven-plugin</artifactId>
>   <version>1.0-SNAPSHOT</version>
>     <executions>
>       <execution>
>         <phase>initialize</phase>
>       <goals>
>         <goal>read-project-properties</goal>
>       </goals>
>       <configuration>
>         <ignoreResourceNotFound>true</ignoreResourceNotFound>
>         <files>
>           <file>some/location/application.properties</file>
>           <file>anotherLocation/some/path/defaultOverrides.properties<file>
>           ...
>         </files>
>       </configuration>
>     </execution>
>   </executions>
> </plugin>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to