FileUtilities.java revision 1470
30N/A * CDDL HEADER START 30N/A * The contents of this file are subject to the terms of the 30N/A * Common Development and Distribution License (the "License"). 30N/A * You may not use this file except in compliance with the License. 30N/A * language governing permissions and limitations under the License. 30N/A * When distributing Covered Code, include this CDDL HEADER in each 30N/A * If applicable, add the following below this CDDL HEADER, with the 30N/A * fields enclosed by brackets "[]" replaced with your own identifying 30N/A * information: Portions Copyright [yyyy] [name of copyright owner] 30N/A * Copyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved. 290N/A * Various filesystem utilities used by the different test setups 30N/A * @author Trond Norbye 30N/A * Extract the source bundle to the given path. 58N/A * @param sourceBundle bundle to extract 145N/A * @param root target dir 30N/A * @throws IOException 77N/A * Delete the given directory (rm -rf). 77N/A * @param root directory to delete. 77N/A * Copy th given input to the given output 1:1. 77N/A * @param in source to copy 77N/A * @param out destination for copy 77N/A * @throws IOException 77N/A * Get all files of the given directory and all its descendants obeying 77N/A * {@link Configuration#getIgnoredNames()}. 77N/A * @param root where to start the search 145N/A * @param files where to store files found 77N/A * @param directories if {@code true} add directories to <var>files</var> 145N/A * Create an empty directory under {@code /tmp} or similar. 58N/A * @param prefix string to prefix the directory name with 77N/A * @return a {@code File} object pointing to the directory 77N/A * @throws IOException if the temporary directory cannot be created 77N/A "Could not create delete temporary file " +
file);
58N/A "Could not create temporary directory " +
file);
58N/A * Determine if given program is present in one of the directories 145N/A * in PATH environment variable. 58N/A * @param progName name of the program 77N/A * @return absolute path to the program or null