[Git][java-team/libxml-java][upstream] New upstream version 1.1.7

Emmanuel Bourg gitlab at salsa.debian.org
Mon Feb 22 14:42:02 GMT 2021



Emmanuel Bourg pushed to branch upstream at Debian Java Maintainers / libxml-java


Commits:
e2c97b44 by Emmanuel Bourg at 2021-02-22T15:37:08+01:00
New upstream version 1.1.7
- - - - -


4 changed files:

- ChangeLog.txt
- README.txt
- − ant/build-lib.xml
- source/org/pentaho/reporting/libraries/xmlns/common/AttributeMap.java


Changes:

=====================================
ChangeLog.txt
=====================================
@@ -3,10 +3,51 @@
 ---------------
 A list of changes in recent versions:
 
-0.99.0: (30-May-2008)
+1.1.7:
+        * [BUG] PRD-2647: AttributeMap made it possible to contain <null> entries, although
+          these entries should not exist.
+
+1.1.6: (2010-04-26)
+        * PRD-2584: Improved performance of AttributeMap by having a better internal structure.
+
+1.1.5: (2010-01-15)
+1.1.4: (2009-12-15)
+        * Added a more relaxed boolean parsing code, so that boolean parsing is case
+          insensitive and thus the same as in the past.
+
+1.1.3: (2009-11-13)
+        * API change from LibLoader: Caching was not working correctly and thus created
+          stale entries in the cache and thus a memory leak.
+
+1.1.2: (2009-09-25)
+        * Certain characters are invalid in XML and cannot be represented in any way in
+          XML documents. They must be filtered out completely.
+
+1.1.1: (2009-08-21)
+        * Added support to parse DOM trees via LibLoader to allow LibLoader's caching to
+          kick in.
+
+1.1.0: (2009-07-29)
+        * Improved error messages on parse errors in AbstractXmlReadHandler.
+
+        * LibXml now uses Ivy
+
+        * [BUG] When using Xerces, passing <null> as URI is not allowed, even when Xerces
+          reports the Namespace URI as <null>.
+
+        * When writing XML documents, the XML namespace is implicitly defined and must not
+          be declared.
+
+1.0.0: (2008-07-28)
+        * [API] Allow implementations to wrap SAX-attributes into their own implementation.
+
+        * All code moved from org.jfree.xmlns package space to
+          org.pentaho.reporting.libraries.xmlns.
+
+0.99.0:  (30-May-2008)
         * [BUG] AbstractReadHandlerFactory must not reset the default handler if the
           current configuration does not provide one.
-          
+
         * Switched from JCommon to LibBase. All version information is now contained in
           the manifest. The Project-Info implementation reads the version numbers from
           the Jar's Manifest or the compiler-output-directory.
@@ -18,8 +59,8 @@ A list of changes in recent versions:
         * [BUG] DefaultTagDescription assumed that undefined elements were safe to have
           indentions. This created beautiful documents, but sadly the added spaces broke
           many of these generated documents.
-          
-          A empty configuration passed into the configure() method no longer causes 
+
+          A empty configuration passed into the configure() method no longer causes
           the tag-description to treat all elements as indentable.
 
         * Added better logging to assist the user in case of parsing errors. The current
@@ -29,18 +70,18 @@ A list of changes in recent versions:
           - AttributeMap is no longer synchronized, as synchronization has to
             happen in a larger context most of the time.
           - Added streaming writer methods so that attribute values can be normalized
-            while being sent to the stream instead of having to create temporary strings.     
+            while being sent to the stream instead of having to create temporary strings.
 
 0.9.11: (02-Nov-2007)
         * Upgraded to jcommon-1.0.12
 
 0.9.10: (29-Oct-2007)
         * Performance Update
-        
+
         * [BUG] XML-writer without encoding produced invalid xml-header.
           DefaultTagDescription can now be configured using Java-Calls
           AttributeList.setAttribute() with null-value is now the same as removeAttribute
-        
+
 
 0.9.9: (16-Oct-2007)
         * The build-system now uses the modular build again. By default the
@@ -122,4 +163,3 @@ A list of changes in recent versions:
 
 0.1.0: (29-Jun-2006)
         * Initial release of LibXML
-        
\ No newline at end of file


=====================================
README.txt
=====================================
@@ -1,10 +1,8 @@
-************************
-* LibXML 0.99.0        *
-************************
+LibXML
+======
 
-30 May 2008
 
-1. INTRODUCTION
+1. Introduction
 ---------------
 
 LibXML is a namespace aware SAX-Parser utility library. It eases the
@@ -20,7 +18,7 @@ For the latest news and information about libXML, please refer to:
 
     http://reporting.pentaho.org/libxml/
 
-2. SUPPORT
+2. Support
 ----------
 Free support is available via the JFreeReport forum, follow the link
 from the LibXml home page.  Please note that questions are
@@ -32,13 +30,13 @@ If you post a message in the forum, then everyone can see the
 question, and everyone can see the answer.
 
 
-3. REPORTING BUGS
+3. Reporting Bugs
 -----------------
 If you find bugs in LibXml, we'd like to hear about it so that we
 can improve future releases of LibXml.  Please post a bug report
 to the JIRA bug-tracker at Pentaho.org:
 
-    http://jira.pentaho.org/
+    http://jira.pentaho.com/
 
 Please be sure to provide as much information as you can.  We need to
 know the version of LibXml that you are using, the JDK version,
@@ -61,7 +59,7 @@ Ant is licensed under the terms of the Apache Software License (a
 popular open source software license).
 
 
-5. OTHER FEEDBACK
+5. Other Feedback
 -----------------
 For other feedback and comments, please post a message on the
 Pentaho forums. The Forum is available at


=====================================
ant/build-lib.xml deleted
=====================================
@@ -1,715 +0,0 @@
-<!-- An ANT build file for the Pentaho-Reporting-Projects. -->
-<!--
-        This file defines some general macros. It is used in most jfree.org
-        projects to simplify the module handling (which can become a real
-        pain).
-
-        This is no standalone file and is intended to be included by other
-        build files.
-
-        Changes:
-
-        2007-10-15: Added modular retro-builds;
-                    Allowed to exclude files for the monolithic builds
-                    Standarized Maven-POM file name
-                    Bug-Fix in ClassPath setting of isClassAvailable
-        2007-10-16: Added separate retro-build-target as newer JDKs are no
-                    longer able to generate JDK 1.2.2 binary class files
-        2007-12-15: Added support for Manifest-Version Information
-                    Manifest is created if it does not exist beforehand
-        2008-03-31: Integration build support added.
-        2008-04-30: MANIFEST.INF must be called MANIFEST.MF instead
--->
-<project name="module-support" basedir="..">
-
-  <!--
-     This target tests whether a given class is available.
-   -->
-  <macrodef name="isClassAvailable">
-    <attribute name="property-name"
-               description="The property that will receive the result."/>
-    <attribute name="class-name" description="The class to test for"/>
-    <element name="test-classpath" optional="true"
-             description="The classpath used for the testing"/>
-    <sequential>
-      <condition property="@{property-name}">
-        <available classname="@{class-name}">
-          <classpath>
-            <test-classpath/>
-          </classpath>
-        </available>
-      </condition>
-    </sequential>
-  </macrodef>
-
-  <!--
-     This target tests whether a given class and its library file is available.
-   -->
-  <macrodef name="isClassAndFileAvailable">
-    <attribute name="property-name"
-               description="The property that will receive the result."/>
-    <attribute name="class-name" description="The class to test for"/>
-    <attribute name="file-name" description="The file which we test for"/>
-    <element name="test-classpath" optional="true"
-             description="The classpath used for the testing"/>
-    <sequential>
-      <condition property="@{property-name}">
-        <and>
-          <available file="@{file-name}"/>
-          <available classname="@{class-name}">
-            <classpath>
-              <pathelement location="@{file-name}"/>
-              <test-classpath/>
-            </classpath>
-          </available>
-        </and>
-      </condition>
-    </sequential>
-  </macrodef>
-
-  <!--
-     This target tests whether a given class is available, and includes other
-     tests as well, which also have to evaluate to true to pass this test.
-   -->
-  <macrodef name="isClassAvailableEx">
-    <attribute name="property-name"
-               description="The property that will receive the result."/>
-    <attribute name="class-name" description="The class to test for"/>
-    <element name="additional-tests" optional="true"
-             description="Additional tests, which have to evaluate to true."/>
-    <element name="test-classpath" optional="true"
-             description="The classpath used for the testing"/>
-    <sequential>
-      <condition property="@{property-name}">
-        <and>
-          <additional-tests/>
-          <available classname="@{class-name}">
-            <classpath>
-              <test-classpath/>
-            </classpath>
-          </available>
-        </and>
-      </condition>
-    </sequential>
-  </macrodef>
-
-
-  <!--
-     This target builds a single module. The module is specified by its path
-     inside the source directory.
-
-   -->
-  <macrodef name="build-retro-module">
-    <attribute name="jdk-dir"
-               description="The directory where you installed JDK 1.2.2 (or whatever you are testing against)"/>
-    <attribute name="module-path"
-               description="The package name of the module"/>
-    <attribute name="source-dir" description="The source directory"/>
-    <attribute name="target-jar"
-               description="The name of the resulting jar-file"/>
-    <attribute name="builddir" default="build"
-               description="The temporary build directory"/>
-    <attribute name="manifest-location"
-               description="The (optional) name of the manifest file used as base."
-               default="devresource/META-INF/MANIFEST.MF"/>
-    <element name="module-classpath"
-             description="The classpath for building this module."/>
-    <element name="module-resources"
-             description="Additional resources to be copied."/>
-    <element name="jar-args" optional="true"
-             description="Parameters for the 'jar' task"/>
-    <element name="manifest-args" optional="true"
-             description="An optiona 'manifest' creation task"/>
-    <sequential>
-      <!-- prune possibly existing entries from temp build directory -->
-      <delete dir="@{builddir}"/>
-
-      <!-- create a temp build directory -->
-      <mkdir dir="@{builddir}"/>
-      <mkdir dir="@{builddir}/src"/>
-      <mkdir dir="@{builddir}/bin"/>
-
-      <!-- import all java files for compilation -->
-      <copy todir="@{builddir}/src/@{module-path}/">
-        <fileset dir="@{source-dir}/@{module-path}">
-          <exclude name="**/junit/**"/>
-          <include name="*.java"/>
-        </fileset>
-      </copy>
-
-      <!-- compile the source -->
-      <javac fork="true"
-             memoryInitialSize="160m"
-             memoryMaximumSize="160m"
-             srcdir="${builddir}/src"
-             destdir="${builddir}/bin"
-             compiler="jikes"
-             nowarn="on"
-             includeAntRuntime="false"
-             includeJavaRuntime="false"
-             deprecation="${build.deprecation}"
-             debug="${build.debug}"
-             optimize="${build.optimize}"
-             target="${build.retro.target}">
-        <classpath>
-          <module-classpath/>
-        </classpath>
-      </javac>
-
-      <!-- copy across required resource files -->
-      <copy todir="@{builddir}/bin/@{module-path}">
-        <fileset dir="@{source-dir}/@{module-path}">
-          <module-resources/>
-        </fileset>
-      </copy>
-
-      <!-- make the jar -->
-      <copy file="@{manifest-location}" tofile="@{builddir}/manifest.tmp" failonerror="false"/>
-      <manifest file="@{builddir}/manifest.tmp" mode="update">
-        <manifest-args/>
-      </manifest>
-
-      <jar jarfile="@{target-jar}" basedir="@{builddir}/bin" manifest="@{builddir}/manifest.tmp">
-        <jar-args/>
-      </jar>
-
-      <!-- delete the temp directory -->
-      <delete dir="@{builddir}"/>
-    </sequential>
-  </macrodef>
-
-
-  <!--
-     This target builds a single module. The module is specified by its path
-     inside the source directory.
-
-   -->
-  <macrodef name="build-module">
-    <attribute name="module-path"
-               description="The package name of the module"/>
-    <attribute name="source-dir" description="The source directory"/>
-    <attribute name="target-jar"
-               description="The name of the resulting jar-file"/>
-    <attribute name="builddir" default="build"
-               description="The temporary build directory"/>
-    <attribute name="manifest-location"
-               description="The (optional) name of the manifest file used as base."
-               default="devresource/META-INF/MANIFEST.MF"/>
-    <element name="module-classpath"
-             description="The classpath for building this module."/>
-    <element name="module-resources"
-             description="Additional resources to be copied."/>
-    <element name="jar-args" optional="true"
-             description="Parameters for the 'jar' task"/>
-    <element name="manifest-args" optional="true"
-             description="An optiona 'manifest' creation task"/>
-    <sequential>
-      <!-- prune possibly existing entries from temp build directory -->
-      <delete dir="@{builddir}"/>
-
-      <!-- create a temp build directory -->
-      <mkdir dir="@{builddir}"/>
-      <mkdir dir="@{builddir}/src"/>
-      <mkdir dir="@{builddir}/bin"/>
-
-      <!-- import all java files for compilation -->
-      <copy todir="@{builddir}/src/@{module-path}/">
-        <fileset dir="@{source-dir}/@{module-path}">
-          <exclude name="**/junit/**"/>
-          <include name="*.java"/>
-        </fileset>
-      </copy>
-
-      <!-- compile the source -->
-      <javac
-          srcdir="@{builddir}/src"
-          destdir="@{builddir}/bin"
-
-          deprecation="${build.deprecation}"
-          debug="${build.debug}"
-          optimize="${build.optimize}"
-          target="${build.target}"
-          source="${build.source}">
-        <classpath>
-          <module-classpath/>
-        </classpath>
-      </javac>
-
-      <!-- copy across required resource files -->
-      <copy todir="@{builddir}/bin/@{module-path}">
-        <fileset dir="@{source-dir}/@{module-path}">
-          <module-resources/>
-        </fileset>
-      </copy>
-
-      <copy file="@{manifest-location}" tofile="@{builddir}/manifest.tmp" failonerror="false"/>
-      <manifest file="@{builddir}/manifest.tmp" mode="update">
-        <manifest-args/>
-      </manifest>
-
-      <jar jarfile="@{target-jar}" basedir="@{builddir}/bin" manifest="@{builddir}/manifest.tmp">
-        <jar-args/>
-      </jar>
-
-      <!-- delete the temp directory -->
-      <delete dir="@{builddir}"/>
-    </sequential>
-  </macrodef>
-
-
-  <!--
-      This target builds the core classes. All classes outside the modules
-      directory are considered core classes.
-   -->
-  <macrodef name="build-retro-core">
-    <attribute name="jdk-dir"
-               description="The directory where you installed JDK 1.2.2 (or whatever you are testing against)"/>
-    <attribute name="module-path"
-               description="The package name of the modules"/>
-    <attribute name="source-dir"
-               description="The source directory"/>
-    <attribute name="target-jar"
-               description="The name of the resulting jar-file"/>
-    <attribute name="builddir" default="build"
-               description="The temporary build directory"/>
-    <attribute name="manifest-location"
-               description="The (optional) name of the manifest file used as base."
-               default="devresource/META-INF/MANIFEST.MF"/>
-    <element name="core-classpath"
-             description="The classpath for the build process"/>
-    <element name="core-resources"
-             description="The resources to be included in the file jar file."/>
-    <element name="jar-args" optional="true"
-             description="Parameters for the 'jar' task"/>
-    <element name="manifest-args" optional="true"
-             description="An optiona 'manifest' creation task"/>
-    <sequential>
-      <!-- prune possibly existing entries from temp build directory -->
-      <delete dir="@{builddir}"/>
-
-      <!-- create a temp build directory -->
-      <mkdir dir="@{builddir}"/>
-      <mkdir dir="@{builddir}/src"/>
-      <mkdir dir="@{builddir}/bin"/>
-
-      <!-- import all java files for compilation -->
-      <copy todir="@{builddir}/src">
-        <fileset dir="@{source-dir}">
-          <exclude name="**/junit/**"/>
-          <exclude name="@{module-path}/**"/>
-          <include name="**/*.java"/>
-        </fileset>
-      </copy>
-
-      <javac fork="true"
-             memoryInitialSize="160m"
-             memoryMaximumSize="160m"
-             srcdir="${builddir}/src"
-             destdir="${builddir}/bin"
-             compiler="jikes"
-             nowarn="on"
-             includeAntRuntime="false"
-             includeJavaRuntime="false"
-             deprecation="${build.deprecation}"
-             debug="${build.debug}"
-             optimize="${build.optimize}"
-             target="${build.retro.target}">
-        <classpath>
-          <core-classpath/>
-        </classpath>
-      </javac>
-
-
-      <copy todir="@{builddir}/bin">
-        <fileset dir="@{source-dir}">
-          <exclude name="@{module-path}/**"/>
-          <core-resources/>
-        </fileset>
-      </copy>
-
-      <copy file="@{manifest-location}" tofile="@{builddir}/manifest.tmp" failonerror="false"/>
-      <manifest file="@{builddir}/manifest.tmp" mode="update">
-        <manifest-args/>
-      </manifest>
-
-      <jar jarfile="@{target-jar}" basedir="@{builddir}/bin" manifest="@{builddir}/manifest.tmp">
-        <jar-args/>
-      </jar>
-
-      <!-- delete the temp directory -->
-      <delete dir="@{builddir}"/>
-    </sequential>
-  </macrodef>
-
-  <!--
-      This target builds the core classes. All classes outside the modules
-      directory are considered core classes.
-   -->
-  <macrodef name="build-core">
-    <attribute name="module-path"
-               description="The package name of the modules"/>
-    <attribute name="source-dir"
-               description="The source directory"/>
-    <attribute name="target-jar"
-               description="The name of the resulting jar-file"/>
-    <attribute name="builddir" default="build"
-               description="The temporary build directory"/>
-    <attribute name="manifest-location"
-               description="The (optional) name of the manifest file used as base."
-               default="devresource/META-INF/MANIFEST.MF"/>
-    <element name="core-classpath"
-             description="The classpath for the build process"/>
-    <element name="core-resources"
-             description="The resources to be included in the file jar file."/>
-    <element name="jar-args" optional="true"
-             description="Parameters for the 'jar' task"/>
-    <element name="manifest-args" optional="true"
-             description="An optiona 'manifest' creation task"/>
-    <sequential>
-      <!-- prune possibly existing entries from temp build directory -->
-      <delete dir="@{builddir}"/>
-
-      <!-- create a temp build directory -->
-      <mkdir dir="@{builddir}"/>
-      <mkdir dir="@{builddir}/src"/>
-      <mkdir dir="@{builddir}/bin"/>
-
-      <!-- import all java files for compilation -->
-      <copy todir="@{builddir}/src">
-        <fileset dir="@{source-dir}">
-          <exclude name="**/junit/**"/>
-          <exclude name="@{module-path}/**"/>
-          <include name="**/*.java"/>
-        </fileset>
-      </copy>
-
-      <javac
-          srcdir="@{builddir}/src"
-          destdir="@{builddir}/bin"
-
-          deprecation="${build.deprecation}"
-          debug="${build.debug}"
-          optimize="${build.optimize}"
-          target="${build.target}"
-          source="${build.source}">
-        <classpath>
-          <core-classpath/>
-        </classpath>
-      </javac>
-
-
-      <copy todir="@{builddir}/bin">
-        <fileset dir="@{source-dir}">
-          <exclude name="@{module-path}/**"/>
-          <core-resources/>
-        </fileset>
-      </copy>
-
-      <copyfile src="@{manifest-location}" dest="@{builddir}/manifest.tmp"/>
-      <manifest file="@{builddir}/manifest.tmp" mode="update">
-        <manifest-args/>
-      </manifest>
-
-      <jar jarfile="@{target-jar}" basedir="@{builddir}/bin" manifest="@{builddir}/manifest.tmp">
-        <jar-args/>
-      </jar>
-
-      <!-- delete the temp directory -->
-      <delete dir="@{builddir}"/>
-    </sequential>
-  </macrodef>
-
-
-  <!--
-      This target builds the complete project.
-   -->
-  <macrodef name="build-retro">
-    <attribute name="source-dir" description="The source directory"/>
-    <attribute name="jdk-dir"
-               description="The directory where you installed JDK 1.2.2 (or whatever you are testing against)"/>
-    <attribute name="target-jar"
-               description="The name of the resulting jar-file"/>
-    <attribute name="manifest-location"
-               description="The (optional) name of the manifest file used as base."
-               default="devresource/META-INF/MANIFEST.MF"/>
-    <element name="all-classpath"
-             description="The classpath for the build process"/>
-    <element name="all-resources"
-             description="The resources to be included in the file jar file."/>
-    <element name="jar-args" optional="true"
-             description="Parameters for the 'jar' task"/>
-    <element name="manifest-args" optional="true"
-             description="An optiona 'manifest' creation task"/>
-    <attribute name="builddir" default="build"
-               description="The temporary build directory"/>
-    <element name="all-sources" optional="true"
-             description="Optional include or exclude definitions for the source-fileset"/>
-    <sequential>
-      <!-- prune possibly existing entries from temp build directory -->
-      <delete dir="@{builddir}"/>
-
-      <!-- create a temp build directory -->
-      <mkdir dir="@{builddir}"/>
-      <mkdir dir="@{builddir}/src"/>
-      <mkdir dir="@{builddir}/bin"/>
-
-      <!-- import all java files for compilation -->
-      <copy todir="@{builddir}/src">
-        <fileset dir="@{source-dir}">
-          <exclude name="**/junit/**"/>
-          <include name="**/*.java"/>
-          <all-sources/>
-        </fileset>
-      </copy>
-
-      <javac fork="true"
-             memoryInitialSize="160m"
-             memoryMaximumSize="160m"
-             srcdir="${builddir}/src"
-             destdir="${builddir}/bin"
-             compiler="jikes"
-             nowarn="on"
-             includeAntRuntime="false"
-             includeJavaRuntime="false"
-             deprecation="${build.deprecation}"
-             debug="${build.debug}"
-             optimize="${build.optimize}"
-             target="${build.retro.target}">
-        <bootclasspath>
-          <pathelement location="@{jdk-dir}/jre/lib/rt.jar"/>
-        </bootclasspath>
-        <classpath>
-          <all-classpath/>
-        </classpath>
-      </javac>
-
-
-      <copy todir="${builddir}/bin">
-        <fileset dir="@{source-dir}">
-          <all-resources/>
-        </fileset>
-      </copy>
-
-      <copy file="@{manifest-location}" tofile="@{builddir}/manifest.tmp" failonerror="false"/>
-      <manifest file="@{builddir}/manifest.tmp" mode="update">
-        <manifest-args/>
-      </manifest>
-
-      <jar jarfile="@{target-jar}" basedir="@{builddir}/bin" manifest="@{builddir}/manifest.tmp">
-        <jar-args/>
-      </jar>
-
-      <!-- delete the temp directory -->
-      <delete dir="@{builddir}"/>
-    </sequential>
-  </macrodef>
-
-
-  <!--
-      This target builds the complete project.
-   -->
-  <macrodef name="build-all">
-    <attribute name="source-dir" description="The source directory"/>
-    <attribute name="target-jar"
-               description="The name of the resulting jar-file"/>
-    <attribute name="builddir" default="build"
-               description="The temporary build directory"/>
-    <attribute name="manifest-location"
-               description="The (optional) name of the manifest file used as base."
-               default="devresource/META-INF/MANIFEST.MF"/>
-    <element name="all-classpath"
-             description="The classpath for the build process"/>
-    <element name="all-resources"
-             description="The resources to be included in the file jar file."/>
-    <element name="jar-args" optional="true"
-             description="Parameters for the 'jar' task"/>
-    <element name="manifest-args" optional="true"
-             description="An optiona 'manifest' creation task"/>
-    <element name="all-sources" optional="true"
-             description="Optional include or exclude definitions for the source-fileset"/>
-    <sequential>
-      <!-- prune possibly existing entries from temp build directory -->
-      <delete dir="@{builddir}"/>
-
-      <!-- create a temp build directory -->
-      <mkdir dir="@{builddir}"/>
-      <mkdir dir="@{builddir}/src"/>
-      <mkdir dir="@{builddir}/bin"/>
-
-      <!-- import all java files for compilation -->
-      <copy todir="@{builddir}/src">
-        <fileset dir="@{source-dir}">
-          <exclude name="**/junit/**"/>
-          <include name="**/*.java"/>
-          <all-sources/>
-        </fileset>
-      </copy>
-
-      <javac
-          srcdir="@{builddir}/src"
-          destdir="@{builddir}/bin"
-
-          deprecation="${build.deprecation}"
-          debug="${build.debug}"
-          optimize="${build.optimize}"
-          target="${build.target}"
-          source="${build.source}">
-        <classpath>
-          <all-classpath/>
-        </classpath>
-      </javac>
-
-
-      <copy todir="@{builddir}/bin">
-        <fileset dir="@{source-dir}">
-          <all-resources/>
-        </fileset>
-      </copy>
-
-
-      <copy file="@{manifest-location}" tofile="@{builddir}/manifest.tmp" failonerror="false"/>
-      <manifest file="@{builddir}/manifest.tmp" mode="update">
-        <manifest-args/>
-      </manifest>
-
-      <jar jarfile="@{target-jar}" basedir="@{builddir}/bin" manifest="@{builddir}/manifest.tmp">
-        <jar-args/>
-      </jar>
-
-      <!-- delete the temp directory -->
-      <delete dir="@{builddir}"/>
-    </sequential>
-  </macrodef>
-
-  <!--
-    This target builds the distribution-zip file. It depends on the existence
-    of a 'fill-dist-dir' target.
-    -->
-  <macrodef name="make-zip">
-    <attribute name="lib.version"
-               default="The version of the resulting zip file."/>
-    <attribute name="lib.name"
-               default="The name prefix of the resulting zip file."/>
-    <attribute name="dist-dir" default="distribution"
-               description="The name of the distribution (temporary build) directory. "/>
-    <attribute name="target-dir" default=""
-               description="The directory where to write the tgz file"/>
-    <sequential>
-      <!-- make a temporary distribution directory -->
-      <mkdir dir="@{dist-dir}"/>
-
-      <antcall target="fill-dist-dir">
-        <param name="dist-dir" value="@{dist-dir}"/>
-      </antcall>
-
-      <!-- convert end-of-line characters in text files -->
-      <fixcrlf srcdir="@{dist-dir}/source"
-               eol="crlf" eof="remove">
-        <include name="**/*.java"/>
-        <include name="**/*.properties"/>
-        <include name="**/*.html"/>
-        <include name="**/*.xml"/>
-        <include name="**/*.txt"/>
-        <include name="**/*.css"/>
-      </fixcrlf>
-
-      <!-- make the zip file -->
-      <zip zipfile="@{target-dir}@{lib.name}-@{lib.version}.zip">
-        <zipfileset dir="@{dist-dir}"
-                    prefix="@{lib.name}-@{lib.version}"/>
-      </zip>
-
-      <!-- delete the temporary distribution directory -->
-      <delete dir="@{dist-dir}"/>
-    </sequential>
-
-  </macrodef>
-
-  <!--
-    This target builds the distribution-tar-gz file. It depends on the existence
-    of a 'fill-dist-dir' target.
-    -->
-  <macrodef name="make-targz">
-    <attribute name="lib.version"
-               default="The version of the resulting zip file."/>
-    <attribute name="lib.name"
-               default="The name prefix of the resulting zip file."/>
-    <attribute name="dist-dir" default="distribution"
-               description="The name of the distribution (temporary build) directory. "/>
-    <attribute name="target-dir" default=""
-               description="The directory where to write the tgz file"/>
-    <sequential>
-      <!-- Make .tar.gz distribution for libfonts -->
-      <!-- make a temporary distribution directory -->
-      <mkdir dir="@{dist-dir}"/>
-
-      <antcall target="fill-dist-dir">
-        <param name="dist-dir" value="@{dist-dir}"/>
-      </antcall>
-
-      <!-- convert end-of-line characters in text files -->
-      <fixcrlf srcdir="@{dist-dir}/source"
-               eol="lf" eof="remove">
-        <include name="**/*.java"/>
-        <include name="**/*.properties"/>
-        <include name="**/*.html"/>
-        <include name="**/*.xml"/>
-        <include name="**/*.txt"/>
-        <include name="**/*.css"/>
-      </fixcrlf>
-
-      <!-- make the tar.gz file -->
-      <tar tarfile="@{target-dir}@{lib.name}-@{lib.version}.tar">
-        <tarfileset dir="@{dist-dir}"
-                    prefix="@{lib.name}-@{lib.version}"/>
-      </tar>
-      <gzip zipfile="@{target-dir}@{lib.name}-@{lib.version}.tar.gz"
-            src="@{target-dir}@{lib.name}-@{lib.version}.tar"/>
-      <delete file="@{target-dir}@{lib.name}-@{lib.version}.tar"/>
-
-      <!-- delete the temporary distribution directory -->
-      <delete dir="@{dist-dir}"/>
-    </sequential>
-
-  </macrodef>
-
-  <macrodef name="make-maven-bundle">
-    <attribute name="lib.version"
-               default="The version of the resulting zip file."/>
-    <attribute name="lib.name"
-               default="The name prefix of the resulting zip file."/>
-    <attribute name="dist-dir" default="distribution"
-               description="The name of the distribution (temporary build) directory. "/>
-    <attribute name="lib.file"
-               description="The name of the binary jar to be included in the bundle. "/>
-    <attribute name="target" description="The name of the resulting jar file"/>
-    <attribute name="licence-file" default="licence-LGPL.txt"/>
-    <sequential>
-      <!-- make a temporary distribution directory -->
-      <mkdir dir="@{dist-dir}"/>
-      <!-- copy across LICENCE -->
-      <copy file="@{licence-file}" tofile="distribution/LICENSE.txt"/>
-
-      <filterchain id="version.filters">
-        <replacetokens>
-          <token key="VERSION" value="@{lib.version}"/>
-        </replacetokens>
-      </filterchain>
-      <copy file="maven-project.xml" tofile="distribution/project.xml">
-        <filterchain refid="version.filters"/>
-      </copy>
-
-      <!-- copy across runtime jar file -->
-      <copy file="@{lib.file}" tofile="@{dist-dir}/@{lib.file}"/>
-
-      <!-- make the jar -->
-      <jar jarfile="@{target}" basedir="@{dist-dir}"/>
-
-      <!-- delete the temporary distribution directory -->
-      <delete dir="@{dist-dir}"/>
-
-    </sequential>
-
-  </macrodef>
-
-</project>


=====================================
source/org/pentaho/reporting/libraries/xmlns/common/AttributeMap.java
=====================================
@@ -135,20 +135,37 @@ public class AttributeMap implements Serializable, Cloneable
       throw new NullPointerException("Attribute name must not be null");
     }
 
+
     if (singletonNamespace == null)
     {
-      singletonNamespace = namespace;
-      singletonContent = new HashMap();
-      singletonContent.put(attribute, value);
+      if (value != null)
+      {
+        singletonNamespace = namespace;
+        singletonContent = new HashMap();
+        singletonContent.put(attribute, value);
+      }
       return null;
     }
+    
     if (namespace.equals(singletonNamespace))
     {
-      return singletonContent.put(attribute, value);
+      if (value == null)
+      {
+        return singletonContent.remove(attribute);
+      }
+      else
+      {
+        return singletonContent.put(attribute, value);
+      }
     }
 
     if (namespaces == null)
     {
+      if (value == null)
+      {
+        return null;
+      }
+
       namespaces = new HashMap();
     }
 



View it on GitLab: https://salsa.debian.org/java-team/libxml-java/-/commit/e2c97b445a78a129c67af52e0d586506700cc5a6

-- 
View it on GitLab: https://salsa.debian.org/java-team/libxml-java/-/commit/e2c97b445a78a129c67af52e0d586506700cc5a6
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-java-commits/attachments/20210222/8327ed87/attachment.htm>


More information about the pkg-java-commits mailing list