Hi, One way to process your properties files with native2ascii is to add Ant's native2ascii goal to the Maven's compilation phase. Here you could find how to do it (unfortunately only the version cached by Google works): http://216.239.59.104/search?q=cache:kJFwr1QUsy4J:www.jroller.com/page/wakaleo%3Fentry%3Dmaven_2_tip_using_tools+maven+native2ascii&hl=pl&gl=pl&ct=clnk&cd=7&client=firefox-a
I've described this solution, and proposed a "not reduntant" one on my blog: http://www.jakubpawlowicz.com/blog/2006/03/19/maven_native2ascii_plugin/ Please feel free to send any comments about it. Hope this helps you a bit. Regards, Jakub On Thu, 25 May 2006 17:24:43 +0800, chang wei wrote > Thanks, shen kai. > > I have tried maven-resources-plugin, but nothing happened. > > I create a web project with mvn. And the project's structure looks > like the following: > > my-app > |-- pom.xml > `-- src > |-- main > | |-- webapp > | | `-- WEB-INFO > | `-- resources > | `-- META-INF > | |-- application.properties > | `-- application_zh_CN.properties > > If I run mvn war:war$B!$(Bthe application_zh_CN.properties will be > packaged into my-app.war. However, Chinese words are in the > application_zh_CN.properties file, and can not be displayed > correctly before be natvie2ascii. > > I want when I run mvn war:war, the maven natives the > application_zh_CN.properties file first, then package it into war. > > Is there any way to do that? Please advise, Thanks. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
