Utils.java revision 4248
0N/A * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved. 0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/A * This code is free software; you can redistribute it and/or modify it 0N/A * under the terms of the GNU General Public License version 2 only, as 0N/A * published by the Free Software Foundation. 0N/A * This code is distributed in the hope that it will be useful, but WITHOUT 0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/A * version 2 for more details (a copy is included in the LICENSE file that 0N/A * accompanied this code). 0N/A * You should have received a copy of the GNU General Public License version 0N/A * 2 along with this work; if not, write to the Free Software Foundation, 0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 0N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 0N/A * or visit www.oracle.com if you need additional information or have any 0N/A * This class contains all the commonly used utilities used by various tests 0N/A * in this directory. 0N/A "sun.tools.pack.verify.Main",
0N/A * Suppose a path is provided which consists of a full path 0N/A * finds files in the start directory using the the filter, appends 0N/A * the files to the dirList. 0N/A // given a jar file foo.jar will write to foo.pack 0N/A // Take the time optimization vs. space 0N/A // Make the memory consumption as effective as possible 0N/A // ignore all JAR deflation requests to save time 0N/A // save the file ordering of the original JAR 0N/A // Write out to a jtreg scratch area 0N/A // uses java unpacker, slow but useful to discover issues with the packer 0N/A // uses native unpacker using the java APIs 0N/A // given a packed file, create the jar file in the current directory. 0N/A // Call the unpacker 0N/A cmd +
" exists and is executable");
0N/A // search the source dir and jdk dir for requested file and returns 0N/A // the first location it finds.