![]() |
|
|
|
|
Issue Type:
|
New Feature
|
|
Assignee:
|
Unassigned |
|
Components:
|
l10n |
|
Created:
|
25/Oct/12 1:46 PM
|
|
Description:
|
Index: src/main/java/org/codehaus/mojo/l10n/PseudoLocalizeMojo.java
===================================================================
— src/main/java/org/codehaus/mojo/l10n/PseudoLocalizeMojo.java (Revision 17709)
+++ src/main/java/org/codehaus/mojo/l10n/PseudoLocalizeMojo.java (Arbeitskopie)
@@ -67,6 +67,13 @@
private File outputDirectory;
/**
+ * Replace existing target file or only add missing properties.
+ *
+ * @parameter default-value=true
+ */
+ private boolean replaceOutput;
+
+ /**
- props.setProperty( key, newVal );
+ String toProperty = toProps.getProperty(key);
+ if( replaceOutput || toProperty == null ) {
+ props.setProperty( key, newVal );
+ } else {
+ props.setProperty( key, toProperty );
+ }
}
out = new BufferedOutputStream( new FileOutputStream( to ) );
props.store( out, "Pseudo Localized bundle file for I18N testing autogenerated by the l10n-maven-plugin." );
|
|
Project:
|
Mojo
|
|
Priority:
|
Major
|
|
Reporter:
|
Christian Schaarschmidt
|
|
|
|
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
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