parent
3a61f69fea
commit
eb6e00e806
@ -1,25 +0,0 @@ |
||||
Manifest-Version: 1.0 |
||||
Specification-Title: Java Platform API Specification |
||||
Specification-Version: 1.5 |
||||
Implementation-Title: Apache Harmony |
||||
Implementation-Vendor: The Apache Software Foundation |
||||
Implementation-Vendor-Id: org.apache.harmony |
||||
Implementation-URL: http://harmony.apache.org |
||||
Bundle-ManifestVersion: 2 |
||||
Bundle-Name: Harmony Pack200 |
||||
Bundle-SymbolicName: org.apache.harmony.pack200 |
||||
Bundle-Version: 1.0.0 |
||||
Bundle-ClassPath: . |
||||
Eclipse-JREBundle: true |
||||
Import-Package: java.io;resolution:=optional, |
||||
java.lang;resolution:=optional, |
||||
java.util;resolution:=optional, |
||||
java.util.jar;resolution:=optional, |
||||
org.objectweb.asm |
||||
Export-Package: org.apache.harmony.pack200, |
||||
org.apache.harmony.unpack200, |
||||
org.apache.harmony.unpack200.bytecode, |
||||
org.apache.harmony.unpack200.bytecode.forms |
||||
Bundle-RequiredExecutionEnvironment: J2SE-1.4, |
||||
J2SE-1.5 |
||||
|
@ -1,197 +0,0 @@ |
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<!-- |
||||
Licensed to the Apache Software Foundation (ASF) under one or more |
||||
contributor license agreements. See the NOTICE file distributed with |
||||
this work for additional information regarding copyright ownership. |
||||
The ASF licenses this file to You under the Apache License, Version 2.0 |
||||
(the "License"); you may not use this file except in compliance with |
||||
the License. You may obtain a copy of the License at |
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0 |
||||
|
||||
Unless required by applicable law or agreed to in writing, software |
||||
distributed under the License is distributed on an "AS IS" BASIS, |
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||||
See the License for the specific language governing permissions and |
||||
limitations under the License. |
||||
--> |
||||
|
||||
<project name="PACK200 Build" default="build" basedir="."> |
||||
<description>Build for PACK200 component</description> |
||||
|
||||
<property name="hy.component" value="classlib" /> |
||||
<property name="hy.module" value="pack200" /> |
||||
<property name="hy.target" location="${basedir}/../../target" /> |
||||
<import file="${hy.target}/hdk/build/ant/properties.xml" /> |
||||
<import file="${hy.hdk}/build/ant/depends.xml" /> |
||||
|
||||
<property file="../../make/depends.properties" /> |
||||
|
||||
<target name="build" depends="check-depends,-build-no-check"/> |
||||
<target name="-build-no-check" depends="-build-jar,-test-jar" /> |
||||
|
||||
<target name="check-depends"> |
||||
<check-one-file src="${asm.url}" dest="${asm.jar}" /> |
||||
<copy todir="${hy.jdk}/jre/lib/boot"> |
||||
<fileset dir="${depends.jars}"> |
||||
<patternset includes="${asm.ver}/*.jar" /> |
||||
</fileset> |
||||
<fileset dir="depends/manifests"/> |
||||
</copy> |
||||
|
||||
</target> |
||||
|
||||
<target name="fetch-depends"> |
||||
<mkdir dir="${asm.dir}" /> |
||||
<download-one-file src="${asm.url}" dest="${asm.jar}" |
||||
md5="${asm.md5}" /> |
||||
</target> |
||||
|
||||
<target name="test" depends="-test-module"> |
||||
<fail message="Some tests failed"> |
||||
<condition> |
||||
<or> |
||||
<isset property="test.failures" /> |
||||
<isset property="test.errors" /> |
||||
</or> |
||||
</condition> |
||||
</fail> |
||||
</target> |
||||
|
||||
<!-- internal target for local and global test run sequence --> |
||||
<target name="-test-module" depends="build,-run-tests" /> |
||||
|
||||
<target name="clean" depends="-clean-java,-clean-test" /> |
||||
|
||||
<target name="-clean-java" unless="skip.java.build" |
||||
depends="-class-patternset"> |
||||
<delete file="${hy.jdk}/jre/lib/boot/${hy.module}.jar" /> |
||||
<delete file="${hy.jdk}/jre/lib/boot/${hy.module}-src.jar" /> |
||||
<delete failonerror="false"> |
||||
<fileset refid="classes" /> |
||||
</delete> |
||||
<delete-patternset module="${hy.module}" /> |
||||
</target> |
||||
|
||||
<target name="-clean-test" unless="skip.test.build"> |
||||
<delete dir="${tests.hdk.dir}" failonerror="false" /> |
||||
<delete failonerror="false" dir="${hy.build.mod}/test"/> |
||||
</target> |
||||
|
||||
<target name="-compile-java" unless="skip.java.build"> |
||||
<echo message="Compiling ${hy.module} classes" /> |
||||
|
||||
<mkdir dir="${hy.build.top}/java" /> |
||||
|
||||
<!-- Ordinary classes --> |
||||
<hy.javac sourcepath="" |
||||
srcdir="src/main/java" |
||||
destdir="${hy.build.top}/java" |
||||
source="1.4" |
||||
target="1.4"> |
||||
|
||||
<compilerarg line="${build.compilerarg}" /> |
||||
|
||||
<bootclasspath> |
||||
<fileset dir="${hy.jdk}/jre/lib/boot"> |
||||
<include name="**/*.jar" /> |
||||
</fileset> |
||||
</bootclasspath> |
||||
</hy.javac> |
||||
<!-- Java5 classes, with generics --> |
||||
<compile-classes description="${hy.module} java5 classes"> |
||||
<javac-elements> |
||||
<src path="src/main/java5" /> |
||||
</javac-elements> |
||||
</compile-classes> |
||||
</target> |
||||
|
||||
<target name="findbugs" depends="-build-jar"> |
||||
<run-findBugs |
||||
jarFile="${hy.jdk}/jre/lib/boot/${hy.module}.jar" |
||||
excludeFilter="make/findbugs-exclude-filter.xml" |
||||
outputFile="${findBugs.report}/${hy.module}.xml"/> |
||||
</target> |
||||
|
||||
<target name="-build-jar" unless="skip.java.build" |
||||
depends="-svn-info,-compile-java,-class-patternset"> |
||||
<hy.jar.bin destfile="${hy.jdk}/jre/lib/boot/${hy.module}.jar" |
||||
manifest="META-INF/MANIFEST.MF"> |
||||
<manifest> |
||||
<attribute name="X-Compile-Source-JDK" |
||||
value="${hy.javac.source} (parts 1.4)"/> |
||||
<attribute name="X-Compile-Target-JDK" |
||||
value="${hy.javac.target} (parts 1.4)"/> |
||||
</manifest> |
||||
<fileset refid="classes" /> |
||||
<fileset refid="resources" /> |
||||
</hy.jar.bin> |
||||
|
||||
<hy.jar.src destfile="${hy.jdk}/jre/lib/boot/${hy.module}-src.jar"> |
||||
<fileset dir="src/main/java" /> |
||||
<fileset dir="src/main/java/../java5" /> |
||||
</hy.jar.src> |
||||
</target> |
||||
|
||||
<target name="-test-jar" unless="skip.test.build" |
||||
depends="-svn-info,-compile-tests"> |
||||
<mkdir dir="${tests.hdk.dir}" /> |
||||
|
||||
<copy file="make/run-test.xml" tofile="${tests.hdk.dir}/build.xml" /> |
||||
|
||||
<hy.jar.bin destfile="${tests.hdk.dir}/${hy.module}_tests.jar"> |
||||
<fileset dir="${hy.build.mod}/test/api" /> |
||||
</hy.jar.bin> |
||||
|
||||
<mkdir dir="${tests.excludes.hdk.dir}"/> |
||||
<copy todir="${tests.excludes.hdk.dir}"> |
||||
<fileset dir="make" includes="exclude*"/> |
||||
<filterchain> |
||||
<tokenfilter> |
||||
<replaceregex pattern="\.java" replace="\.class" flags="g"/> |
||||
</tokenfilter> |
||||
</filterchain> |
||||
</copy> |
||||
|
||||
<copy todir="${tests.resources.hdk.dir}"> |
||||
<fileset dir="src/test/resources" /> |
||||
</copy> |
||||
</target> |
||||
|
||||
<target name="-compile-tests" unless="skip.test.build"> |
||||
<mkdir dir="${hy.build.mod}/test/api" /> |
||||
|
||||
<mkdir dir="${hy.hdk}/build/test" /> |
||||
<copy file="${junit.jar}" |
||||
tofile="${hy.hdk}/build/test/junit.jar" /> |
||||
<copy file="${hamcrest-library.jar}" |
||||
tofile="${hy.hdk}/build/test/hamcrest-library.jar" /> |
||||
|
||||
<echo message="Compiling ${hy.module} tests" /> |
||||
<hy.javac srcdir="src/test/java" |
||||
destdir="${hy.build.mod}/test/api" |
||||
sourcepath="" |
||||
source="1.4" |
||||
target="1.4"> |
||||
|
||||
<compilerarg line="${build.compilerarg}" /> |
||||
|
||||
<bootclasspath> |
||||
<fileset dir="${hy.jdk}/jre/lib/boot"> |
||||
<include name="**/*.jar" /> |
||||
</fileset> |
||||
</bootclasspath> |
||||
<classpath location="${hy.hdk}/build/test/junit.jar" /> |
||||
<classpath location="${hy.hdk}/build/test/hamcrest-library.jar" /> |
||||
</hy.javac> |
||||
</target> |
||||
|
||||
<target name="-run-tests" depends="-test-jar"> |
||||
<ant dir="${tests.hdk.dir}" target="test-module" /> |
||||
</target> |
||||
|
||||
<target name="-class-patternset" unless="skip.java.build"> |
||||
<make-patternset module="${hy.module}" /> |
||||
</target> |
||||
|
||||
</project> |
@ -1,10 +0,0 @@ |
||||
Manifest-Version: 1.0 |
||||
Bundle-ManifestVersion: 2 |
||||
Bundle-Name: ASM |
||||
Bundle-SymbolicName: org.objectweb.asm;singleton:=true |
||||
Bundle-Version: 3.1 |
||||
Bundle-ClassPath: asm-3.1.jar |
||||
Eclipse-JREBundle: true |
||||
Import-Package: java.io, |
||||
java.lang |
||||
Export-Package: org.objectweb.asm, org.objectweb.asm.signature |
@ -1,21 +0,0 @@ |
||||
# Licensed to the Apache Software Foundation (ASF) under one or more |
||||
# contributor license agreements. See the NOTICE file distributed with |
||||
# this work for additional information regarding copyright ownership. |
||||
# The ASF licenses this file to You under the Apache License, Version 2.0 |
||||
# (the "License"); you may not use this file except in compliance with |
||||
# the License. You may obtain a copy of the License at |
||||
# |
||||
# http://www.apache.org/licenses/LICENSE-2.0 |
||||
# |
||||
# Unless required by applicable law or agreed to in writing, software |
||||
# distributed under the License is distributed on an "AS IS" BASIS, |
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||||
# See the License for the specific language governing permissions and |
||||
# limitations under the License. |
||||
|
||||
depends.jars=${hy.depends}/jars |
||||
asm.ver=asm-3.1 |
||||
asm.dir=${depends.jars}/${asm.ver} |
||||
asm.jar=${asm.dir}/${asm.ver}.jar |
||||
asm.url=http://download.forge.objectweb.org/asm/${asm.ver}.jar |
||||
asm.md5=4fbe0fd975ecc71480846ce272b483b0 |
@ -1,46 +0,0 @@ |
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<!-- |
||||
Licensed to the Apache Software Foundation (ASF) under one or more |
||||
contributor license agreements. See the NOTICE file distributed with |
||||
this work for additional information regarding copyright ownership. |
||||
The ASF licenses this file to You under the Apache License, Version |
||||
2.0 (the "License"); you may not use this file except in compliance |
||||
with the License. You may obtain a copy of the License at |
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0 Unless required by |
||||
applicable law or agreed to in writing, software distributed under the |
||||
License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR |
||||
CONDITIONS OF ANY KIND, either express or implied. See the License for |
||||
the specific language governing permissions and limitations under the |
||||
License. |
||||
--> |
||||
|
||||
<!-- Exclusion filter for running FindBugs against Apache Harmony --> |
||||
|
||||
<!-- |
||||
Format and code information is available here |
||||
http://findbugs.sourceforge.net/manual/filter.html |
||||
--> |
||||
|
||||
<FindBugsFilter> |
||||
|
||||
<!-- |
||||
Intentional fallthrough in switch statement |
||||
--> |
||||
<Match> |
||||
<Class name="org.apache.harmony.unpack200.BcBands" /> |
||||
<Method name="read" /> |
||||
<Bug pattern="SF_SWITCH_FALLTHROUGH" /> |
||||
</Match> |
||||
|
||||
<!-- |
||||
Our cache is testing String with == |
||||
--> |
||||
<Match> |
||||
<Class name="org.apache.harmony.unpack200.SegmentConstantPoolArrayCache" /> |
||||
<Method name="indexesForArrayKey" /> |
||||
<Bug pattern="ES_COMPARING_PARAMETER_STRING_WITH_EQ" /> |
||||
</Match> |
||||
|
||||
</FindBugsFilter> |
||||
|
@ -1,37 +0,0 @@ |
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<!-- |
||||
Licensed to the Apache Software Foundation (ASF) under one or more |
||||
contributor license agreements. See the NOTICE file distributed with |
||||
this work for additional information regarding copyright ownership. |
||||
The ASF licenses this file to You under the Apache License, Version 2.0 |
||||
(the "License"); you may not use this file except in compliance with |
||||
the License. You may obtain a copy of the License at |
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0 |
||||
|
||||
Unless required by applicable law or agreed to in writing, software |
||||
distributed under the License is distributed on an "AS IS" BASIS, |
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||||
See the License for the specific language governing permissions and |
||||
limitations under the License. |
||||
--> |
||||
|
||||
<project name="Harmony Pack200 Test" default="test" basedir="."> |
||||
|
||||
<property name="hy.test.root" location=".." /> |
||||
<property name="hy.component" value="classlib" /> |
||||
<property name="hy.module" value="pack200" /> |
||||
<import file="${hy.test.root}/../ant/testproperties.xml" /> |
||||
|
||||
<target name="test" depends="test-module" /> |
||||
|
||||
<target name="test-module" depends="test-jre-vm-info"> |
||||
<convert-test-as-class from="test.case" to="converted.tc.class" /> |
||||
<run-hdk-tests module="pack200" jar="pack200_tests.jar"> |
||||
<junit-elements> |
||||
<classpath location="resources" /> |
||||
</junit-elements> |
||||
</run-hdk-tests> |
||||
</target> |
||||
|
||||
</project> |
@ -0,0 +1,43 @@ |
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
||||
<modelVersion>4.0.0</modelVersion> |
||||
|
||||
<groupId>dev.openrs2</groupId> |
||||
<artifactId>pack200</artifactId> |
||||
<version>1.0.0-SNAPSHOT</version> |
||||
<packaging>jar</packaging> |
||||
|
||||
<name>Pack200</name> |
||||
|
||||
<properties> |
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
||||
</properties> |
||||
|
||||
<dependencies> |
||||
<dependency> |
||||
<groupId>asm</groupId> |
||||
<artifactId>asm</artifactId> |
||||
<version>3.1</version> |
||||
</dependency> |
||||
<dependency> |
||||
<groupId>junit</groupId> |
||||
<artifactId>junit</artifactId> |
||||
<version>4.12</version> |
||||
<scope>test</scope> |
||||
</dependency> |
||||
</dependencies> |
||||
|
||||
<build> |
||||
<plugins> |
||||
<plugin> |
||||
<groupId>org.apache.maven.plugins</groupId> |
||||
<artifactId>maven-compiler-plugin</artifactId> |
||||
<version>3.8.0</version> |
||||
<configuration> |
||||
<source>12</source> |
||||
<target>12</target> |
||||
</configuration> |
||||
</plugin> |
||||
</plugins> |
||||
</build> |
||||
</project> |
Loading…
Reference in new issue