mirror of https://github.com/apache/ant-ivy
Also catch errors when trying to instantiate optional classes.
This commit is contained in:
parent
5f9e01d7a0
commit
05fdc916fb
|
|
@ -297,10 +297,10 @@ public class IvySettings implements SortEngineSettings, PublishEngineSettings, P
|
|||
.getClassLoader()
|
||||
.loadClass("org.apache.ivy.plugins.pack.Pack200Packing");
|
||||
addArchivePacking(pack200.newInstance());
|
||||
} catch (Exception e) {
|
||||
} catch (Throwable t) {
|
||||
// ignore: the pack200 packing isn't on the classpath
|
||||
Message.info("impossible to define pack200 packaging: "
|
||||
+ "org.apache.ivy.plugins.pack.Pack200Packing was not found", e);
|
||||
+ "org.apache.ivy.plugins.pack.Pack200Packing was not found", t);
|
||||
}
|
||||
|
||||
addReportOutputter(new LogReportOutputter());
|
||||
|
|
|
|||
|
|
@ -28,9 +28,6 @@ public class Pack200Packing extends StreamPacking {
|
|||
|
||||
private static final String[] NAMES = {"pack200"};
|
||||
|
||||
public Pack200Packing() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] getNames() {
|
||||
return NAMES;
|
||||
|
|
|
|||
Loading…
Reference in New Issue