Skip to content
Permalink
Browse files
Make compatible with latest shade plugins
git-svn-id: https://svn.apache.org/repos/asf/cxf/build-utils/trunk@941821 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
dkulp committed May 6, 2010
1 parent e46359a commit e14b8f63ec5c2f7fd10bc8768bb8d057d8298fd8
Showing 3 changed files with 9 additions and 1 deletion.
@@ -68,7 +68,7 @@
<dependency>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>1.1</version>
<version>1.3.2</version>
<optional>true</optional>
</dependency>
<dependency>
@@ -62,6 +62,9 @@ public boolean hasTransformedResource() {
return !extensions.isEmpty();
}

public void processResource(String resource, InputStream is, List relocators) throws IOException {
processResource(is);
}
public void processResource(InputStream is) throws IOException {
ByteArrayOutputStream bout = new ByteArrayOutputStream(1024);
int i = is.read(buffer);
@@ -21,6 +21,7 @@
import java.io.IOException;
import java.io.InputStream;
import java.util.Iterator;
import java.util.List;
import java.util.jar.JarEntry;
import java.util.jar.JarOutputStream;

@@ -53,6 +54,9 @@ public boolean canTransformResource(String r) {
return false;
}

public void processResource(String resource, InputStream is, List relocators) throws IOException {
processResource(is);
}
public void processResource(InputStream is) throws IOException {
Document r;
try {
@@ -89,4 +93,5 @@ public void modifyOutputStream(JarOutputStream jos) throws IOException {
new XMLOutputter(Format.getPrettyFormat()).output(doc, jos);
doc = null;
}

}

0 comments on commit e14b8f6

Please sign in to comment.