Index: maven-i18n-plugin/src/java/org/codelutin/i18n/plugin/core/SourceEntry.java diff -u maven-i18n-plugin/src/java/org/codelutin/i18n/plugin/core/SourceEntry.java:1.1 maven-i18n-plugin/src/java/org/codelutin/i18n/plugin/core/SourceEntry.java:1.2 --- maven-i18n-plugin/src/java/org/codelutin/i18n/plugin/core/SourceEntry.java:1.1 Sat Jan 5 13:02:22 2008 +++ maven-i18n-plugin/src/java/org/codelutin/i18n/plugin/core/SourceEntry.java Fri Jan 11 22:55:25 2008 @@ -39,7 +39,14 @@ * @author tony */ public class SourceEntry { - + /** + * If you want to restrict use of the entry, set the class name goal to + * this property via {@link #setSpecificGoal(String)}. + *

+ * If let to null, all goals can use this entry. + */ + protected String specificGoal = null; + protected File basedir; protected String[] includes; @@ -70,6 +77,18 @@ this.basedir = basedir; } + public String getSpecificGoal() { + return specificGoal; + } + + public void setSpecificGoal(String specificGoal) { + this.specificGoal = specificGoal; + } + + public boolean useForGoal(String goal) { + return specificGoal==null || specificGoal.equalsIgnoreCase(goal); + } + public boolean hasSrc() { return basedir != null; }