Skip to content

Commit

Permalink
OS independent file separator in Gradle script
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasz-antoniak authored and stliu committed Jan 17, 2012
1 parent e52d184 commit 755d7fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions release/release.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ String determinePackageName(SourceDirectorySet sourceDirectorySet, File javaFile
if ( javaFileAbsolutePath.startsWith( sourceDirectoryAbsolutePath ) ) {
final String javaFileRelativePath = javaFileAbsolutePath.substring(
sourceDirectoryAbsolutePath.length() + 1,
javaFileAbsolutePath.lastIndexOf( '/' )
javaFileAbsolutePath.lastIndexOf( File.separator )
);
return javaFileRelativePath.replace( '/', '.' );
return javaFileRelativePath.replace( File.separator, "." );
}
}
throw new RuntimeException( "ugh" );
Expand Down

0 comments on commit 755d7fb

Please sign in to comment.