Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#180] remove IOException from FileUtils signature #181

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions src/main/java/org/codehaus/plexus/util/FileUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -1726,11 +1726,9 @@ public static long sizeOfDirectory( final File directory )
* @param includes the includes pattern, comma separated
* @param excludes the excludes pattern, comma separated
* @return a list of File objects
* @throws IOException io issue
* @see #getFileNames(File, String, String, boolean)
*/
public static List<File> getFiles( File directory, String includes, String excludes )
throws IOException
{
return getFiles( directory, includes, excludes, true );
}
Expand All @@ -1743,11 +1741,9 @@ public static List<File> getFiles( File directory, String includes, String exclu
* @param excludes the excludes pattern, comma separated
* @param includeBasedir true to include the base dir in each file
* @return a list of File objects
* @throws IOException io issue
* @see #getFileNames(File, String, String, boolean)
*/
public static List<File> getFiles( File directory, String includes, String excludes, boolean includeBasedir )
throws IOException
{
List<String> fileNames = getFileNames( directory, includes, excludes, includeBasedir );

Expand All @@ -1769,10 +1765,8 @@ public static List<File> getFiles( File directory, String includes, String exclu
* @param excludes the excludes pattern, comma separated
* @param includeBasedir true to include the base dir in each String of file
* @return a list of files as String
* @throws IOException io issue
*/
public static List<String> getFileNames( File directory, String includes, String excludes, boolean includeBasedir )
throws IOException
{
return getFileNames( directory, includes, excludes, includeBasedir, true );
}
Expand All @@ -1786,11 +1780,9 @@ public static List<String> getFileNames( File directory, String includes, String
* @param includeBasedir true to include the base dir in each String of file
* @param isCaseSensitive true if case sensitive
* @return a list of files as String
* @throws IOException io issue
*/
public static List<String> getFileNames( File directory, String includes, String excludes, boolean includeBasedir,
boolean isCaseSensitive )
throws IOException
{
return getFileAndDirectoryNames( directory, includes, excludes, includeBasedir, isCaseSensitive, true, false );
}
Expand All @@ -1803,11 +1795,9 @@ public static List<String> getFileNames( File directory, String includes, String
* @param excludes the excludes pattern, comma separated
* @param includeBasedir true to include the base dir in each String of file
* @return a list of directories as String
* @throws IOException io issue
*/
public static List<String> getDirectoryNames( File directory, String includes, String excludes,
boolean includeBasedir )
throws IOException
{
return getDirectoryNames( directory, includes, excludes, includeBasedir, true );
}
Expand All @@ -1821,11 +1811,9 @@ public static List<String> getDirectoryNames( File directory, String includes, S
* @param includeBasedir true to include the base dir in each String of file
* @param isCaseSensitive true if case sensitive
* @return a list of directories as String
* @throws IOException io issue
*/
public static List<String> getDirectoryNames( File directory, String includes, String excludes,
boolean includeBasedir, boolean isCaseSensitive )
throws IOException
{
return getFileAndDirectoryNames( directory, includes, excludes, includeBasedir, isCaseSensitive, false, true );
}
Expand All @@ -1841,12 +1829,10 @@ public static List<String> getDirectoryNames( File directory, String includes, S
* @param getFiles true if get files
* @param getDirectories true if get directories
* @return a list of files as String
* @throws IOException io issue
*/
public static List<String> getFileAndDirectoryNames( File directory, String includes, String excludes,
boolean includeBasedir, boolean isCaseSensitive,
boolean getFiles, boolean getDirectories )
throws IOException
{
DirectoryScanner scanner = new DirectoryScanner();

Expand Down