<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>native2ascii-maven-plugin</artifactId>
<configuration>
<src>src/test/java</src>
<encoding>UTF8</encoding>
</configuration>
[...]
</plugin>
read more about the plugin's doc
On Sun, Jul 6, 2008 at 10:52 PM, Dan Tran <[EMAIL PROTECTED]> wrote:
> try "UTF8" upper case,
>
> You need add tool.jar dependency as well
>
>
> On Sun, Jul 6, 2008 at 10:16 PM, youhaodeyi <[EMAIL PROTECTED]> wrote:
>>
>> This is my configuration:
>>
>> <plugin>
>> <groupId>org.codehaus.mojo</groupId>
>>
>> <artifactId>native2ascii-maven-plugin</artifactId>
>> <configuration>
>> <src>src/test/java/ui/demo/i18n</src>
>> <dest>classes/ui/demo/i18n</dest>
>> <encoding>utf8</encoding>
>> </configuration>
>> <executions>
>> <execution>
>> <goals>
>>
>> <goal>native2ascii</goal>
>> </goals>
>> </execution>
>> </executions>
>>
>> </plugin>
>> You can see that the dest directory is classes/ui/demo/i18n. If the file
>> already exists in this directory, maven will not overwrite it. What I want
>> to do is to overwrite the generated file every time I run mvn
>> native2ascii:native2ascii.
>>
>>
>> Dan Tran wrote:
>>>
>>> could you be more specific?
>>>
>>> btw, see if you can get antrun plugin to do the conversion for you. Note
>>> that
>>> behind the scene native2ascii plugin uses ant, but it is worth a try.
>>> -D
>>>
>>> On Sun, Jul 6, 2008 at 8:36 PM, youhaodeyi <[EMAIL PROTECTED]> wrote:
>>>>
>>>> Does anyone know how to overwrite existed resource file with
>>>> native2ascii?
>>>>
>>>>
>>>> youhaodeyi wrote:
>>>>>
>>>>> I use native2ascii plugin to convert my resource files. This is my
>>>>> configuration in pom file:
>>>>> <plugin>
>>>>> <groupId>org.codehaus.mojo</groupId>
>>>>>
>>>>> <artifactId>native2ascii-maven-plugin</artifactId>
>>>>> <configuration>
>>>>>
>>>>> <src>src/test/java/ui/demo/i18n</src>
>>>>> <dest>classes/ui/demo/i18n</dest>
>>>>> </configuration>
>>>>> <executions>
>>>>> <execution>
>>>>> <goals>
>>>>>
>>>>> <goal>native2ascii</goal>
>>>>> </goals>
>>>>> <!-- specific
>>>>> configurations -->
>>>>> <configuration>
>>>>>
>>>>> <encoding>UTF8</encoding>
>>>>> </configuration>
>>>>> </execution>
>>>>> </executions>
>>>>>
>>>>> </plugin>
>>>>> One problem is that when I use mvn native2ascii:native2ascii to do the
>>>>> job, the result file is different with when I use
>>>>> $JAVA_HOME/bin/native2ascii command? why?
>>>>>
>>>>> The other issue is that how can I let this goat to replace the existed
>>>>> file?
>>>>>
>>>>
>>>> --
>>>> View this message in context:
>>>> http://www.nabble.com/Two-questions-about-native2ascii-plugin-tp18290230p18309502.html
>>>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> 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]
>>>
>>>
>>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Two-questions-about-native2ascii-plugin-tp18290230p18310176.html
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> 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]