equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2010, 2018, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
108 p.pack(ti.getJarFile(), ti.getOutputStream()); |
108 p.pack(ti.getJarFile(), ti.getOutputStream()); |
109 } catch (Exception e) { |
109 } catch (Exception e) { |
110 ti.checkException(e); |
110 ti.checkException(e); |
111 } |
111 } |
112 } |
112 } |
113 } finally { // keep jprt happy |
113 } finally { // clean up |
114 for (TestInput ti : tlist) { |
114 for (TestInput ti : tlist) { |
115 if (ti != null) { |
115 if (ti != null) { |
116 ti.close(); |
116 ti.close(); |
117 } |
117 } |
118 } |
118 } |
141 p.pack(ti.getJarInputStream(), ti.getOutputStream()); |
141 p.pack(ti.getJarInputStream(), ti.getOutputStream()); |
142 } catch (Exception e) { |
142 } catch (Exception e) { |
143 ti.checkException(e); |
143 ti.checkException(e); |
144 } |
144 } |
145 } |
145 } |
146 } finally { // keep jprt happy |
146 } finally { // clean up |
147 for (PackTestJarInputStream ti : tlist) { |
147 for (PackTestJarInputStream ti : tlist) { |
148 if (ti != null) { |
148 if (ti != null) { |
149 ti.close(); |
149 ti.close(); |
150 } |
150 } |
151 } |
151 } |
175 unpacker.unpack(ti.getInputStream(), ti.getJarOutputStream()); |
175 unpacker.unpack(ti.getInputStream(), ti.getJarOutputStream()); |
176 } catch (Exception e) { |
176 } catch (Exception e) { |
177 ti.checkException(e); |
177 ti.checkException(e); |
178 } |
178 } |
179 } |
179 } |
180 } finally { // keep jprt happy |
180 } finally { // clean up |
181 for (TestInput ti : tlist) { |
181 for (TestInput ti : tlist) { |
182 if (ti != null) { |
182 if (ti != null) { |
183 ti.close(); |
183 ti.close(); |
184 } |
184 } |
185 } |
185 } |
208 unpacker.unpack(ti.getInputFile(), ti.getJarOutputStream()); |
208 unpacker.unpack(ti.getInputFile(), ti.getJarOutputStream()); |
209 } catch (Exception e) { |
209 } catch (Exception e) { |
210 ti.checkException(e); |
210 ti.checkException(e); |
211 } |
211 } |
212 } |
212 } |
213 } finally { // keep jprt happy |
213 } finally { // clean up |
214 for (TestInput ti : tlist) { |
214 for (TestInput ti : tlist) { |
215 if (ti != null) { |
215 if (ti != null) { |
216 ti.close(); |
216 ti.close(); |
217 } |
217 } |
218 } |
218 } |