Is this plugin available in a public repository?  Is there an easier way to
do this that doesn't require tools.jar on the classpath?  This was awful
easy to do with Ant - seems like Maven 2 complicates things here.

Thanks,

Matt


Jakub Pawlowicz wrote:
> 
> 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,the 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]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-native-properties-files-with-maven2-tf1679969s177.html#a7125646
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to