import sources
This commit is contained in:
commit
535709c057
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
/jarjar-src-1.4.zip
|
28
do-not-embed-asm.patch
Normal file
28
do-not-embed-asm.patch
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
--- build.xml.orig 2014-12-18 21:38:42.035192783 +0000
|
||||||
|
+++ build.xml 2014-12-18 21:39:34.233460061 +0000
|
||||||
|
@@ -95,16 +95,10 @@
|
||||||
|
<mkdir dir="dist"/>
|
||||||
|
<jarjar jarfile="${jarfile}">
|
||||||
|
<fileset dir="build/main"/>
|
||||||
|
- <zipfileset src="lib/asm-4.0.jar"/>
|
||||||
|
- <zipfileset src="lib/asm-commons-4.0.jar">
|
||||||
|
- <include name="org/objectweb/asm/commons/Remap*.class"/>
|
||||||
|
- <include name="org/objectweb/asm/commons/LocalVariablesSorter.class"/>
|
||||||
|
- </zipfileset>
|
||||||
|
<keep pattern="com.tonicsystems.jarjar.Main"/>
|
||||||
|
<keep pattern="com.tonicsystems.jarjar.JarJarTask"/>
|
||||||
|
<keep pattern="com.tonicsystems.jarjar.JarJarMojo"/>
|
||||||
|
<rule pattern="com.tonicsystems.jarjar.util.**" result="com.tonicsystems.jarjar.ext_util.@1"/>
|
||||||
|
- <rule pattern="org.objectweb.asm.**" result="com.tonicsystems.jarjar.asm.@1"/>
|
||||||
|
<manifest>
|
||||||
|
<attribute name="Main-Class" value="com.tonicsystems.jarjar.Main"/>
|
||||||
|
<attribute name="Implementation-Version" value="${version}"/>
|
||||||
|
@@ -199,7 +199,7 @@
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="test-rejar" depends="jar">
|
||||||
|
- <taskdef name="jarjar2" classname="com.tonicsystems.jarjar.JarJarTask" classpath="${jarfile}"/>
|
||||||
|
+ <taskdef name="jarjar2" classname="com.tonicsystems.jarjar.JarJarTask" classpath="${jarfile}:lib/asm-4.0.jar:lib/asm-commons-4.0.jar"/>
|
||||||
|
<delete file="${test.jar}"/>
|
||||||
|
<jarjar2 jarfile="${test.jar}">
|
||||||
|
<fileset dir="build/main"/>
|
10
fix-maven-plugin.patch
Normal file
10
fix-maven-plugin.patch
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
--- build.xml.orig 2013-09-15 17:37:59.398986270 +0100
|
||||||
|
+++ build.xml 2013-09-15 17:38:27.659100029 +0100
|
||||||
|
@@ -102,6 +102,7 @@
|
||||||
|
</zipfileset>
|
||||||
|
<keep pattern="com.tonicsystems.jarjar.Main"/>
|
||||||
|
<keep pattern="com.tonicsystems.jarjar.JarJarTask"/>
|
||||||
|
+ <keep pattern="com.tonicsystems.jarjar.JarJarMojo"/>
|
||||||
|
<rule pattern="com.tonicsystems.jarjar.util.**" result="com.tonicsystems.jarjar.ext_util.@1"/>
|
||||||
|
<rule pattern="org.objectweb.asm.**" result="com.tonicsystems.jarjar.asm.@1"/>
|
||||||
|
<manifest>
|
25
jarjar-util.pom
Normal file
25
jarjar-util.pom
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
<project>
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<groupId>tonic</groupId>
|
||||||
|
<artifactId>jarjar-util</artifactId>
|
||||||
|
<version>1.4</version>
|
||||||
|
<distributionManagement>
|
||||||
|
<relocation>
|
||||||
|
<groupId>com.tonicsystems</groupId>
|
||||||
|
<artifactId>jarjar-util</artifactId>
|
||||||
|
<version>1.4</version>
|
||||||
|
</relocation>
|
||||||
|
</distributionManagement>
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.ow2.asm</groupId>
|
||||||
|
<artifactId>asm</artifactId>
|
||||||
|
<version>5.0.3</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.ow2.asm</groupId>
|
||||||
|
<artifactId>asm-util</artifactId>
|
||||||
|
<version>5.0.3</version>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
</project>
|
25
jarjar.pom
Normal file
25
jarjar.pom
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
<project>
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<groupId>tonic</groupId>
|
||||||
|
<artifactId>jarjar</artifactId>
|
||||||
|
<version>1.4</version>
|
||||||
|
<distributionManagement>
|
||||||
|
<relocation>
|
||||||
|
<groupId>com.tonicsystems</groupId>
|
||||||
|
<artifactId>jarjar</artifactId>
|
||||||
|
<version>1.4</version>
|
||||||
|
</relocation>
|
||||||
|
</distributionManagement>
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.ow2.asm</groupId>
|
||||||
|
<artifactId>asm</artifactId>
|
||||||
|
<version>5.0.3</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.ow2.asm</groupId>
|
||||||
|
<artifactId>asm-util</artifactId>
|
||||||
|
<version>5.0.3</version>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
</project>
|
245
jarjar.spec
Normal file
245
jarjar.spec
Normal file
@ -0,0 +1,245 @@
|
|||||||
|
# Copyright (c) 2000-2008, JPackage Project
|
||||||
|
# All rights reserved.
|
||||||
|
#
|
||||||
|
# Redistribution and use in source and binary forms, with or without
|
||||||
|
# modification, are permitted provided that the following conditions
|
||||||
|
# are met:
|
||||||
|
#
|
||||||
|
# 1. Redistributions of source code must retain the above copyright
|
||||||
|
# notice, this list of conditions and the following disclaimer.
|
||||||
|
# 2. Redistributions in binary form must reproduce the above copyright
|
||||||
|
# notice, this list of conditions and the following disclaimer in the
|
||||||
|
# documentation and/or other materials provided with the
|
||||||
|
# distribution.
|
||||||
|
# 3. Neither the name of the JPackage Project nor the names of its
|
||||||
|
# contributors may be used to endorse or promote products derived
|
||||||
|
# from this software without specific prior written permission.
|
||||||
|
#
|
||||||
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
#
|
||||||
|
|
||||||
|
Name: jarjar
|
||||||
|
Version: 1.4
|
||||||
|
Release: 22%{?dist}
|
||||||
|
Summary: Jar Jar Links
|
||||||
|
License: ASL 2.0
|
||||||
|
URL: http://code.google.com/p/jarjar/
|
||||||
|
Source0: https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/jarjar/jarjar-src-1.4.zip
|
||||||
|
Source1: jarjar.pom
|
||||||
|
Source2: jarjar-util.pom
|
||||||
|
Patch0: fix-maven-plugin.patch
|
||||||
|
Patch1: do-not-embed-asm.patch
|
||||||
|
Patch2: port-to-asm6.patch
|
||||||
|
|
||||||
|
BuildRequires: ant
|
||||||
|
BuildRequires: ant-junit
|
||||||
|
BuildRequires: objectweb-asm
|
||||||
|
BuildRequires: javapackages-local
|
||||||
|
BuildRequires: maven
|
||||||
|
Requires: objectweb-asm
|
||||||
|
# Explicit javapackages-tools requires since jarjar script uses
|
||||||
|
# /usr/share/java-utils/java-functions
|
||||||
|
Requires: javapackages-tools
|
||||||
|
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%description
|
||||||
|
Jar Jar Links is a utility that makes it easy to repackage Java
|
||||||
|
libraries and embed them into your own distribution. This is
|
||||||
|
useful for two reasons:
|
||||||
|
You can easily ship a single jar file with no external dependencies.
|
||||||
|
You can avoid problems where your library depends on a specific
|
||||||
|
version of a library, which may conflict with the dependencies of
|
||||||
|
another library.
|
||||||
|
|
||||||
|
%package maven-plugin
|
||||||
|
Summary: Maven plugin for %{name}
|
||||||
|
Requires: maven
|
||||||
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
|
||||||
|
%description maven-plugin
|
||||||
|
%{summary}.
|
||||||
|
|
||||||
|
%package javadoc
|
||||||
|
Summary: Javadoc for %{name}
|
||||||
|
|
||||||
|
%description javadoc
|
||||||
|
%{summary}.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n %{name}-%{version}
|
||||||
|
%patch0
|
||||||
|
%patch1
|
||||||
|
%patch2 -p1
|
||||||
|
|
||||||
|
# remove all binary libs
|
||||||
|
rm -f lib/*.jar
|
||||||
|
|
||||||
|
%mvn_package :jarjar-plugin %{name}-maven-plugin
|
||||||
|
|
||||||
|
# create ant config
|
||||||
|
echo "jarjar/jarjar objectweb-asm/asm objectweb-asm/asm-commons" > jarjar.ant
|
||||||
|
|
||||||
|
%build
|
||||||
|
pushd lib
|
||||||
|
ln -sf $(build-classpath objectweb-asm/asm) asm-4.0.jar
|
||||||
|
ln -sf $(build-classpath objectweb-asm/asm-commons) asm-commons-4.0.jar
|
||||||
|
ln -sf $(build-classpath maven/maven-plugin-api) maven-plugin-api.jar
|
||||||
|
popd
|
||||||
|
export CLASSPATH=$(build-classpath ant)
|
||||||
|
ant jar jar-util javadoc mojo test
|
||||||
|
|
||||||
|
sed -i -e s/@VERSION@/%{version}/g maven/pom.xml
|
||||||
|
|
||||||
|
# request maven artifact installation
|
||||||
|
%mvn_artifact %{SOURCE1} dist/jarjar-%{version}.jar
|
||||||
|
%mvn_artifact %{SOURCE2} dist/jarjar-util-%{version}.jar
|
||||||
|
%mvn_artifact maven/pom.xml dist/jarjar-plugin-%{version}.jar
|
||||||
|
%mvn_alias tonic:jarjar jarjar:jarjar com.tonicsystems:jarjar com.googlecode.jarjar:jarjar org.gradle.jarjar:jarjar
|
||||||
|
%mvn_alias tonic:jarjar-util jarjar:jarjar-util com.tonicsystems:jarjar-util
|
||||||
|
%mvn_alias com.tonicsystems.jarjar:jarjar-plugin jarjar:jarjar-plugin tonic:jarjar-plugin com.tonicsystems:jarjar-plugin
|
||||||
|
|
||||||
|
%install
|
||||||
|
%mvn_install -J dist/javadoc
|
||||||
|
|
||||||
|
%jpackage_script com.tonicsystems.jarjar.Main "" "" jarjar/jarjar:objectweb-asm/asm:objectweb-asm/asm-commons %{name} true
|
||||||
|
|
||||||
|
# install ant config
|
||||||
|
install -m 644 -D jarjar.ant %{buildroot}%{_sysconfdir}/ant.d/jarjar
|
||||||
|
|
||||||
|
%files -f .mfiles
|
||||||
|
%doc COPYING
|
||||||
|
%{_bindir}/%{name}
|
||||||
|
%{_sysconfdir}/ant.d/jarjar
|
||||||
|
%dir %{_javadir}/%{name}
|
||||||
|
|
||||||
|
%files maven-plugin -f .mfiles-%{name}-maven-plugin
|
||||||
|
%doc COPYING
|
||||||
|
|
||||||
|
%files javadoc -f .mfiles-javadoc
|
||||||
|
%doc COPYING
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Fri Aug 10 2018 Severin Gehwolf <sgehwolf@redhat.com> - 1.4-22
|
||||||
|
- Fix Soure0 URL.
|
||||||
|
|
||||||
|
* Mon Jul 30 2018 Severin Gehwolf <sgehwolf@redhat.com> - 1.4-21
|
||||||
|
- Add requirement on javapackages-tools for jarjar script.
|
||||||
|
|
||||||
|
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-20
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||||
|
|
||||||
|
* Mon Sep 18 2017 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.4-19
|
||||||
|
- Port to ASM 6
|
||||||
|
- Resolves: rhbz#1492564
|
||||||
|
|
||||||
|
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-18
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-17
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-16
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-15
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
||||||
|
|
||||||
|
* Tue Jan 20 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.4-14
|
||||||
|
- Add dependency on ASM
|
||||||
|
|
||||||
|
* Thu Dec 18 2014 Mat Booth <mat.booth@redhat.com> - 1.4-13
|
||||||
|
- Don't embed asm inside jarjar, fixes rhbz#1161553
|
||||||
|
|
||||||
|
* Fri Nov 7 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.4-12
|
||||||
|
- Install JPackage script in bindir
|
||||||
|
|
||||||
|
* Tue Oct 14 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.4-11
|
||||||
|
- Remove legacy Obsoletes/Provides for maven2 plugin
|
||||||
|
|
||||||
|
* Wed Oct 8 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.4-10
|
||||||
|
- Add alias for org.gradle.jarjar:jarjar
|
||||||
|
|
||||||
|
* Mon Jun 09 2014 Mat Booth <mat.booth@redhat.com> - 1.4-9
|
||||||
|
- Fix BR on asm and install with maven
|
||||||
|
|
||||||
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-8
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu May 29 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.4-7
|
||||||
|
- Use .mfiles generated during build
|
||||||
|
|
||||||
|
* Fri Oct 25 2013 Vít Ondruch <vondruch@redhat.com> - 1.4-6
|
||||||
|
- Fix alias to com.googlecode.jarjar:jarjar.
|
||||||
|
|
||||||
|
* Thu Oct 24 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.4-5
|
||||||
|
- Add alias for com.googlecode:jarjar
|
||||||
|
|
||||||
|
* Sun Sep 15 2013 Mat Booth <fedora@matbooth.co.uk> - 1.4-4
|
||||||
|
- Fix contents of maven plugin jar, rhbz #1006568
|
||||||
|
|
||||||
|
* Thu Aug 08 2013 Mat Booth <fedora@matbooth.co.uk> - 1.4-3
|
||||||
|
- Update for newer guidelines
|
||||||
|
|
||||||
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sat Mar 02 2013 Mat Booth <fedora@matbooth.co.uk> - 1.4-1
|
||||||
|
- Update to latest upstream version.
|
||||||
|
- Drop no longer needed patches.
|
||||||
|
- Drop unneeded BR/R on gnu-regexp.
|
||||||
|
|
||||||
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-9
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 1.0-8
|
||||||
|
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
|
||||||
|
- Replace maven BuildRequires with maven-local
|
||||||
|
|
||||||
|
* Thu Sep 20 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.0-7
|
||||||
|
- Install COPYING file with javadoc package
|
||||||
|
- Update to current packaging guidelines
|
||||||
|
- Remove rpm bug workaround
|
||||||
|
|
||||||
|
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-6
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-5
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jun 17 2011 Alexander Kurtakov <akurtako@redhat.com> 1.0-4
|
||||||
|
- Do not require maven2.
|
||||||
|
|
||||||
|
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-3
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Dec 29 2010 Mat Booth <fedora@matbooth.co.uk> 1.0-2
|
||||||
|
- Fix pom names RHBZ #655805.
|
||||||
|
- Drop versioned jars/javadocs.
|
||||||
|
|
||||||
|
* Wed Sep 29 2010 Mary Ellen Foster <mefoster@gmail.com> 1.0-1
|
||||||
|
- Update to 1.0
|
||||||
|
- Change project URLs
|
||||||
|
- Fix FTBFS
|
||||||
|
- Remove gcj stuff
|
||||||
|
|
||||||
|
* Fri Feb 5 2010 Mary Ellen Foster <mefoster at gmail.com> 0.9-5
|
||||||
|
- Make javadoc noarch
|
||||||
|
|
||||||
|
* Tue Nov 17 2009 Mary Ellen Foster <mefoster at gmail.com> 0.9-4
|
||||||
|
- Re-add GCJ bits
|
||||||
|
- Require jpackage-utils (for directories)
|
||||||
|
- Link javadoc dir
|
||||||
|
|
||||||
|
* Sun Nov 1 2009 Mary Ellen Foster <mefoster at gmail.com> 0.9-3
|
||||||
|
- Initial package, based on jpackage jarjar-0.9-2
|
147
port-to-asm6.patch
Normal file
147
port-to-asm6.patch
Normal file
@ -0,0 +1,147 @@
|
|||||||
|
From f3be10509b9ae73ee97bee82cb6150b98d4a4595 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Mikolaj Izdebski <mizdebsk@redhat.com>
|
||||||
|
Date: Mon, 18 Sep 2017 09:48:46 +0200
|
||||||
|
Subject: [PATCH] Port to ASM 6
|
||||||
|
|
||||||
|
---
|
||||||
|
src/main/com/tonicsystems/jarjar/DepFindVisitor.java | 2 +-
|
||||||
|
src/main/com/tonicsystems/jarjar/EmptyClassVisitor.java | 8 ++++----
|
||||||
|
src/main/com/tonicsystems/jarjar/KeepProcessor.java | 2 +-
|
||||||
|
src/main/com/tonicsystems/jarjar/StringReader.java | 8 ++++----
|
||||||
|
src/main/com/tonicsystems/jarjar/util/GetNameClassWriter.java | 2 +-
|
||||||
|
.../com/tonicsystems/jarjar/util/RemappingClassTransformer.java | 4 ++--
|
||||||
|
6 files changed, 13 insertions(+), 13 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/src/main/com/tonicsystems/jarjar/DepFindVisitor.java b/src/main/com/tonicsystems/jarjar/DepFindVisitor.java
|
||||||
|
index 9d6611e..bad909e 100644
|
||||||
|
--- a/src/main/com/tonicsystems/jarjar/DepFindVisitor.java
|
||||||
|
+++ b/src/main/com/tonicsystems/jarjar/DepFindVisitor.java
|
||||||
|
@@ -25,7 +25,7 @@ import org.objectweb.asm.*;
|
||||||
|
import org.objectweb.asm.Type;
|
||||||
|
import org.objectweb.asm.commons.*;
|
||||||
|
|
||||||
|
-class DepFindVisitor extends RemappingClassAdapter
|
||||||
|
+class DepFindVisitor extends ClassRemapper
|
||||||
|
{
|
||||||
|
public DepFindVisitor(Map<String, String> classes, String source, DepHandler handler) throws IOException {
|
||||||
|
super(null, new DepFindRemapper(classes, source, handler));
|
||||||
|
diff --git a/src/main/com/tonicsystems/jarjar/EmptyClassVisitor.java b/src/main/com/tonicsystems/jarjar/EmptyClassVisitor.java
|
||||||
|
index 348e03d..7a758fe 100644
|
||||||
|
--- a/src/main/com/tonicsystems/jarjar/EmptyClassVisitor.java
|
||||||
|
+++ b/src/main/com/tonicsystems/jarjar/EmptyClassVisitor.java
|
||||||
|
@@ -28,23 +28,23 @@ import org.objectweb.asm.Opcodes;
|
||||||
|
public class EmptyClassVisitor extends ClassVisitor {
|
||||||
|
|
||||||
|
public EmptyClassVisitor() {
|
||||||
|
- super(Opcodes.ASM4);
|
||||||
|
+ super(Opcodes.ASM6);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public MethodVisitor visitMethod(int access, String name, String desc,
|
||||||
|
String signature, String[] exceptions) {
|
||||||
|
- return new MethodVisitor(Opcodes.ASM4) {};
|
||||||
|
+ return new MethodVisitor(Opcodes.ASM6) {};
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public AnnotationVisitor visitAnnotation(String desc, boolean visible) {
|
||||||
|
- return new AnnotationVisitor(Opcodes.ASM4) {};
|
||||||
|
+ return new AnnotationVisitor(Opcodes.ASM6) {};
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public FieldVisitor visitField(int access, String name, String desc, String signature, Object value) {
|
||||||
|
- return new FieldVisitor(Opcodes.ASM4) {};
|
||||||
|
+ return new FieldVisitor(Opcodes.ASM6) {};
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
diff --git a/src/main/com/tonicsystems/jarjar/KeepProcessor.java b/src/main/com/tonicsystems/jarjar/KeepProcessor.java
|
||||||
|
index 0176b84..3ed4636 100644
|
||||||
|
--- a/src/main/com/tonicsystems/jarjar/KeepProcessor.java
|
||||||
|
+++ b/src/main/com/tonicsystems/jarjar/KeepProcessor.java
|
||||||
|
@@ -26,7 +26,7 @@ import org.objectweb.asm.commons.*;
|
||||||
|
// TODO: this can probably be refactored into JarClassVisitor, etc.
|
||||||
|
class KeepProcessor extends Remapper implements JarProcessor
|
||||||
|
{
|
||||||
|
- private final ClassVisitor cv = new RemappingClassAdapter(new EmptyClassVisitor(), this);
|
||||||
|
+ private final ClassVisitor cv = new ClassRemapper(new EmptyClassVisitor(), this);
|
||||||
|
private final List<Wildcard> wildcards;
|
||||||
|
private final List<String> roots = new ArrayList<String>();
|
||||||
|
private final Map<String, Set<String>> depend = new HashMap<String, Set<String>>();
|
||||||
|
diff --git a/src/main/com/tonicsystems/jarjar/StringReader.java b/src/main/com/tonicsystems/jarjar/StringReader.java
|
||||||
|
index ba7bb29..5bb719c 100644
|
||||||
|
--- a/src/main/com/tonicsystems/jarjar/StringReader.java
|
||||||
|
+++ b/src/main/com/tonicsystems/jarjar/StringReader.java
|
||||||
|
@@ -24,7 +24,7 @@ abstract class StringReader extends ClassVisitor
|
||||||
|
private String className;
|
||||||
|
|
||||||
|
public StringReader() {
|
||||||
|
- super(Opcodes.ASM4);
|
||||||
|
+ super(Opcodes.ASM6);
|
||||||
|
}
|
||||||
|
|
||||||
|
abstract public void visitString(String className, String value, int line);
|
||||||
|
@@ -42,7 +42,7 @@ abstract class StringReader extends ClassVisitor
|
||||||
|
|
||||||
|
public FieldVisitor visitField(int access, String name, String desc, String signature, Object value) {
|
||||||
|
handleObject(value);
|
||||||
|
- return new FieldVisitor(Opcodes.ASM4){
|
||||||
|
+ return new FieldVisitor(Opcodes.ASM6){
|
||||||
|
@Override
|
||||||
|
public AnnotationVisitor visitAnnotation(String desc, boolean visible) {
|
||||||
|
return StringReader.this.visitAnnotation(desc, visible);
|
||||||
|
@@ -52,7 +52,7 @@ abstract class StringReader extends ClassVisitor
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public AnnotationVisitor visitAnnotation(String desc, boolean visible) {
|
||||||
|
- return new AnnotationVisitor(Opcodes.ASM4) {
|
||||||
|
+ return new AnnotationVisitor(Opcodes.ASM6) {
|
||||||
|
@Override
|
||||||
|
public void visit(String name, Object value) {
|
||||||
|
handleObject(value);
|
||||||
|
@@ -71,7 +71,7 @@ abstract class StringReader extends ClassVisitor
|
||||||
|
@Override
|
||||||
|
public MethodVisitor visitMethod(int access, String name, String desc,
|
||||||
|
String signature, String[] exceptions) {
|
||||||
|
- MethodVisitor mv = new MethodVisitor(Opcodes.ASM4){
|
||||||
|
+ MethodVisitor mv = new MethodVisitor(Opcodes.ASM6){
|
||||||
|
@Override
|
||||||
|
public void visitLdcInsn(Object cst) {
|
||||||
|
handleObject(cst);
|
||||||
|
diff --git a/src/main/com/tonicsystems/jarjar/util/GetNameClassWriter.java b/src/main/com/tonicsystems/jarjar/util/GetNameClassWriter.java
|
||||||
|
index bbb8590..966ac82 100644
|
||||||
|
--- a/src/main/com/tonicsystems/jarjar/util/GetNameClassWriter.java
|
||||||
|
+++ b/src/main/com/tonicsystems/jarjar/util/GetNameClassWriter.java
|
||||||
|
@@ -25,7 +25,7 @@ public class GetNameClassWriter extends ClassVisitor
|
||||||
|
private String className;
|
||||||
|
|
||||||
|
public GetNameClassWriter(int flags) {
|
||||||
|
- super(Opcodes.ASM4,new ClassWriter(flags));
|
||||||
|
+ super(Opcodes.ASM6,new ClassWriter(flags));
|
||||||
|
}
|
||||||
|
|
||||||
|
public void visit(int version, int access, String name, String signature, String superName, String[] interfaces) {
|
||||||
|
diff --git a/src/main/com/tonicsystems/jarjar/util/RemappingClassTransformer.java b/src/main/com/tonicsystems/jarjar/util/RemappingClassTransformer.java
|
||||||
|
index fd1b9d7..9c1d4c9 100644
|
||||||
|
--- a/src/main/com/tonicsystems/jarjar/util/RemappingClassTransformer.java
|
||||||
|
+++ b/src/main/com/tonicsystems/jarjar/util/RemappingClassTransformer.java
|
||||||
|
@@ -17,12 +17,12 @@
|
||||||
|
package com.tonicsystems.jarjar.util;
|
||||||
|
|
||||||
|
import org.objectweb.asm.ClassVisitor;
|
||||||
|
+import org.objectweb.asm.commons.ClassRemapper;
|
||||||
|
import org.objectweb.asm.commons.Remapper;
|
||||||
|
-import org.objectweb.asm.commons.RemappingClassAdapter;
|
||||||
|
|
||||||
|
import com.tonicsystems.jarjar.EmptyClassVisitor;
|
||||||
|
|
||||||
|
-public class RemappingClassTransformer extends RemappingClassAdapter
|
||||||
|
+public class RemappingClassTransformer extends ClassRemapper
|
||||||
|
{
|
||||||
|
public RemappingClassTransformer(Remapper pr) {
|
||||||
|
super(new EmptyClassVisitor(), pr);
|
||||||
|
--
|
||||||
|
2.13.5
|
||||||
|
|
Loading…
Reference in New Issue
Block a user