I don't think there's a way to do this with maven alone (maven team, correct me?).
However, you can create a small plugin that binds to the 'generate-sources' phase and generates the properties you need. OTH - this looks like a resource bundle - and if I'm not mistaken, the resource bundle is supposed to look for "parent" bundles if it can't find a bundle in your locale. So, if your locale is 'en', and it can't find 'xxx_en.properties', it should look for 'xxx.properties' - see the JDK java.util.ResourceBundle for details (and if this is not for Resourcebundle - ignore this :)) On 11/19/05, Wendy Smoak <[EMAIL PROTECTED]> wrote: > In src/main/resources, I have several .properties files: > > org.apache/.../ApplicationResources.properties > org.apache/.../ApplicationResources_ja.properties > org.apache/.../ApplicationResources_en.properties > > As part of the build I need to duplicate > ApplicationResources.properties as ApplicationResources_en.properties > so that I end up with four .properties files under target/classes. > > I can't seem to get it done with <resource> as there is only > <targetPath> and not <targetFile> (which wouldn't make sense if > multiple files were picked up with <include>.) > > Is there a way to accomplish this? > > Thanks, > Wendy > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
