Permalink
Browse files

localeSourcePath is added to test source path when compiling tests, if

needed.
  • Loading branch information...
1 parent 150ef4c commit 9623fc0374796e244f12f03c822d0769e3c63adc @pjastrz pjastrz committed Aug 18, 2011
@@ -585,6 +585,12 @@ protected File getSourceFile()
files.addAll( PathUtil.existingFilesList( testCompileSourceRoots ) );
files.addAll( Arrays.asList( super.getSourcePath() ) );
+
+ if ( getLocale() != null ) {
+ if ( localesSourcePath.getParentFile().exists() ) {
+ files.add( localesSourcePath );
+ }
+ }
return files.toArray( new File[0] );
}

0 comments on commit 9623fc0

Please sign in to comment.