RE: How to do native2ascii?

2006-11-28 Thread jiangshachina
Hello, I think I really used a wrong work flow. I switch to the scripts as shown as the following, executions execution idcompile/id phasegenerate-resources/phase configuration tasks

How to do native2ascii?

2006-11-27 Thread jiangshachina
Hi guys, I must write some resource files related to localization. On develop time, I have to write natural local language; on runtime, application must use ASCII codes. So I have to convert the native resource files to ASCII files before deploying. Now, I use maven-antrun-plugin to execute Ant

RE: How to do native2ascii?

2006-11-27 Thread Mark Struberg
Hi Jiang! This task is a bit tricky, since the antrun plugin does come with almost no dependencies in the default pom. This is basically a good idea, since you don't have jars lying around which you do not use. Specially the native2ascii is a bit dirty, since this is a special part provided by

RE: How to do native2ascii?

2006-11-27 Thread Mark Struberg
Btw, you may remove the antlr dependencies since this has nothing to do with ant. antlr: ANother Tool for Language Recognition read more at: http://www.antlr.org/ Some ant dependencies which (in other common scenarios) would make sense are: ant/ant-nodeps ant/ant-stylebook

RE: How to do native2ascii?

2006-11-27 Thread jiangshachina
Hi struberg, Thanks for your help. I had a try with your instructions, but didn't get good result. The following is my snippet of scripts dependency groupIdcom.sun/groupId artifactIdtools/artifactId version1.5.0_09/version scopesystem/scope systemPath

Re: How to do native2ascii?

2006-11-27 Thread Wayne Fay
Did you put the dependency node inside plugin, as suggested, or just directly to the project? Wayne On 11/27/06, jiangshachina [EMAIL PROTECTED] wrote: Hi struberg, Thanks for your help. I had a try with your instructions, but didn't get good result. The following is my snippet of scripts

RE: How to do native2ascii?

2006-11-27 Thread Mark Struberg
Oki, i looked at all jars. You have to add the ant-nodeps to your dependencies also. This contains the optional ant taskdef for native2ascii. dependency groupIdant/groupId artifactIdant-nodeps/artifactId version1.6.5/version scoperuntime/scope /dependency lg, strub --- jiangshachina

Re: How to do native2ascii?

2006-11-27 Thread jiangshachina
Hi, It's in buildpluginsplugindependency/dependencyplugin/plugins/build. a cup of Java, cheers! Sha Jiang Wayne Fay wrote: Did you put the dependency node inside plugin, as suggested, or just directly to the project? Wayne On 11/27/06, jiangshachina [EMAIL PROTECTED] wrote: Hi

RE: How to do native2ascii?

2006-11-27 Thread jiangshachina
OK, that's right! Thanks very much! a cup of Java, cheers! Sha Jiang struberg wrote: Oki, i looked at all jars. You have to add the ant-nodeps to your dependencies also. This contains the optional ant taskdef for native2ascii. dependency groupIdant/groupId

RE: How to do native2ascii?

2006-11-27 Thread jiangshachina
Hello, Now I have another troubles. executions execution idcompile/id phasecompile/phase configuration tasks native2ascii encoding=UTF8 src=src/java