Fridrich Strba 2019-03-15 14:19:10 +00:00 committed by Git OBS Bridge
parent 6a8a9772b6
commit d900094cd8
3 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,22 @@
--- modello-1.9.1/modello-core/src/main/java/org/codehaus/modello/ModelloCli.java 2019-03-15 15:06:08.911975772 +0100
+++ modello-1.9.1/modello-core/src/main/java/org/codehaus/modello/ModelloCli.java 2019-03-15 15:07:02.920265437 +0100
@@ -121,6 +121,11 @@
{
parameters.setProperty( ModelloParameterConstants.ENCODING, args[6] );
}
+
+ if ( args.length > 7 )
+ {
+ parameters.setProperty( ModelloParameterConstants.DOM_AS_XPP3, args[7] );
+ }
}
// ----------------------------------------------------------------------
@@ -130,6 +135,6 @@
private static void usage()
{
System.err.println( "Usage: modello <model> <outputType> <output directory> <modelVersion> <packageWithVersion>"
- + "<useJava5> [<encoding>]" );
+ + "<useJava5> [<encoding> [<domAsXpp3>]]" );
}
}

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Fri Mar 15 14:15:55 UTC 2019 - Fridrich Strba <fstrba@suse.com>
- Added patch:
* modello-cli-domasxpp3.patch
+ allow setting on command-line the domAsXpp3 property that
modello-maven-plugin can set in pom.xml file
-------------------------------------------------------------------
Tue Mar 12 08:12:31 UTC 2019 - Fridrich Strba <fstrba@suse.com>

View File

@ -26,6 +26,7 @@ URL: http://codehaus-plexus.github.io/modello
Source0: http://repo2.maven.org/maven2/org/codehaus/%{name}/%{name}/%{version}/%{name}-%{version}-source-release.zip
Source1: http://www.apache.org/licenses/LICENSE-2.0.txt
Source100: %{name}-build.tar.xz
Patch0: modello-cli-domasxpp3.patch
BuildRequires: ant
BuildRequires: fdupes
BuildRequires: javapackages-local
@ -71,6 +72,7 @@ API documentation for %{name}.
%prep
%setup -q -a100
%patch0 -p1
cp -p %{SOURCE1} LICENSE
# We don't generate site; don't pull extra dependencies.
%pom_remove_plugin :maven-site-plugin