[MRESOURCES-242] - Fix integration test include-git-ignore
o The test has not correctly created the src/main/resources
directory.
diff --git a/src/it/include-git-ignore/setup.bsh b/src/it/include-git-ignore/setup.bsh
index 800c1aa..2ddd3c1 100644
--- a/src/it/include-git-ignore/setup.bsh
+++ b/src/it/include-git-ignore/setup.bsh
@@ -25,7 +25,12 @@
try
{
- File resources = new File( basedir, "src/main/resources" );
+ File resources = new File( basedir, "src/main/resources/" );
+ if ( !resources.mkdirs() ) {
+ System.out.println ( "Failed to create src/main/resources directory." );
+ result = false;
+ }
+
File gitIgnore = new File ( resources, ".gitignore" );
@@ -54,10 +59,10 @@
try
{
- File resources = new File( basedir, "src/main/resources/dir-with-dot-file" );
+ File resources = new File( basedir, "src/main/resources/dir-with-dot-file/" );
if ( !resources.mkdirs() ) {
- System.out.println ( "Failed to created dir-with-dot-file folder." );
+ System.out.println ( "Failed to create dir-with-dot-file folder." );
result = false;
}
File gitIgnore = new File ( resources, ".gitignore" );