-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
135 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
------ | ||
Converting Resources Inplace | ||
------ | ||
David Matejcek | ||
------ | ||
2017-12-23 | ||
------ | ||
|
||
Converting UTF-8 properties to standard inplace | ||
|
||
This goal targets the scenario known from 1-beta version - conversion of | ||
UTF-8 file content to Unicode-escaped content on the same file. | ||
|
||
Note that this target is not covered by eclipse lifecycle. | ||
|
||
--- | ||
<plugin> | ||
<groupId>org.codehaus.mojo</groupId> | ||
<artifactId>native2ascii-maven-plugin</artifactId> | ||
<version>____</version> | ||
<executions> | ||
<execution> | ||
<id>utf8-to-latin1</id> | ||
<goals> | ||
<goal>inplace</goal> | ||
</goals> | ||
<phase>process-resources</phase><!-- default --> | ||
<configuration> | ||
<dir>${project.build.testOutputDirectory}/localized</dir><!-- must be set --> | ||
<encoding>${project.build.sourceEncoding}</encoding><!-- default --> | ||
<includes> | ||
<include>**/*.properties</include><!-- default --> | ||
</includes> | ||
<excludes> | ||
<exclude></exclude><!-- nothing by default --> | ||
</excludes> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
------ | ||
Converting Resources | ||
------ | ||
David Matejcek | ||
------ | ||
2017-12-23 | ||
------ | ||
|
||
Converting UTF-8 properties to standard | ||
|
||
This goal targets the basic scenario - conversion of UTF-8 files to Unicode-escaped files | ||
without any change of the originals. | ||
|
||
--- | ||
<plugin> | ||
<groupId>org.codehaus.mojo</groupId> | ||
<artifactId>native2ascii-maven-plugin</artifactId> | ||
<version>____</version> | ||
<executions> | ||
<execution> | ||
<id>utf8-to-latin1</id> | ||
<goals> | ||
<goal>resources</goal> | ||
</goals> | ||
<phase>process-resources</phase><!-- default --> | ||
<configuration> | ||
<srcDir>src/main/native2ascii</srcDir><!-- default --> | ||
<targetDir>${project.build.outputDirectory}</targetDir><!-- default --> | ||
<encoding>${project.build.sourceEncoding}</encoding><!-- default --> | ||
<includes> | ||
<include>**/*.properties</include><!-- default --> | ||
</includes> | ||
<excludes> | ||
<exclude></exclude><!-- nothing by default --> | ||
</excludes> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
------ | ||
Converting Test Resources | ||
------ | ||
David Matejcek | ||
------ | ||
2017-12-23 | ||
------ | ||
|
||
Converting UTF-8 properties to standard | ||
|
||
This goal targets the basic testing scenario - conversion of UTF-8 files to Unicode-escaped files | ||
without any change of the originals or the target artifact. | ||
|
||
--- | ||
<plugin> | ||
<groupId>org.codehaus.mojo</groupId> | ||
<artifactId>native2ascii-maven-plugin</artifactId> | ||
<version>____</version> | ||
<executions> | ||
<execution> | ||
<id>utf8-to-latin1</id> | ||
<goals> | ||
<goal>testResources</goal> | ||
</goals> | ||
<phase>process-test-resources</phase><!-- default --> | ||
<configuration> | ||
<srcDir>src/test/native2ascii</srcDir><!-- default --> | ||
<targetDir>${project.build.testOutputDirectory}</targetDir><!-- default --> | ||
<encoding>${project.build.sourceEncoding}</encoding><!-- default --> | ||
<includes> | ||
<include>**/*.properties</include><!-- default --> | ||
</includes> | ||
<excludes> | ||
<exclude></exclude><!-- nothing by default --> | ||
</excludes> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,19 @@ | ||
------ | ||
Introduction | ||
------ | ||
Evgeny Mandrikov | ||
<mandrikov@gmail.com> | ||
David Matejcek | ||
<dmatej79@gmail.com> | ||
------ | ||
2011-11-04 | ||
2017-12-23 | ||
------ | ||
|
||
Native2Ascii Maven Plugin | ||
|
||
This plugin converts files with characters in any supported character encoding to one with ASCII and/or Unicode escapes. | ||
|
||
|
||
* Goals Overview | ||
|
||
* {{{./native2ascii-mojo.html}native2ascii:native2ascii}}: Run the conversion. | ||
|
||
[] | ||
|
||
|
||
* Usage | ||
|
||
Instructions on how to use the Native2Ascii Maven Plugin can be found on the {{{./usage.html}usage page}}. | ||
This plugin provides solution for developers who maintain property files in UTF-8 encoding | ||
but runtime needs ASCII and supports Unicode-escaped characters just like Java's | ||
java.util.Properties class. | ||
|
||
This plugin converts files in any supported character encoding to one with ASCII | ||
and/or Unicode escapes. | ||
|
||
See {{{./plugin-info.html}Goals}} and Examples to see more. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters