Skip to content
This repository has been archived by the owner on Sep 13, 2024. It is now read-only.

Commit

Permalink
spotless:apply
Browse files Browse the repository at this point in the history
  • Loading branch information
mcculls committed Jan 7, 2024
1 parent 7e8ec4d commit 88c981b
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/main/java/org/eclipse/sisu/mojos/IndexMojo.java
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,8 @@ public void execute()
new SisuIndex( outputDirectory )
{
@Override
protected Writer getWriter( String path ) throws IOException
protected Writer getWriter( String path )
throws IOException
{
Path p = outputDirectory.toPath().resolve( path );
Path d = p.getParent();
Expand Down Expand Up @@ -279,22 +280,22 @@ private void appendDirectoryToClassPath( final List<URL> urls, File directory )
if ( directory.isDirectory() )
{
Scanner scanner = buildContext.newScanner( directory );
scanner.setIncludes( new String[] {"**/*.class"} );
scanner.setIncludes( new String[] { "**/*.class" } );
scanner.scan();
String[] includedFiles = scanner.getIncludedFiles();
if ( includedFiles != null && includedFiles.length > 0 )
{
getLog().debug("Found at least one class file in " + directory );
getLog().debug( "Found at least one class file in " + directory );
appendFileToClassPath( urls, directory );
}
else
{
getLog().debug("No class files found in " + directory );
getLog().debug( "No class files found in " + directory );
}
}
else
{
getLog().debug("Path " + directory + " does not exist or is no directory" );
getLog().debug( "Path " + directory + " does not exist or is no directory" );
}
}

Expand Down

0 comments on commit 88c981b

Please sign in to comment.