I had test it, this way can be work well, thanks for your work. On Mon, Aug 23, 2010 at 11:10 AM, Franz Wong <[email protected]> wrote:
> Does it work? (I am just afraid it works for me only) > > Franz > > > On Mon, Aug 23, 2010 at 11:02 AM, Chris <[email protected]> wrote: > >> That's very good. This problem has troubled me for a long time. >> >> >> On Mon, Aug 23, 2010 at 10:57 AM, Franz Wong <[email protected]> wrote: >> >>> Hi group, >>> >>> I found out a way to solve the problem that native2ascii plugin copying >>> resources twice. May be some of you know the trick already, but I just want >>> to save it for future enquiry. >>> >>> Suppose I want to convert the properties files inside the directory >>> "src/main/resources/lang". >>> >>> First I need to exclude copying those properties file, it may sound >>> strange, but this is the trick. >>> >>> <resources> >>> <resource> >>> <directory>src/main/resources</directory> >>> <excludes> >>> <exclude>lang/*.properties</exclude> >>> </excludes> >>> <filtering>true</filtering> >>> </resource> >>> </resources> >>> >>> For the native2ascii setting, >>> >>> <plugin> >>> <groupId>org.codehaus.mojo</groupId> >>> <artifactId>native2ascii-maven-plugin</artifactId> >>> <executions> >>> <execution> >>> <goals> >>> <goal>native2ascii</goal> >>> </goals> >>> <configuration> >>> <encoding>UTF-8</encoding> >>> <src>src/main/resources</src> >>> <includes>lang/*.properties</includes> >>> </configuration> >>> </execution> >>> </executions> >>> </plugin> >>> >>> That's all. >>> >>> Thanks >>> Franz Wong >>> >> >> >> >> -- >> Best Regards >> >> Chris Cui >> -------------------------------------------------------------- >> Mobile : 13560210207 >> Email : [email protected] >> MSN : [email protected] >> > > -- Best Regards Chris Cui -------------------------------------------------------------- Mobile : 13560210207 Email : [email protected] MSN : [email protected]
