public class FileMappingRule extends Object implements Serializable
<rule>{path}/{locale_with_underscore}.po</rule>
To map multiple file types in a "file" type project, you can use pattern to
set individual rule(s):
<rule pattern="**/*.odt">{path}/{locale}/{filename}.{extension}</rule>
<rule pattern="**/*.idml">output/{path}/{locale}/{filename}.{extension}</rule>
Constructor and Description |
---|
FileMappingRule() |
FileMappingRule(String rule)
If pattern is missing, this rule will be applied to matching file types.
|
FileMappingRule(String pattern,
String rule) |
Modifier and Type | Method and Description |
---|---|
String |
getPattern()
Represents glob pattern to files that are applicable for this rule.
|
String |
getRule()
Represents the actual mapping rule.
|
void |
setPattern(String pattern) |
void |
setRule(String rule) |
public FileMappingRule()
public FileMappingRule(String rule)
Copyright © 2015 Zanata Project. All rights reserved.