Sync from SUSE:ALP:Source:Standard:1.0 maven-filtering revision a9783670860e1e4dbd587d09cedeae8a

This commit is contained in:
Adrian Schröter 2024-02-20 09:22:10 +01:00
commit 94ab3a7f63
5 changed files with 356 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

BIN
maven-filtering-3.3.1-source-release.zip (Stored with Git LFS) Normal file

Binary file not shown.

154
maven-filtering-build.xml Normal file
View File

@ -0,0 +1,154 @@
<?xml version="1.0" encoding="UTF-8"?>
<project name="maven-filtering" default="package" basedir=".">
<!-- ====================================================================== -->
<!-- Build environment properties -->
<!-- ====================================================================== -->
<property file="build.properties"/>
<property name="project.groupId" value="org.apache.maven.shared"/>
<property name="project.artifactId" value="maven-filtering"/>
<property name="project.version" value="3.3.1"/>
<property name="project.name" value="Apache Maven Filtering"/>
<property name="project.organization.name" value="The Apache Software Foundation"/>
<property name="spec.version" value="3.3"/>
<property name="compiler.source" value="1.8"/>
<property name="compiler.target" value="${compiler.source}"/>
<property name="build.finalName" value="${project.artifactId}-${project.version}"/>
<property name="build.dir" value="target"/>
<property name="build.outputDir" value="${build.dir}/classes"/>
<property name="build.srcDir" value="src/main/java"/>
<property name="build.resourceDir" value="src/main/resources"/>
<property name="reporting.outputDirectory" value="${build.dir}/site"/>
<!-- ====================================================================== -->
<!-- Defining classpaths -->
<!-- ====================================================================== -->
<path id="build.classpath">
<fileset dir="lib">
<include name="**/*.jar"/>
</fileset>
</path>
<!-- ====================================================================== -->
<!-- Cleaning up target -->
<!-- ====================================================================== -->
<target name="clean" description="Clean the output directory">
<delete dir="${build.dir}"/>
</target>
<!-- ====================================================================== -->
<!-- Compilation target -->
<!-- ====================================================================== -->
<target name="compile" description="Compile the code">
<mkdir dir="${build.outputDir}"/>
<javac destdir="${build.outputDir}"
nowarn="false"
debug="true"
encoding="UTF-8"
optimize="false"
deprecation="true"
target="${compiler.target}"
verbose="false"
fork="false"
source="${compiler.source}">
<src>
<pathelement location="${build.srcDir}"/>
</src>
<classpath refid="build.classpath"/>
</javac>
</target>
<!-- ====================================================================== -->
<!-- Sisu javax.inject.Named generation target -->
<!-- ====================================================================== -->
<target name="sisu"
depends="compile"
description="Generate javax.inject.Name index">
<sequential>
<java classname="org.eclipse.sisu.space.SisuIndex"
failonerror="true"
fork="true">
<classpath>
<path refid="build.classpath"/>
</classpath>
<arg value="${build.outputDir}"/>
</java>
<move todir="${build.outputDir}/META-INF">
<fileset dir="META-INF"/>
</move>
</sequential>
</target>
<!-- ====================================================================== -->
<!-- Javadoc target -->
<!-- ====================================================================== -->
<target name="javadoc" description="Generates the Javadoc of the application">
<javadoc sourcepath="${build.srcDir}"
packagenames="*"
destdir="${reporting.outputDirectory}/apidocs"
access="protected"
source="${compiler.source}"
verbose="false"
version="true"
use="true"
author="true"
splitindex="false"
nodeprecated="false"
nodeprecatedlist="false"
notree="false"
noindex="false"
nohelp="false"
nonavbar="false"
serialwarn="false"
encoding="UTF-8"
linksource="false"
breakiterator="false">
<classpath refid="build.classpath"/>
</javadoc>
</target>
<!-- ====================================================================== -->
<!-- Package target -->
<!-- ====================================================================== -->
<target name="package" depends="sisu" description="Package the application">
<jar jarfile="${build.dir}/${build.finalName}.jar"
compress="true"
index="false"
basedir="${build.outputDir}"
excludes="**/package.html">
<manifest>
<attribute name="Implementation-Title" value="${project.name}"/>
<attribute name="Implementation-URL" value="http://maven.apache.org/shared/${project.artifactId}/"/>
<attribute name="Implementation-Vendor" value="${project.organization.name}"/>
<attribute name="Implementation-Vendor-Id" value="${project.groupId}"/>
<attribute name="Implementation-Version" value="${project.version}"/>
<attribute name="JavaPackages-ArtifactId" value="${project.artifactId}"/>
<attribute name="JavaPackages-GroupId" value="${project.groupId}"/>
<attribute name="JavaPackages-Version" value="${project.version}"/>
<attribute name="Specification-Title" value="${project.name}"/>
<attribute name="Specification-Vendor" value="${project.organization.name}"/>
<attribute name="Specification-Version" value="${spec.version}"/>
</manifest>
</jar>
</target>
<!-- ====================================================================== -->
<!-- A dummy target for the package named after the type it creates -->
<!-- ====================================================================== -->
<target name="jar" depends="package" description="Builds the jar for the application"/>
</project>

79
maven-filtering.changes Normal file
View File

@ -0,0 +1,79 @@
-------------------------------------------------------------------
Wed Sep 6 13:00:35 UTC 2023 - Fridrich Strba <fstrba@suse.com>
- Upgrade to version 3.3.1
* Changes of 3.3.1
+ MSHARED-1175: Copying x resources from rel/path to rel/path
+ MSHARED-1213: Bug: filtering existing but 0 byte file
+ MSHARED-1199: Upgrade parent pom to 39
+ MSHARED-1112: Ignore setting permissions on non existing dest
files/symlinks
+ MSHARED-1144: remove rendundant error message
* Changes of 3.3.0
+ fixed cloning of MavenResourcesExecution's instances using
copyOf() method
+ MRESOURCES-258: Copying and filtering logic is delegated to
FileUtils
+ replace deprecated methods
+ replace deprecated code in favor of Java 7 core and apache
commons libraries
declare dependencies
+ MSHARED-1080: Parent POM 36, Java8, drop legacy.
-------------------------------------------------------------------
Thu Apr 28 11:53:54 UTC 2022 - Fridrich Strba <fstrba@suse.com>
- Upgrade to version 3.2.0
* Bug
+ [MSHARED-417] - Infinite loop when loading self-referencing
properties
+ [MSHARED-599] - Escaping the escape string produces incorrect
output.
+ [MSHARED-829] - MavenResourcesExecution.copyOf() returns
newinstance without properties set
* New Feature
+ [MSHARED-934] - Allow using a different encoding when
filtering properties files
* Improvement
+ [MSHARED-646] - Removed prerequisites for none maven-plugin
project
+ [MSHARED-664] - Add ico files to default non-filtered
extensions
+ [MSHARED-830] - Require Java 7
+ [MSHARED-879] - make build Reproducible
+ [MSHARED-884] - Only overwrite filtered resources when
contents differ
+ [MSHARED-946] - Update to maven-shared-utils 3.3.3
* Dependency upgrade
+ [MSHARED-575] - Upgrade maven-shared-utils to 3.1.0
+ [MSHARED-600] - Upgrade of plexus-interpolation to 1.24.
+ [MSHARED-645] - Upgrade to maven-shared-utils 3.2.0
+ [MSHARED-667] - plexus-utils 3.0.24 to 3.1.0
+ [MSHARED-711] - Upgrade parent to 31
+ [MSHARED-712] - Upgrade maven-surefire/failsafe-plugin
2.21.0 for JDK 10
+ [MSHARED-755] - Upgrade parent to version 32.
+ [MSHARED-756] - Upgrade plexus-interpolation to 1.25
+ [MSHARED-757] - Upgrade maven-shared-utils to 3.2.1
+ [MSHARED-758] - Upgrade JUnit to 4.12
+ [MSHARED-789] - Upgrade maven-shared-components parent
to 33
+ [MSHARED-790] - Upgrade plexus-utils 3.1.1
+ [MSHARED-809] - Upgrade plexus-utils 3.2.0
* needed by maven-resources-plugin 3.2.0
-------------------------------------------------------------------
Sun Mar 20 20:12:41 UTC 2022 - Fridrich Strba <fstrba@suse.com>
- Build with source and target levels 8
-------------------------------------------------------------------
Tue May 11 14:46:24 UTC 2021 - Fridrich Strba <fstrba@suse.com>
- Do not build against legacy guava20 any more
-------------------------------------------------------------------
Mon Mar 25 14:08:45 UTC 2019 - Fridrich Strba <fstrba@suse.com>
- Initial packaging of maven-filtering 3.1.1
- Generate and customize the ant build.xml file

97
maven-filtering.spec Normal file
View File

@ -0,0 +1,97 @@
#
# spec file for package maven-filtering
#
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: maven-filtering
Version: 3.3.1
Release: 0
Summary: Shared component providing resource filtering
License: Apache-2.0
Group: Development/Libraries/Java
URL: https://maven.apache.org/shared/%{name}/index.html
Source0: https://repo1.maven.org/maven2/org/apache/maven/shared/%{name}/%{version}/%{name}-%{version}-source-release.zip
Source1: %{name}-build.xml
BuildRequires: ant
BuildRequires: apache-commons-io
BuildRequires: atinject
BuildRequires: fdupes
BuildRequires: javapackages-local >= 6
BuildRequires: maven-lib
BuildRequires: plexus-build-api
BuildRequires: plexus-interpolation
BuildRequires: plexus-utils
BuildRequires: sisu-inject
BuildRequires: slf4j
BuildRequires: unzip
BuildArch: noarch
%description
These Plexus components have been built from the filtering process/code in
Maven Resources Plugin. The goal is to provide a shared component for all
plugins that needs to filter resources.
%package javadoc
Summary: Javadoc for %{name}
Group: Documentation/HTML
%description javadoc
This package contains the API documentation for %{name}.
%prep
%setup -q
cp %{SOURCE1} build.xml
%pom_xpath_remove pom:project/pom:parent/pom:relativePath
%build
mkdir -p lib
build-jar-repository -s lib \
atinject \
commons-io \
maven/maven-core \
maven/maven-model \
maven/maven-settings \
org.eclipse.sisu.inject \
plexus/utils \
plexus/interpolation \
plexus/plexus-build-api \
slf4j/api
%{ant} \
jar javadoc
%install
# jar
install -dm 0755 %{buildroot}%{_javadir}/%{name}
install -pm 0644 target/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}/%{name}.jar
# pom
install -dm 0755 %{buildroot}%{_mavenpomdir}/%{name}
%{mvn_install_pom} pom.xml %{buildroot}%{_mavenpomdir}/%{name}/%{name}.pom
%add_maven_depmap %{name}/%{name}.pom %{name}/%{name}.jar
# javadoc
install -dm 0755 %{buildroot}%{_javadocdir}/%{name}
cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}/
%fdupes -s %{buildroot}%{_javadocdir}
%files -f .mfiles
%license LICENSE NOTICE
%files javadoc
%{_javadocdir}/%{name}
%license LICENSE NOTICE
%changelog