SHA256
1
0
forked from pool/bcel
bcel/bcel-build.xml
Gus Kenion 352f0929c4 Accepting request 1134732 from home:urbic:branches:Java:packages
- Update to version 6.8.0
  * 6.8.0 (2023-12-08) Maintenance and bug fix release.
    + New features:
      ~ Add and use InvalidMethodSignatureException extending
        ClassFormatException.
      ~ Increase code coverage in Class2HTMLTestCase with new test
        input Java4Example #186.
      ~ Add verifier tests on some opcodes #180.
      ~ Added signature test cases for class/method, and bad
        signatures #182.
      ~ Add Const.MAJOR_20.
      ~ Add Const.MINOR_20.
      ~ Add Const.MAJOR_21.
      ~ Add Const.MINOR_21.
      ~ [Bcelifier] stackmap support to pass JDK verifier #177.
      ~ Fix SpotBugs [ERROR] Class org.apache.bcel.util.ClassVector
        defines non-transient non-serializable instance field vec
        [org.apache.bcel.util.ClassVector] In ClassVector.java
        SE_BAD_FIELD.
      ~ Fix SpotBugs [ERROR] Switch statement found in
        org.apache.bcel.util.BCELFactory.visitAllocationInstruction(AllocationInstruction)
        where one case falls through to the next case
        [org.apache.bcel.util.BCELFactory,
        org.apache.bcel.util.BCELFactory] At
        BCELFactory.java:[lines 188-191]Another occurrence at
        BCELFactory.java:[lines 192-196] SF_SWITCH_FALLTHROUGH.
    + Fixed bugs:
      ~ When parsing an class with an invalid constant reference,
        ensure ClassParser.parse() throws ClassFormatException, not
        NullPointerException.
      ~ Ensure that references to a constant pool entry with index
        zero trigger a ClassFormatException, not a
        NullPointerException.
      ~ Ensure that references to the unused constant pool entry
        after a long/double entry triggers a ClassFormatException,
        not a NullPointerException.
      ~ Test and coverage of InstructionFactory #190.
      ~ Verifier: test and coverage for SWAP instruction #188.
      ~ Exception parsing Kotlin class with 'fun `method name with
        () in it`()' #205.
      ~ Fix null pointers in AnnotationEntry #213.
      ~ Field not found, search field in both super class and
        implemented interfaces (5x duplicated code to find field by
        name and type is refactored to a new method and now
        supports package-private) #181.
      ~ BCEL-366: Use alternative name for broken classes under
        test #220.
      ~ BCEL-367: Fixes java.lang.IndexOutOfBoundsException for
        ATHROW on empty stack #223.
      ~ BCEL-368: Fixes java.lang.StackOverflowError in
        Select#toString(boolean) #229.
      ~ Fix for type.getType(...) use on non-signature type names
        #221.
      ~ Fix EmptyVisitorTestCase on Java 21.
    + Changes:
      ~ Bump commons-parent from 54 to 65 #189, #198, #222.
      ~ Bump jna.version from 5.12.1 to 5.13.0 #203.
      ~ Bump kotlin-stdlib from 1.8.10 to 1.9.21 #217, #219, #227,
        #231, #235, #245, #247.
      ~ Bump commons-io from 2.11.0 to 2.15.1.
      ~ Bump commons-lang3 from 3.12.0 to 3.14.0.
      ~ Bump org.codehaus.mojo:exec-maven-plugin from 3.1.0 to
        3.1.1 #246.

OBS-URL: https://build.opensuse.org/request/show/1134732
OBS-URL: https://build.opensuse.org/package/show/Java:packages/bcel?expand=0&rev=53
2023-12-27 09:26:30 +00:00

147 lines
6.8 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<project name="bcel" default="package" basedir=".">
<!-- ====================================================================== -->
<!-- Build environment properties -->
<!-- ====================================================================== -->
<property file="build.properties"/>
<property name="project.groupId" value="org.apache.bcel"/>
<property name="project.artifactId" value="bcel"/>
<property name="project.version" value="6.8.0"/>
<property name="spec.version" value="6.8"/>
<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="."/>
<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>
<!-- ====================================================================== -->
<!-- Compilation target -->
<!-- ====================================================================== -->
<target name="compile" description="Compile the code">
<mkdir dir="${build.outputDir}"/>
<javac destdir="${build.outputDir}"
encoding="iso-8859-1"
nowarn="false"
debug="true"
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>
<mkdir dir="${build.outputDir}/META-INF"/>
<copy todir="${build.outputDir}/META-INF">
<fileset dir="${build.resourceDir}">
<include name="NOTICE.txt"/>
<include name="LICENSE.txt"/>
<include name="NOTICE"/>
<include name="LICENSE"/>
</fileset>
</copy>
</target>
<!-- ====================================================================== -->
<!-- Javadoc target -->
<!-- ====================================================================== -->
<target name="javadoc" description="Generates the Javadoc of the application">
<javadoc sourcepath="${build.srcDir}"
packagenames="*"
destdir="${reporting.outputDirectory}/apidocs"
access="protected"
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"
docencoding="iso-8859-1"
source="${compiler.source}"
linksource="true"
breakiterator="false">
<classpath refid="build.classpath"/>
</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.bcel"/>
<attribute name="Bundle-Description" value="Apache Commons Bytecode Engineering Library"/>
<attribute name="Bundle-DocURL" value="https://commons.apache.org/proper/commons-bcel"/>
<attribute name="Bundle-License" value="https://www.apache.org/licenses/LICENSE-2.0.txt"/>
<attribute name="Bundle-ManifestVersion" value="2"/>
<attribute name="Bundle-Name" value="Apache Commons BCEL"/>
<attribute name="Bundle-SymbolicName" value="org.apache.bcel"/>
<attribute name="Bundle-Vendor" value="The Apache Software Foundation"/>
<attribute name="Bundle-Version" value="${project.version}"/>
<attribute name="Export-Package" value="org.apache.bcel.classfile;version=&quot;${project.version}&quot;,org.apache.bcel.generic;version=&quot;${project.version}&quot;,org.apache.bcel.util;version=&quot;${project.version}&quot;,org.apache.bcel.verifier.exc;version=&quot;${project.version}&quot;,org.apache.bcel.verifier.statics;version=&quot;${project.version}&quot;,org.apache.bcel.verifier.structurals;version=&quot;${project.version}&quot;,org.apache.bcel.verifier;version=&quot;${project.version}&quot;,org.apache.bcel;version=&quot;${project.version}&quot;"/>
<attribute name="Implementation-Title" value="Apache Commons BCEL"/>
<attribute name="Implementation-Vendor" value="The Apache Software Foundation"/>
<attribute name="Implementation-Version" value="${project.version}"/>
<attribute name="Import-Package" value="javax.swing,javax.swing.border,javax.swing.event,org.apache.commons.lang3"/>
<attribute name="Include-Resource" value="META-INF/NOTICE.txt=NOTICE.txt,META-INF/LICENSE.txt=LICENSE.txt"/>
<attribute name="Require-Capability" value="osgi.ee;filter:=&quot;(&amp;(osgi.ee=JavaSE)(version=${compiler.target}))&quot;"/>
<attribute name="Specification-Title" value="Apache Commons BCEL"/>
<attribute name="Specification-Vendor" value="The Apache Software Foundation"/>
<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>