commit
9132db6da1
BIN
2.0.0-alpha-9.tar.gz
Normal file
BIN
2.0.0-alpha-9.tar.gz
Normal file
Binary file not shown.
57
shrinkwrap-descriptors-2.0.0-alpha-8-saxon9.4.patch
Normal file
57
shrinkwrap-descriptors-2.0.0-alpha-8-saxon9.4.patch
Normal file
@ -0,0 +1,57 @@
|
||||
diff -Nru descriptors-2.0.0-alpha-8/metadata-parser/src/main/java/org/jboss/shrinkwrap/descriptor/metadata/MetadataParser.java descriptors-2.0.0-alpha-8.saxon/metadata-parser/src/main/java/org/jboss/shrinkwrap/descriptor/metadata/MetadataParser.java
|
||||
--- descriptors-2.0.0-alpha-8/metadata-parser/src/main/java/org/jboss/shrinkwrap/descriptor/metadata/MetadataParser.java 2015-09-29 21:44:03.000000000 +0200
|
||||
+++ descriptors-2.0.0-alpha-8.saxon/metadata-parser/src/main/java/org/jboss/shrinkwrap/descriptor/metadata/MetadataParser.java 2016-03-09 12:45:59.040471214 +0100
|
||||
@@ -174,12 +174,12 @@
|
||||
*/
|
||||
public void generateCode(final MetadataParserPath path, final boolean verbose) throws TransformerException {
|
||||
/** initialize the map which will overwrite global parameters as defined in metadata.xsl/ddJava.xsl */
|
||||
- final Map<String, String> xsltParameters = new HashMap<String, String>();
|
||||
+ final Map<String, Object> xsltParameters = new HashMap<String, Object>();
|
||||
xsltParameters.put("gOutputFolder", getURIPath(path.getPathToImpl()));
|
||||
xsltParameters.put("gOutputFolderApi", getURIPath(path.getPathToApi()));
|
||||
xsltParameters.put("gOutputFolderTest", getURIPath(path.getPathToTest()));
|
||||
xsltParameters.put("gOutputFolderService", getURIPath(path.getPathToServices()));
|
||||
- xsltParameters.put("gVerbose", Boolean.toString(verbose));
|
||||
+ xsltParameters.put("gVerbose", verbose);
|
||||
|
||||
final InputStream is = MetadataParser.class.getResourceAsStream("/META-INF/ddJavaAll.xsl");
|
||||
if (log.isLoggable(Level.FINE)) {
|
||||
diff -Nru descriptors-2.0.0-alpha-8/metadata-parser/src/main/java/org/jboss/shrinkwrap/descriptor/metadata/xslt/XsltTransformer.java descriptors-2.0.0-alpha-8.saxon/metadata-parser/src/main/java/org/jboss/shrinkwrap/descriptor/metadata/xslt/XsltTransformer.java
|
||||
--- descriptors-2.0.0-alpha-8/metadata-parser/src/main/java/org/jboss/shrinkwrap/descriptor/metadata/xslt/XsltTransformer.java 2015-09-29 21:44:03.000000000 +0200
|
||||
+++ descriptors-2.0.0-alpha-8.saxon/metadata-parser/src/main/java/org/jboss/shrinkwrap/descriptor/metadata/xslt/XsltTransformer.java 2016-03-09 12:50:02.467759793 +0100
|
||||
@@ -49,7 +49,7 @@
|
||||
* @throws TransformerException
|
||||
*/
|
||||
public static void simpleTransform(final String sourcePath, final String xsltPath, final String resultDir,
|
||||
- final Map<String, String> parameters) throws TransformerException {
|
||||
+ final Map<String, Object> parameters) throws TransformerException {
|
||||
final TransformerFactory tFactory = TransformerFactory.newInstance("net.sf.saxon.TransformerFactoryImpl", null);
|
||||
final Transformer transformer = tFactory.newTransformer(new StreamSource(new File(xsltPath)));
|
||||
applyParameters(transformer, parameters);
|
||||
@@ -70,7 +70,7 @@
|
||||
* @throws TransformerException
|
||||
*/
|
||||
public static void simpleTransform(final String sourcePath, final StreamSource xsltSource, final String resultDir,
|
||||
- final Map<String, String> parameters) throws TransformerException {
|
||||
+ final Map<String, Object> parameters) throws TransformerException {
|
||||
final TransformerFactory tFactory = TransformerFactory.newInstance("net.sf.saxon.TransformerFactoryImpl", null);
|
||||
final Transformer transformer = tFactory.newTransformer(xsltSource);
|
||||
applyParameters(transformer, parameters);
|
||||
@@ -92,7 +92,7 @@
|
||||
* @throws TransformerException
|
||||
*/
|
||||
public static void simpleTransform(final String contextFile, final InputStream xsltSource, final File result,
|
||||
- final Map<String, String> parameters) throws TransformerException {
|
||||
+ final Map<String, Object> parameters) throws TransformerException {
|
||||
final TransformerFactory tFactory = TransformerFactory.newInstance("net.sf.saxon.TransformerFactoryImpl", null);
|
||||
final Transformer transformer = tFactory.newTransformer(new StreamSource(xsltSource));
|
||||
applyParameters(transformer, parameters);
|
||||
@@ -106,7 +106,7 @@
|
||||
* @param transformer
|
||||
* @param parameters
|
||||
*/
|
||||
- private static void applyParameters(final Transformer transformer, final Map<String, String> parameters) {
|
||||
+ private static void applyParameters(final Transformer transformer, final Map<String, Object> parameters) {
|
||||
final Set<String> keys = parameters.keySet();
|
||||
for (Iterator<String> iterator = keys.iterator(); iterator.hasNext();) {
|
||||
final String key = iterator.next();
|
||||
213
shrinkwrap-descriptors.spec
Normal file
213
shrinkwrap-descriptors.spec
Normal file
@ -0,0 +1,213 @@
|
||||
%global namedreltag -alpha-9
|
||||
%global namedversion %{version}%{?namedreltag}
|
||||
|
||||
Name: shrinkwrap-descriptors
|
||||
Version: 2.0.0
|
||||
Release: 1
|
||||
Summary: ShrinkWrap sub-project for creating Archive Descriptors
|
||||
License: ASL 2.0
|
||||
Url: http://arquillian.org/modules/descriptors-shrinkwrap/
|
||||
Source0: https://github.com/shrinkwrap/descriptors/archive/%{namedversion}.tar.gz
|
||||
# Related to SHRINKDESC-137
|
||||
Patch0: shrinkwrap-descriptors-2.0.0-alpha-8-saxon9.4.patch
|
||||
|
||||
BuildArch: noarch
|
||||
BuildRequires: graphviz maven-local mvn(com.sun.codemodel:codemodel)
|
||||
BuildRequires: mvn(com.sun.xml.dtd-parser:dtd-parser) mvn(com.thoughtworks.qdox:qdox)
|
||||
BuildRequires: mvn(commons-logging:commons-logging) mvn(dom4j:dom4j) mvn(jdepend:jdepend)
|
||||
BuildRequires: mvn(junit:junit) mvn(net.sf.saxon:saxon) mvn(org.apache.ant:ant)
|
||||
BuildRequires: mvn(org.apache.ant:ant-testutil) mvn(org.apache.commons:commons-lang3)
|
||||
BuildRequires: mvn(org.apache.maven:maven-core) mvn(org.apache.maven:maven-plugin-api)
|
||||
BuildRequires: mvn(org.apache.maven.plugins:maven-clean-plugin)
|
||||
BuildRequires: mvn(org.apache.maven.plugins:maven-enforcer-plugin)
|
||||
BuildRequires: mvn(org.apache.maven.plugins:maven-plugin-plugin)
|
||||
BuildRequires: mvn(org.apache.maven.plugins:maven-release-plugin)
|
||||
BuildRequires: mvn(org.apache.maven.plugins:maven-source-plugin)
|
||||
BuildRequires: mvn(org.apache.maven.plugin-testing:maven-plugin-testing-harness)
|
||||
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
|
||||
BuildRequires: mvn(org.codehaus.mojo:buildnumber-maven-plugin)
|
||||
BuildRequires: mvn(org.jboss:jboss-parent:pom:) mvn(org.jboss.apiviz:apiviz)
|
||||
BuildRequires: mvn(org.mockito:mockito-all) mvn(xmlunit:xmlunit)
|
||||
|
||||
%description
|
||||
ShrinkWrap sub-project for creating Archive Descriptors
|
||||
This package contains the ShrinkWrap Descriptors API Base.
|
||||
API Base for Client View of the ShrinkWrap Descriptors Project.
|
||||
|
||||
%package ant
|
||||
Summary: ShrinkWrap Descriptors Ant Extension
|
||||
%description ant
|
||||
Extension module for ShrinkWrap Descriptors Ant Tasks.
|
||||
|
||||
%package api-javaee
|
||||
Summary: ShrinkWrap Descriptors Generated Java EE API
|
||||
%description api-javaee
|
||||
Client View of the ShrinkWrap Descriptors Project.
|
||||
|
||||
%package api-javaee-prototype
|
||||
Summary: ShrinkWrap Descriptors Prototype Java EE API
|
||||
%description api-javaee-prototype
|
||||
Client View of the ShrinkWrap Descriptors Project.
|
||||
|
||||
%package api-jboss
|
||||
Summary: ShrinkWrap Descriptors Generated JBoss API
|
||||
%description api-jboss
|
||||
Client View of the JBoss related ShrinkWrap Descriptors Project.
|
||||
|
||||
%package api-misc
|
||||
Summary: ShrinkWrap Descriptors Generated Misc API
|
||||
%description api-misc
|
||||
Client View of the ShrinkWrap Descriptors Project.
|
||||
|
||||
%package bom
|
||||
Summary: ShrinkWrap Descriptors Bill of Materials
|
||||
%description bom
|
||||
Centralized dependency Management for the
|
||||
ShrinkWrap Descriptors Project.
|
||||
|
||||
%package build-resources
|
||||
Summary: Shrinkwrap Descriptors Build Resources
|
||||
%description build-resources
|
||||
Shrinkwrap Descriptors Build Resources.
|
||||
|
||||
%package depchain
|
||||
Summary: ShrinkWrap Descriptors Dependency Chain
|
||||
%description depchain
|
||||
Single-POM Definition to export the ShrinkWrap Descriptors
|
||||
artifacts in proper scope.
|
||||
|
||||
%package gen
|
||||
Summary: ShrinkWrap Descriptors Source Generator
|
||||
%description gen
|
||||
Generates various deployment descriptors via XSLT transformation.
|
||||
|
||||
%package impl-base
|
||||
Summary: ShrinkWrap Descriptors Implementation
|
||||
License: ASL 2.0 and LGPLv2+
|
||||
%description impl-base
|
||||
Implementation of the ShrinkWrap Descriptors Project.
|
||||
|
||||
%package impl-javaee
|
||||
Summary: ShrinkWrap Descriptors Generated Java EE Implementation
|
||||
%description impl-javaee
|
||||
Generated Implementation of the ShrinkWrap Descriptors Project.
|
||||
|
||||
%package impl-javaee-prototype
|
||||
Summary: ShrinkWrap Descriptors Prototype Java EE Implementation
|
||||
%description impl-javaee-prototype
|
||||
Prototype Implementation of the ShrinkWrap Descriptors Project.
|
||||
|
||||
%package impl-jboss
|
||||
Summary: ShrinkWrap Descriptors Generated JBoss Implementation
|
||||
%description impl-jboss
|
||||
Generated JBoss Implementation of the ShrinkWrap Descriptors Project.
|
||||
|
||||
%package impl-misc
|
||||
Summary: ShrinkWrap Descriptors Generated Misc Implementation
|
||||
%description impl-misc
|
||||
Generated JBoss Implementation of the ShrinkWrap Descriptors Project.
|
||||
|
||||
%package metadata-parser
|
||||
Summary: ShrinkWrap Descriptors Metadata Parser
|
||||
%description metadata-parser
|
||||
XSD and DTD parser for the ShrinkWrap Descriptors.
|
||||
|
||||
%package metadata-parser-test
|
||||
Summary: ShrinkWrap Descriptors Metadata Parser Tests
|
||||
%description metadata-parser-test
|
||||
Hand-coded Tests for the generated descriptors via metadata plugin.
|
||||
|
||||
%package parent
|
||||
Summary: ShrinkWrap Descriptors Aggregator POM
|
||||
%description parent
|
||||
ShrinkWrap Descriptors Aggregator POM.
|
||||
|
||||
%package spi
|
||||
Summary: ShrinkWrap Descriptors SPI
|
||||
%description spi
|
||||
Service Provider Interface of the ShrinkWrap Descriptors Project.
|
||||
|
||||
%package test-util
|
||||
Summary: ShrinkWrap Descriptors Test Utilities
|
||||
%description test-util
|
||||
Commonly used custom assertions.
|
||||
|
||||
%package javadoc
|
||||
Summary: Javadoc for %{name}
|
||||
%description javadoc
|
||||
This package contains javadoc for %{name}.
|
||||
|
||||
%prep
|
||||
%setup -q -n descriptors-%{namedversion}
|
||||
%patch0 -p1
|
||||
rm -r gen/doc/*
|
||||
%pom_remove_plugin -r :maven-checkstyle-plugin
|
||||
%pom_remove_dep :saxon-dom metadata-parser
|
||||
%pom_remove_dep -r org.easytesting:fest-assert
|
||||
%pom_disable_module test
|
||||
%pom_add_dep org.apache.maven:maven-core::test metadata-parser
|
||||
%pom_xpath_set -r "pom:addClasspath" false ant metadata-parser
|
||||
rm metadata-parser/src/test/java/org/jboss/shrinkwrap/descriptor/metadata/mojo/MetadataParserMojoTest.java
|
||||
%mvn_package :%{name}-impl-base::tests: %{name}-impl-base
|
||||
|
||||
%build
|
||||
export JAVA5_HOME=%{_jvmdir}/java
|
||||
%mvn_build -s
|
||||
|
||||
%install
|
||||
%mvn_install
|
||||
|
||||
%files -f .mfiles-%{name}-api-base
|
||||
%license LICENSE
|
||||
|
||||
%files ant -f .mfiles-%{name}-ant
|
||||
|
||||
%files api-javaee -f .mfiles-%{name}-api-javaee
|
||||
|
||||
%files api-javaee-prototype -f .mfiles-%{name}-api-javaee-prototype
|
||||
|
||||
%files api-jboss -f .mfiles-%{name}-api-jboss
|
||||
|
||||
%files api-misc -f .mfiles-%{name}-api-misc
|
||||
|
||||
%files bom -f .mfiles-%{name}-bom
|
||||
%license LICENSE
|
||||
|
||||
%files build-resources -f .mfiles-%{name}-build-resources
|
||||
%license LICENSE
|
||||
|
||||
%files depchain -f .mfiles-%{name}-depchain
|
||||
%license LICENSE
|
||||
|
||||
%files gen -f .mfiles-%{name}-gen
|
||||
%doc gen/readme.txt
|
||||
%license LICENSE
|
||||
|
||||
%files impl-base -f .mfiles-%{name}-impl-base
|
||||
|
||||
%files impl-javaee -f .mfiles-%{name}-impl-javaee
|
||||
|
||||
%files impl-javaee-prototype -f .mfiles-%{name}-impl-javaee-prototype
|
||||
|
||||
%files impl-jboss -f .mfiles-%{name}-impl-jboss
|
||||
|
||||
%files impl-misc -f .mfiles-%{name}-impl-misc
|
||||
|
||||
%files metadata-parser -f .mfiles-%{name}-metadata-parser
|
||||
|
||||
%files metadata-parser-test -f .mfiles-%{name}-metadata-parser-test
|
||||
|
||||
%files parent -f .mfiles-%{name}-parent
|
||||
%license LICENSE
|
||||
|
||||
%files spi -f .mfiles-%{name}-spi
|
||||
|
||||
%files test-util -f .mfiles-%{name}-test-util
|
||||
%license LICENSE
|
||||
|
||||
%files javadoc -f .mfiles-javadoc
|
||||
%license LICENSE
|
||||
|
||||
%changelog
|
||||
* Wed Aug 12 2020 maminjie <maminjie1@huawei.com> - 2.0.0-1
|
||||
- package init
|
||||
5
shrinkwrap-descriptors.yaml
Normal file
5
shrinkwrap-descriptors.yaml
Normal file
@ -0,0 +1,5 @@
|
||||
version_control: github
|
||||
src_repo: shrinkwrap/descriptors
|
||||
tag_prefix: ^v
|
||||
tag_pattern: "(.*?)-alpha"
|
||||
seperator: "."
|
||||
Loading…
x
Reference in New Issue
Block a user