Sync from SUSE:ALP:Source:Standard:1.0 apache-commons-configuration2 revision 208f74e8efbd4d33a89eb048f3c85860
This commit is contained in:
commit
4cb8acc51f
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal 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
|
180
apache-commons-configuration2-build.xml
Normal file
180
apache-commons-configuration2-build.xml
Normal file
@ -0,0 +1,180 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<project name="commons-configuration2-from-maven" default="package" basedir=".">
|
||||
|
||||
<!-- ====================================================================== -->
|
||||
<!-- Build environment properties -->
|
||||
<!-- ====================================================================== -->
|
||||
|
||||
<property file="build.properties"/>
|
||||
|
||||
<property name="javacc.home" value="lib"/>
|
||||
|
||||
<property name="compiler.release" value="8"/>
|
||||
<property name="compiler.source" value="1.${compiler.release}"/>
|
||||
<property name="compiler.target" value="${compiler.source}"/>
|
||||
|
||||
<property name="project.groupId" value="org.apache.commons"/>
|
||||
<property name="project.artifactId" value="commons-configuration2"/>
|
||||
|
||||
<property name="spec.version" value="2.9"/>
|
||||
<property name="project.version" value="${spec.version}.0"/>
|
||||
<property name="bundle.version" value="${project.version}"/>
|
||||
|
||||
<property name="project.name" value="Apache Commons Configuration"/>
|
||||
<property name="project.description" value="Tools to assist in the reading of configuration/preferences files in various formats"/>
|
||||
<property name="project.url" value="https://commons.apache.org/proper/commons-configuration/"/>
|
||||
<property name="project.license.url" value="https://www.apache.org/licenses/LICENSE-2.0.txt"/>
|
||||
<property name="project.organization.name" value="The Apache Software Foundation"/>
|
||||
<property name="project.organization.id" value="org.apache"/>
|
||||
|
||||
<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.javaccDir" value="src/main/javacc"/>
|
||||
<property name="build.javaccOutputDir" value="${build.dir}/generated-sources/javacc"/>
|
||||
<property name="build.resourceDir" value="src/main/resources"/>
|
||||
<property name="build.resourceDir.1" value="."/>
|
||||
|
||||
<property name="reporting.outputDirectory" value="${build.dir}/site"/>
|
||||
|
||||
<!-- ====================================================================== -->
|
||||
<!-- Defining classpaths -->
|
||||
<!-- ====================================================================== -->
|
||||
|
||||
<path id="build.classpath">
|
||||
<fileset dir="lib">
|
||||
<include name="**/*"/>
|
||||
</fileset>
|
||||
</path>
|
||||
|
||||
<!-- ====================================================================== -->
|
||||
<!-- Cleaning up target -->
|
||||
<!-- ====================================================================== -->
|
||||
|
||||
<target name="clean" description="Clean the output directory">
|
||||
<delete dir="${build.dir}"/>
|
||||
</target>
|
||||
|
||||
<!-- ====================================================================== -->
|
||||
<!-- Source generation target -->
|
||||
<!-- ====================================================================== -->
|
||||
|
||||
<target name="gen-sources" description="Generate the sources using javacc">
|
||||
<mkdir dir="${build.javaccOutputDir}/org/apache/commons/configuration2/plist"/>
|
||||
<javacc target="${build.javaccDir}/PropertyListParser.jj"
|
||||
outputdirectory="${build.javaccOutputDir}/org/apache/commons/configuration2/plist"
|
||||
javacchome="${javacc.home}"/>
|
||||
</target>
|
||||
|
||||
<!-- ====================================================================== -->
|
||||
<!-- Compilation target -->
|
||||
<!-- ====================================================================== -->
|
||||
|
||||
<target name="compile" depends="gen-sources" description="Compile the code">
|
||||
<mkdir dir="${build.outputDir}"/>
|
||||
<javac destdir="${build.outputDir}"
|
||||
encoding="iso-8859-1"
|
||||
nowarn="false"
|
||||
debug="true"
|
||||
optimize="false"
|
||||
deprecation="true"
|
||||
release="${compiler.release}"
|
||||
target="${compiler.target}"
|
||||
verbose="false"
|
||||
fork="false"
|
||||
source="${compiler.source}">
|
||||
<src>
|
||||
<pathelement location="${build.srcDir}"/>
|
||||
<pathelement location="${build.javaccOutputDir}"/>
|
||||
</src>
|
||||
<classpath refid="build.classpath"/>
|
||||
</javac>
|
||||
<copy todir="${build.outputDir}">
|
||||
<fileset dir="${build.resourceDir}"/>
|
||||
</copy>
|
||||
<mkdir dir="${build.outputDir}/META-INF"/>
|
||||
<copy todir="${build.outputDir}/META-INF">
|
||||
<fileset dir="${build.resourceDir.1}">
|
||||
<include name="NOTICE.txt"/>
|
||||
<include name="LICENSE.txt"/>
|
||||
</fileset>
|
||||
</copy>
|
||||
</target>
|
||||
|
||||
<!-- ====================================================================== -->
|
||||
<!-- Javadoc target -->
|
||||
<!-- ====================================================================== -->
|
||||
|
||||
<target name="javadoc" depends="gen-sources" description="Generates the Javadoc of the application">
|
||||
<javadoc packagenames="*"
|
||||
destdir="${reporting.outputDirectory}/apidocs"
|
||||
access="protected"
|
||||
classpathref="build.classpath"
|
||||
verbose="false"
|
||||
encoding="iso-8859-1"
|
||||
version="true"
|
||||
use="true"
|
||||
author="true"
|
||||
splitindex="false"
|
||||
nodeprecated="false"
|
||||
nodeprecatedlist="false"
|
||||
notree="false"
|
||||
noindex="false"
|
||||
nohelp="false"
|
||||
nonavbar="false"
|
||||
serialwarn="false"
|
||||
source="${compiler.source}"
|
||||
breakiterator="false">
|
||||
<fileset dir="${build.srcDir}"/>
|
||||
<fileset dir="${build.javaccOutputDir}"/>
|
||||
<link href="https://docs.oracle.com/javase/8/docs/api/"/>
|
||||
<link href="https://docs.spring.io/spring/docs/4.3.26.RELEASE/javadoc-api/"/>
|
||||
</javadoc>
|
||||
</target>
|
||||
|
||||
<!-- ====================================================================== -->
|
||||
<!-- Package target -->
|
||||
<!-- ====================================================================== -->
|
||||
|
||||
<target name="package" depends="compile" description="Package the application">
|
||||
<jar jarfile="${build.dir}/${build.finalName}.jar"
|
||||
compress="true"
|
||||
index="false"
|
||||
basedir="${build.outputDir}"
|
||||
excludes="**/package.html">
|
||||
<manifest>
|
||||
<attribute name="Automatic-Module-Name" value="org.apache.commons.configuration2"/>
|
||||
<attribute name="Bundle-Description" value="${project.description}"/>
|
||||
<attribute name="Bundle-DocURL" value="${project.url}"/>
|
||||
<attribute name="Bundle-License" value="${project.license.url}"/>
|
||||
<attribute name="Bundle-ManifestVersion" value="2"/>
|
||||
<attribute name="Bundle-Name" value="${project.name}"/>
|
||||
<attribute name="Bundle-SymbolicName" value="${project.groupId}.${project.artifactId}"/>
|
||||
<attribute name="Bundle-Vendor" value="${project.organization.name}"/>
|
||||
<attribute name="Bundle-Version" value="${bundle.version}"/>
|
||||
<attribute name="Export-Package" value="org.apache.commons.configuration2.beanutils;version="${project.version}",org.apache.commons.configuration2.builder.combined;version="${project.version}",org.apache.commons.configuration2.builder.fluent;version="${project.version}",org.apache.commons.configuration2.builder;version="${project.version}",org.apache.commons.configuration2.convert;version="${project.version}",org.apache.commons.configuration2.event;version="${project.version}",org.apache.commons.configuration2.ex;version="${project.version}",org.apache.commons.configuration2.interpol;version="${project.version}",org.apache.commons.configuration2.io;version="${project.version}",org.apache.commons.configuration2.plist;version="${project.version}",org.apache.commons.configuration2.reloading;version="${project.version}",org.apache.commons.configuration2.resolver;version="${project.version}",org.apache.commons.configuration2.sync;version="${project.version}",org.apache.commons.configuration2.tree.xpath;version="${project.version}",org.apache.commons.configuration2.tree;version="${project.version}",org.apache.commons.configuration2.web;version="${project.version}",org.apache.commons.configuration2;version="${project.version}""/>
|
||||
<attribute name="Implementation-Title" value="${project.name}"/>
|
||||
<attribute name="Implementation-Vendor" value="${project.organization.name}"/>
|
||||
<attribute name="Implementation-Version" value="${project.version}"/>
|
||||
<attribute name="Import-Package" value="com.fasterxml.jackson.databind.type;resolution:=optional,com.fasterxml.jackson.databind;resolution:=optional,javax.naming,javax.servlet;resolution:=optional,javax.sql,javax.xml.parsers,javax.xml.transform,javax.xml.transform.dom,javax.xml.transform.stream,org.apache.commons.beanutils;resolution:=optional,org.apache.commons.codec.binary;resolution:=optional,org.apache.commons.jexl2;resolution:=optional,org.apache.commons.jxpath.ri.compiler;resolution:=optional,org.apache.commons.jxpath.ri.model;resolution:=optional,org.apache.commons.jxpath.ri;resolution:=optional,org.apache.commons.jxpath;resolution:=optional,org.apache.commons.lang3,org.apache.commons.lang3.builder,org.apache.commons.lang3.concurrent,org.apache.commons.lang3.mutable,org.apache.commons.logging,org.apache.commons.logging.impl,org.apache.commons.text,org.apache.commons.text.lookup,org.apache.commons.text.translate,org.apache.commons.vfs2.provider;resolution:=optional,org.apache.commons.vfs2;resolution:=optional,org.apache.xml.resolver.helpers;resolution:=optional,org.apache.xml.resolver.readers;resolution:=optional,org.apache.xml.resolver.tools;resolution:=optional,org.apache.xml.resolver;resolution:=optional,org.w3c.dom,org.xml.sax,org.xml.sax.helpers,org.yaml.snakeyaml.constructor;resolution:=optional,org.yaml.snakeyaml.representer;resolution:=optional,org.yaml.snakeyaml;resolution:=optional"/>
|
||||
<attribute name="Include-Resource" value="PropertyList-1.0.dtd=src/main/resources/PropertyList-1.0.dtd,properties.dtd=src/main/resources/properties.dtd,META-INF/LICENSE.txt=LICENSE.txt,META-INF/NOTICE.txt=NOTICE.txt"/>
|
||||
<attribute name="JavaPackages-ArtifactId" value="${project.artifactId}"/>
|
||||
<attribute name="JavaPackages-GroupId" value="${project.groupId}"/>
|
||||
<attribute name="JavaPackages-Version" value="${project.version}"/>
|
||||
<attribute name="Require-Capability" value="osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=${compiler.target}))""/>
|
||||
<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>
|
71
apache-commons-configuration2.changes
Normal file
71
apache-commons-configuration2.changes
Normal file
@ -0,0 +1,71 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat Sep 23 17:19:23 UTC 2023 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
- Upgrade to version 2.9
|
||||
* New features:
|
||||
+ Implement Iterable in ImmutableNode.
|
||||
+ Add PropertiesConfigurationLayout.getBlankLinesBefore() and
|
||||
deprecate getBlancLinesBefore().
|
||||
+ Add PropertiesConfigurationLayout.setBlankLinesBefore() and
|
||||
deprecate setBlancLinesBefore().
|
||||
+ Add PropertiesConfigurationLayout.PropertyLayoutData
|
||||
.getBlankLines() and deprecate getBlancLines().
|
||||
+ Add PropertiesConfigurationLayout.PropertyLayoutData
|
||||
.setBlankLines() and deprecate setBlancLines().
|
||||
+ CONFIGURATION-789: Add ImmutableConfiguration.getEnum()
|
||||
methods.
|
||||
+ CONFIGURATION-789: Add ImmutableConfiguration.getDuration()
|
||||
methods.
|
||||
* Fixed bugs:
|
||||
+ CONFIGURATION-753: Make interpolation of collections and
|
||||
arrays in ConfigurationInterpolator consistent with behavior
|
||||
of DefaultConversionHandler. Add ConfigurationInterpolator
|
||||
.setStringConverter to allow customized string conversion
|
||||
behavior.
|
||||
+ CONFIGURATION-795: Computation of blank lines after header
|
||||
comment.
|
||||
+ CONFIGURATION-801: Remove redundant initializer.
|
||||
+ CONFIGURATION-802: Use final.
|
||||
+ CONFIGURATION-803: Java 8 lambda improvements and more.
|
||||
+ CONFIGURATION-804: Redundant local variable.
|
||||
+ CONFIGURATION-805: Use try with resource.
|
||||
+ CONFIGURATION-805: [Javadoc] Specify that typed getList
|
||||
returns null for missing key.
|
||||
+ Mention EnvironmentConfiguration in the list of
|
||||
configuration sources.
|
||||
+ CONFIGURATION-808: DefaultListDelimiterHandler.escapeList
|
||||
working only for List<String>.
|
||||
+ Use final.
|
||||
+ Replace test asserts by simpler but equivalent calls.
|
||||
+ CONFIGURATION-764: Single Variable Interpolation.
|
||||
+ Implement proper concurrency in ConstantLookup.
|
||||
+ CONFIGURATION-813: Support new namespace jakarta.mail.*
|
||||
used by javamail 2.0+ (first release October 2020).
|
||||
+ CONFIGURATION-799: CombinedConfiguration#getKeys() can
|
||||
throw NoSuchElementException.
|
||||
+ CONFIGURATION-822: Fix ambiguity on the section determining.
|
||||
+ Use Java style array decelerations.
|
||||
+ Add ImmutableNode.stream().
|
||||
+ Avoid NullPointerException in org.apache.commons
|
||||
.configuration2.web.AppletConfiguration.getKeysInternal().
|
||||
+ Fix JDBC prepared statements leak in org.apache.commons
|
||||
.configuration2.DatabaseConfiguration
|
||||
.clearPropertyDirect(String).
|
||||
* Changes:
|
||||
+ Unclosed file handle when reading config from JAR file URL.
|
||||
Add and use FileBasedBuilderProperties
|
||||
.setURL(URL, URLConnectionOptions).
|
||||
+ Make default interpolation prefix lookups configurable via
|
||||
system property. Remove dns, url, and script lookups from
|
||||
defaults (bsc#1201279, CVE-2022-33980). If these lookups are
|
||||
required for use in AbstractConfiguration subclasses, they
|
||||
must be enabled via system property.
|
||||
See ConfigurationInterpolator .getDefaultPrefixLookups() for
|
||||
details.
|
||||
- Generate ANT build system from maven as to avoid build cycles
|
||||
with maven-doxia-sitetools
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 7 11:41:18 UTC 2022 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
- Initial packaging of commons-configuration2 2.7
|
132
apache-commons-configuration2.spec
Normal file
132
apache-commons-configuration2.spec
Normal file
@ -0,0 +1,132 @@
|
||||
#
|
||||
# spec file for package apache-commons-configuration2
|
||||
#
|
||||
# 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/
|
||||
#
|
||||
|
||||
|
||||
%global base_name configuration2
|
||||
%global short_name commons-%{base_name}
|
||||
Name: apache-commons-configuration2
|
||||
Version: 2.9.0
|
||||
Release: 0
|
||||
Summary: Java library providing a generic Configuration interface
|
||||
License: Apache-2.0
|
||||
URL: https://commons.apache.org/proper/commons-configuration/
|
||||
Source0: https://archive.apache.org/dist/commons/configuration/source/%{short_name}-%{version}-src.tar.gz
|
||||
Source10: %{name}-build.xml
|
||||
BuildRequires: ant
|
||||
BuildRequires: apache-commons-beanutils
|
||||
BuildRequires: apache-commons-codec
|
||||
BuildRequires: apache-commons-jexl
|
||||
BuildRequires: apache-commons-jxpath
|
||||
BuildRequires: apache-commons-lang3
|
||||
BuildRequires: apache-commons-logging
|
||||
BuildRequires: apache-commons-text
|
||||
BuildRequires: apache-commons-vfs2
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: glassfish-servlet-api
|
||||
BuildRequires: jackson-core
|
||||
BuildRequires: jackson-databind
|
||||
BuildRequires: javacc
|
||||
BuildRequires: javapackages-local >= 6
|
||||
BuildRequires: reload4j
|
||||
BuildRequires: snakeyaml
|
||||
BuildRequires: xml-resolver
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
The Commons Configuration library provides a generic Configuration
|
||||
interface which enables a Java application to read configuration data
|
||||
from a variety of sources.
|
||||
|
||||
Configuration parameters may be loaded from the following sources:
|
||||
|
||||
* Properties files
|
||||
* XML documents
|
||||
* Windows INI files
|
||||
* Property list files (plist)
|
||||
* JNDI
|
||||
* JDBC Datasource
|
||||
* System properties
|
||||
* Applet parameters
|
||||
* Servlet parameters
|
||||
|
||||
Configuration objects are created using configuration builders. Different
|
||||
configuration sources can be mixed using a CombinedConfigurationBuilder and
|
||||
a CombinedConfiguration. Additional sources of configuration parameters
|
||||
can be created by using custom configuration objects. This customization
|
||||
can be achieved by extending AbstractConfiguration or
|
||||
AbstractHierarchicalConfiguration.
|
||||
|
||||
%package javadoc
|
||||
Summary: Javadoc for %{name}
|
||||
|
||||
%description javadoc
|
||||
This package contains javadoc for %{name}.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{short_name}-%{version}-src
|
||||
cp %{SOURCE10} build.xml
|
||||
|
||||
%pom_remove_dep org.springframework:
|
||||
rm -r src/main/java/org/apache/commons/configuration2/spring \
|
||||
src/test/java/org/apache/commons/configuration2/spring
|
||||
|
||||
%pom_change_dep javax.servlet:servlet-api javax.servlet:javax.servlet-api:3.1.0
|
||||
|
||||
%build
|
||||
mkdir -p lib
|
||||
build-jar-repository -s -p lib \
|
||||
apache-commons-text \
|
||||
commons-beanutils \
|
||||
commons-codec \
|
||||
commons-jexl \
|
||||
commons-jxpath \
|
||||
commons-lang3 \
|
||||
commons-logging \
|
||||
commons-vfs2 \
|
||||
glassfish-servlet-api \
|
||||
jackson-core \
|
||||
jackson-databind \
|
||||
javacc \
|
||||
reload4j \
|
||||
snakeyaml \
|
||||
xml-resolver
|
||||
%{ant} jar javadoc
|
||||
|
||||
%install
|
||||
# jar
|
||||
install -dm 0755 %{buildroot}%{_javadir}
|
||||
install -pm 0644 target/%{short_name}-%{version}.jar %{buildroot}%{_javadir}/%{short_name}.jar
|
||||
ln -sf %{short_name}.jar %{buildroot}%{_javadir}/%{name}.jar
|
||||
# pom
|
||||
install -dm 0755 %{buildroot}%{_mavenpomdir}
|
||||
%{mvn_install_pom} pom.xml %{buildroot}%{_mavenpomdir}/%{short_name}.pom
|
||||
%add_maven_depmap %{short_name}.pom %{short_name}.jar
|
||||
# javadoc
|
||||
install -dm 0755 %{buildroot}%{_javadocdir}/%{name}
|
||||
cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}/
|
||||
%fdupes -s %{buildroot}%{_javadocdir}
|
||||
|
||||
%files -f .mfiles
|
||||
%doc RELEASE-NOTES.txt
|
||||
%license LICENSE.txt NOTICE.txt
|
||||
%{_javadir}/%{name}.jar
|
||||
|
||||
%files javadoc
|
||||
%license LICENSE.txt NOTICE.txt
|
||||
%{_javadocdir}/%{name}
|
||||
|
||||
%changelog
|
BIN
commons-configuration2-2.9.0-src.tar.gz
(Stored with Git LFS)
Normal file
BIN
commons-configuration2-2.9.0-src.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user