|
![](https://seccdn.libravatar.org/avatar/6e7fbef55363935e4575dd30bd5b66c5e35c9780c464e6c576df851ecbc386b4?s=16&d=retro) |
6fbf3cb |
diff -Nru maven-jaxb2-plugin-0.13.0/plugin/src/main/java/org/jvnet/mjiip/v_2/OptionsFactory.java maven-jaxb2-plugin-0.13.0.enconding/plugin/src/main/java/org/jvnet/mjiip/v_2/OptionsFactory.java
|
|
![](https://seccdn.libravatar.org/avatar/6e7fbef55363935e4575dd30bd5b66c5e35c9780c464e6c576df851ecbc386b4?s=16&d=retro) |
6fbf3cb |
--- maven-jaxb2-plugin-0.13.0/plugin/src/main/java/org/jvnet/mjiip/v_2/OptionsFactory.java 2015-08-30 11:39:57.000000000 +0200
|
|
![](https://seccdn.libravatar.org/avatar/6e7fbef55363935e4575dd30bd5b66c5e35c9780c464e6c576df851ecbc386b4?s=16&d=retro) |
6fbf3cb |
+++ maven-jaxb2-plugin-0.13.0.enconding/plugin/src/main/java/org/jvnet/mjiip/v_2/OptionsFactory.java 2015-10-26 07:13:24.427916727 +0100
|
|
![](https://seccdn.libravatar.org/avatar/6e7fbef55363935e4575dd30bd5b66c5e35c9780c464e6c576df851ecbc386b4?s=16&d=retro) |
6fbf3cb |
@@ -33,12 +33,6 @@
|
|
![](https://seccdn.libravatar.org/avatar/6e7fbef55363935e4575dd30bd5b66c5e35c9780c464e6c576df851ecbc386b4?s=16&d=retro) |
6fbf3cb |
options.target = createSpecVersion(optionsConfiguration
|
|
![](https://seccdn.libravatar.org/avatar/6e7fbef55363935e4575dd30bd5b66c5e35c9780c464e6c576df851ecbc386b4?s=16&d=retro) |
6fbf3cb |
.getSpecVersion());
|
|
![](https://seccdn.libravatar.org/avatar/6e7fbef55363935e4575dd30bd5b66c5e35c9780c464e6c576df851ecbc386b4?s=16&d=retro) |
6fbf3cb |
|
|
![](https://seccdn.libravatar.org/avatar/6e7fbef55363935e4575dd30bd5b66c5e35c9780c464e6c576df851ecbc386b4?s=16&d=retro) |
6fbf3cb |
- final String encoding = optionsConfiguration.getEncoding();
|
|
![](https://seccdn.libravatar.org/avatar/6e7fbef55363935e4575dd30bd5b66c5e35c9780c464e6c576df851ecbc386b4?s=16&d=retro) |
6fbf3cb |
-
|
|
![](https://seccdn.libravatar.org/avatar/6e7fbef55363935e4575dd30bd5b66c5e35c9780c464e6c576df851ecbc386b4?s=16&d=retro) |
6fbf3cb |
- if (encoding != null) {
|
|
![](https://seccdn.libravatar.org/avatar/6e7fbef55363935e4575dd30bd5b66c5e35c9780c464e6c576df851ecbc386b4?s=16&d=retro) |
6fbf3cb |
- options.encoding = createEncoding(encoding);
|
|
![](https://seccdn.libravatar.org/avatar/6e7fbef55363935e4575dd30bd5b66c5e35c9780c464e6c576df851ecbc386b4?s=16&d=retro) |
6fbf3cb |
- }
|
|
![](https://seccdn.libravatar.org/avatar/6e7fbef55363935e4575dd30bd5b66c5e35c9780c464e6c576df851ecbc386b4?s=16&d=retro) |
6fbf3cb |
-
|
|
![](https://seccdn.libravatar.org/avatar/6e7fbef55363935e4575dd30bd5b66c5e35c9780c464e6c576df851ecbc386b4?s=16&d=retro) |
6fbf3cb |
options.setSchemaLanguage(createLanguage(optionsConfiguration
|
|
![](https://seccdn.libravatar.org/avatar/6e7fbef55363935e4575dd30bd5b66c5e35c9780c464e6c576df851ecbc386b4?s=16&d=retro) |
6fbf3cb |
.getSchemaLanguage()));
|
|
![](https://seccdn.libravatar.org/avatar/6e7fbef55363935e4575dd30bd5b66c5e35c9780c464e6c576df851ecbc386b4?s=16&d=retro) |
6fbf3cb |
|
|
![](https://seccdn.libravatar.org/avatar/6e7fbef55363935e4575dd30bd5b66c5e35c9780c464e6c576df851ecbc386b4?s=16&d=retro) |
6fbf3cb |
@@ -105,26 +99,6 @@
|
|
![](https://seccdn.libravatar.org/avatar/6e7fbef55363935e4575dd30bd5b66c5e35c9780c464e6c576df851ecbc386b4?s=16&d=retro) |
6fbf3cb |
}
|
|
![](https://seccdn.libravatar.org/avatar/6e7fbef55363935e4575dd30bd5b66c5e35c9780c464e6c576df851ecbc386b4?s=16&d=retro) |
6fbf3cb |
|
|
![](https://seccdn.libravatar.org/avatar/6e7fbef55363935e4575dd30bd5b66c5e35c9780c464e6c576df851ecbc386b4?s=16&d=retro) |
6fbf3cb |
}
|
|
![](https://seccdn.libravatar.org/avatar/6e7fbef55363935e4575dd30bd5b66c5e35c9780c464e6c576df851ecbc386b4?s=16&d=retro) |
6fbf3cb |
-
|
|
![](https://seccdn.libravatar.org/avatar/6e7fbef55363935e4575dd30bd5b66c5e35c9780c464e6c576df851ecbc386b4?s=16&d=retro) |
6fbf3cb |
- private String createEncoding(String encoding)
|
|
![](https://seccdn.libravatar.org/avatar/6e7fbef55363935e4575dd30bd5b66c5e35c9780c464e6c576df851ecbc386b4?s=16&d=retro) |
6fbf3cb |
- throws MojoExecutionException {
|
|
![](https://seccdn.libravatar.org/avatar/6e7fbef55363935e4575dd30bd5b66c5e35c9780c464e6c576df851ecbc386b4?s=16&d=retro) |
6fbf3cb |
- if (encoding == null) {
|
|
![](https://seccdn.libravatar.org/avatar/6e7fbef55363935e4575dd30bd5b66c5e35c9780c464e6c576df851ecbc386b4?s=16&d=retro) |
6fbf3cb |
- return null;
|
|
![](https://seccdn.libravatar.org/avatar/6e7fbef55363935e4575dd30bd5b66c5e35c9780c464e6c576df851ecbc386b4?s=16&d=retro) |
6fbf3cb |
- }
|
|
![](https://seccdn.libravatar.org/avatar/6e7fbef55363935e4575dd30bd5b66c5e35c9780c464e6c576df851ecbc386b4?s=16&d=retro) |
6fbf3cb |
- try {
|
|
![](https://seccdn.libravatar.org/avatar/6e7fbef55363935e4575dd30bd5b66c5e35c9780c464e6c576df851ecbc386b4?s=16&d=retro) |
6fbf3cb |
- if (!Charset.isSupported(encoding)) {
|
|
![](https://seccdn.libravatar.org/avatar/6e7fbef55363935e4575dd30bd5b66c5e35c9780c464e6c576df851ecbc386b4?s=16&d=retro) |
6fbf3cb |
- throw new MojoExecutionException(
|
|
![](https://seccdn.libravatar.org/avatar/6e7fbef55363935e4575dd30bd5b66c5e35c9780c464e6c576df851ecbc386b4?s=16&d=retro) |
6fbf3cb |
-
|
|
![](https://seccdn.libravatar.org/avatar/6e7fbef55363935e4575dd30bd5b66c5e35c9780c464e6c576df851ecbc386b4?s=16&d=retro) |
6fbf3cb |
- MessageFormat.format("Unsupported encoding [{0}].", encoding));
|
|
![](https://seccdn.libravatar.org/avatar/6e7fbef55363935e4575dd30bd5b66c5e35c9780c464e6c576df851ecbc386b4?s=16&d=retro) |
6fbf3cb |
- }
|
|
![](https://seccdn.libravatar.org/avatar/6e7fbef55363935e4575dd30bd5b66c5e35c9780c464e6c576df851ecbc386b4?s=16&d=retro) |
6fbf3cb |
- return encoding;
|
|
![](https://seccdn.libravatar.org/avatar/6e7fbef55363935e4575dd30bd5b66c5e35c9780c464e6c576df851ecbc386b4?s=16&d=retro) |
6fbf3cb |
- } catch (IllegalCharsetNameException icne) {
|
|
![](https://seccdn.libravatar.org/avatar/6e7fbef55363935e4575dd30bd5b66c5e35c9780c464e6c576df851ecbc386b4?s=16&d=retro) |
6fbf3cb |
- throw new MojoExecutionException(
|
|
![](https://seccdn.libravatar.org/avatar/6e7fbef55363935e4575dd30bd5b66c5e35c9780c464e6c576df851ecbc386b4?s=16&d=retro) |
6fbf3cb |
-
|
|
![](https://seccdn.libravatar.org/avatar/6e7fbef55363935e4575dd30bd5b66c5e35c9780c464e6c576df851ecbc386b4?s=16&d=retro) |
6fbf3cb |
- MessageFormat.format("Unsupported encoding [{0}].", encoding));
|
|
![](https://seccdn.libravatar.org/avatar/6e7fbef55363935e4575dd30bd5b66c5e35c9780c464e6c576df851ecbc386b4?s=16&d=retro) |
6fbf3cb |
- }
|
|
![](https://seccdn.libravatar.org/avatar/6e7fbef55363935e4575dd30bd5b66c5e35c9780c464e6c576df851ecbc386b4?s=16&d=retro) |
6fbf3cb |
-
|
|
![](https://seccdn.libravatar.org/avatar/6e7fbef55363935e4575dd30bd5b66c5e35c9780c464e6c576df851ecbc386b4?s=16&d=retro) |
6fbf3cb |
- }
|
|
![](https://seccdn.libravatar.org/avatar/6e7fbef55363935e4575dd30bd5b66c5e35c9780c464e6c576df851ecbc386b4?s=16&d=retro) |
6fbf3cb |
|
|
![](https://seccdn.libravatar.org/avatar/6e7fbef55363935e4575dd30bd5b66c5e35c9780c464e6c576df851ecbc386b4?s=16&d=retro) |
6fbf3cb |
private Language createLanguage(String schemaLanguage)
|
|
![](https://seccdn.libravatar.org/avatar/6e7fbef55363935e4575dd30bd5b66c5e35c9780c464e6c576df851ecbc386b4?s=16&d=retro) |
6fbf3cb |
throws MojoExecutionException {
|
|
![](https://seccdn.libravatar.org/avatar/6e7fbef55363935e4575dd30bd5b66c5e35c9780c464e6c576df851ecbc386b4?s=16&d=retro) |
6fbf3cb |
diff -Nru maven-jaxb2-plugin-0.13.0/plugin-2.2/src/main/java/org/jvnet/mjiip/v_2_2/OptionsFactory.java maven-jaxb2-plugin-0.13.0.enconding/plugin-2.2/src/main/java/org/jvnet/mjiip/v_2_2/OptionsFactory.java
|
|
![](https://seccdn.libravatar.org/avatar/6e7fbef55363935e4575dd30bd5b66c5e35c9780c464e6c576df851ecbc386b4?s=16&d=retro) |
6fbf3cb |
--- maven-jaxb2-plugin-0.13.0/plugin-2.2/src/main/java/org/jvnet/mjiip/v_2_2/OptionsFactory.java 2015-08-30 11:39:57.000000000 +0200
|
|
![](https://seccdn.libravatar.org/avatar/6e7fbef55363935e4575dd30bd5b66c5e35c9780c464e6c576df851ecbc386b4?s=16&d=retro) |
6fbf3cb |
+++ maven-jaxb2-plugin-0.13.0.enconding/plugin-2.2/src/main/java/org/jvnet/mjiip/v_2_2/OptionsFactory.java 2015-10-26 07:13:24.428916678 +0100
|
|
![](https://seccdn.libravatar.org/avatar/6e7fbef55363935e4575dd30bd5b66c5e35c9780c464e6c576df851ecbc386b4?s=16&d=retro) |
6fbf3cb |
@@ -32,12 +32,6 @@
|
|
![](https://seccdn.libravatar.org/avatar/6e7fbef55363935e4575dd30bd5b66c5e35c9780c464e6c576df851ecbc386b4?s=16&d=retro) |
6fbf3cb |
|
|
![](https://seccdn.libravatar.org/avatar/6e7fbef55363935e4575dd30bd5b66c5e35c9780c464e6c576df851ecbc386b4?s=16&d=retro) |
6fbf3cb |
options.target = SpecVersion.V2_2;
|
|
![](https://seccdn.libravatar.org/avatar/6e7fbef55363935e4575dd30bd5b66c5e35c9780c464e6c576df851ecbc386b4?s=16&d=retro) |
6fbf3cb |
|
|
![](https://seccdn.libravatar.org/avatar/6e7fbef55363935e4575dd30bd5b66c5e35c9780c464e6c576df851ecbc386b4?s=16&d=retro) |
6fbf3cb |
- final String encoding = optionsConfiguration.getEncoding();
|
|
![](https://seccdn.libravatar.org/avatar/6e7fbef55363935e4575dd30bd5b66c5e35c9780c464e6c576df851ecbc386b4?s=16&d=retro) |
6fbf3cb |
-
|
|
![](https://seccdn.libravatar.org/avatar/6e7fbef55363935e4575dd30bd5b66c5e35c9780c464e6c576df851ecbc386b4?s=16&d=retro) |
6fbf3cb |
- if (encoding != null) {
|
|
![](https://seccdn.libravatar.org/avatar/6e7fbef55363935e4575dd30bd5b66c5e35c9780c464e6c576df851ecbc386b4?s=16&d=retro) |
6fbf3cb |
- options.encoding = createEncoding(encoding);
|
|
![](https://seccdn.libravatar.org/avatar/6e7fbef55363935e4575dd30bd5b66c5e35c9780c464e6c576df851ecbc386b4?s=16&d=retro) |
6fbf3cb |
- }
|
|
![](https://seccdn.libravatar.org/avatar/6e7fbef55363935e4575dd30bd5b66c5e35c9780c464e6c576df851ecbc386b4?s=16&d=retro) |
6fbf3cb |
-
|
|
![](https://seccdn.libravatar.org/avatar/6e7fbef55363935e4575dd30bd5b66c5e35c9780c464e6c576df851ecbc386b4?s=16&d=retro) |
6fbf3cb |
options.setSchemaLanguage(createLanguage(optionsConfiguration
|
|
![](https://seccdn.libravatar.org/avatar/6e7fbef55363935e4575dd30bd5b66c5e35c9780c464e6c576df851ecbc386b4?s=16&d=retro) |
6fbf3cb |
.getSchemaLanguage()));
|
|
![](https://seccdn.libravatar.org/avatar/6e7fbef55363935e4575dd30bd5b66c5e35c9780c464e6c576df851ecbc386b4?s=16&d=retro) |
6fbf3cb |
|
|
![](https://seccdn.libravatar.org/avatar/6e7fbef55363935e4575dd30bd5b66c5e35c9780c464e6c576df851ecbc386b4?s=16&d=retro) |
6fbf3cb |
@@ -94,24 +88,6 @@
|
|
![](https://seccdn.libravatar.org/avatar/6e7fbef55363935e4575dd30bd5b66c5e35c9780c464e6c576df851ecbc386b4?s=16&d=retro) |
6fbf3cb |
return options;
|
|
![](https://seccdn.libravatar.org/avatar/6e7fbef55363935e4575dd30bd5b66c5e35c9780c464e6c576df851ecbc386b4?s=16&d=retro) |
6fbf3cb |
}
|
|
![](https://seccdn.libravatar.org/avatar/6e7fbef55363935e4575dd30bd5b66c5e35c9780c464e6c576df851ecbc386b4?s=16&d=retro) |
6fbf3cb |
|
|
![](https://seccdn.libravatar.org/avatar/6e7fbef55363935e4575dd30bd5b66c5e35c9780c464e6c576df851ecbc386b4?s=16&d=retro) |
6fbf3cb |
- private String createEncoding(String encoding)
|
|
![](https://seccdn.libravatar.org/avatar/6e7fbef55363935e4575dd30bd5b66c5e35c9780c464e6c576df851ecbc386b4?s=16&d=retro) |
6fbf3cb |
- throws MojoExecutionException {
|
|
![](https://seccdn.libravatar.org/avatar/6e7fbef55363935e4575dd30bd5b66c5e35c9780c464e6c576df851ecbc386b4?s=16&d=retro) |
6fbf3cb |
- if (encoding == null) {
|
|
![](https://seccdn.libravatar.org/avatar/6e7fbef55363935e4575dd30bd5b66c5e35c9780c464e6c576df851ecbc386b4?s=16&d=retro) |
6fbf3cb |
- return null;
|
|
![](https://seccdn.libravatar.org/avatar/6e7fbef55363935e4575dd30bd5b66c5e35c9780c464e6c576df851ecbc386b4?s=16&d=retro) |
6fbf3cb |
- }
|
|
![](https://seccdn.libravatar.org/avatar/6e7fbef55363935e4575dd30bd5b66c5e35c9780c464e6c576df851ecbc386b4?s=16&d=retro) |
6fbf3cb |
- try {
|
|
![](https://seccdn.libravatar.org/avatar/6e7fbef55363935e4575dd30bd5b66c5e35c9780c464e6c576df851ecbc386b4?s=16&d=retro) |
6fbf3cb |
- if (!Charset.isSupported(encoding)) {
|
|
![](https://seccdn.libravatar.org/avatar/6e7fbef55363935e4575dd30bd5b66c5e35c9780c464e6c576df851ecbc386b4?s=16&d=retro) |
6fbf3cb |
- throw new MojoExecutionException(MessageFormat.format(
|
|
![](https://seccdn.libravatar.org/avatar/6e7fbef55363935e4575dd30bd5b66c5e35c9780c464e6c576df851ecbc386b4?s=16&d=retro) |
6fbf3cb |
- "Unsupported encoding [{0}].", encoding));
|
|
![](https://seccdn.libravatar.org/avatar/6e7fbef55363935e4575dd30bd5b66c5e35c9780c464e6c576df851ecbc386b4?s=16&d=retro) |
6fbf3cb |
- }
|
|
![](https://seccdn.libravatar.org/avatar/6e7fbef55363935e4575dd30bd5b66c5e35c9780c464e6c576df851ecbc386b4?s=16&d=retro) |
6fbf3cb |
- return encoding;
|
|
![](https://seccdn.libravatar.org/avatar/6e7fbef55363935e4575dd30bd5b66c5e35c9780c464e6c576df851ecbc386b4?s=16&d=retro) |
6fbf3cb |
- } catch (IllegalCharsetNameException icne) {
|
|
![](https://seccdn.libravatar.org/avatar/6e7fbef55363935e4575dd30bd5b66c5e35c9780c464e6c576df851ecbc386b4?s=16&d=retro) |
6fbf3cb |
- throw new MojoExecutionException(MessageFormat.format(
|
|
![](https://seccdn.libravatar.org/avatar/6e7fbef55363935e4575dd30bd5b66c5e35c9780c464e6c576df851ecbc386b4?s=16&d=retro) |
6fbf3cb |
- "Unsupported encoding [{0}].", encoding));
|
|
![](https://seccdn.libravatar.org/avatar/6e7fbef55363935e4575dd30bd5b66c5e35c9780c464e6c576df851ecbc386b4?s=16&d=retro) |
6fbf3cb |
- }
|
|
![](https://seccdn.libravatar.org/avatar/6e7fbef55363935e4575dd30bd5b66c5e35c9780c464e6c576df851ecbc386b4?s=16&d=retro) |
6fbf3cb |
-
|
|
![](https://seccdn.libravatar.org/avatar/6e7fbef55363935e4575dd30bd5b66c5e35c9780c464e6c576df851ecbc386b4?s=16&d=retro) |
6fbf3cb |
- }
|
|
![](https://seccdn.libravatar.org/avatar/6e7fbef55363935e4575dd30bd5b66c5e35c9780c464e6c576df851ecbc386b4?s=16&d=retro) |
6fbf3cb |
-
|
|
![](https://seccdn.libravatar.org/avatar/6e7fbef55363935e4575dd30bd5b66c5e35c9780c464e6c576df851ecbc386b4?s=16&d=retro) |
6fbf3cb |
private Language createLanguage(String schemaLanguage)
|
|
![](https://seccdn.libravatar.org/avatar/6e7fbef55363935e4575dd30bd5b66c5e35c9780c464e6c576df851ecbc386b4?s=16&d=retro) |
6fbf3cb |
throws MojoExecutionException {
|
|
![](https://seccdn.libravatar.org/avatar/6e7fbef55363935e4575dd30bd5b66c5e35c9780c464e6c576df851ecbc386b4?s=16&d=retro) |
6fbf3cb |
if (StringUtils.isEmpty(schemaLanguage)) {
|