You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by kh...@apache.org on 2018/02/22 19:12:31 UTC
[maven-resources-plugin] branch master updated: [MRESOURCES-242] -
Fix integration test include-git-ignore o The test has not correctly
created the src/main/resources directory.
This is an automated email from the ASF dual-hosted git repository.
khmarbaise pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-resources-plugin.git
The following commit(s) were added to refs/heads/master by this push:
new 9239536 [MRESOURCES-242] - Fix integration test include-git-ignore o The test has not correctly created the src/main/resources directory.
9239536 is described below
commit 92395368f8f6511adafdcae3453d33e630f05c1a
Author: Karl Heinz Marbaise <kh...@apache.org>
AuthorDate: Thu Feb 22 20:05:47 2018 +0100
[MRESOURCES-242] - Fix integration test include-git-ignore
o The test has not correctly created the src/main/resources
directory.
---
src/it/include-git-ignore/setup.bsh | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
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 @@ boolean result = true;
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 @@ catch( IOException e )
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" );
--
To stop receiving notification emails like this one, please contact
khmarbaise@apache.org.