Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local_MCO_UEM #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,15 @@ public abstract class AbstractArchiveMojo
*/
protected boolean immediateUpdate;

/**
* If any file is not present during the execution of this plugin, the build will fail if this parameter is true (default)
* or will not fail ih this parameter is false
*
* @parameter default-value="true"
* @since 1.2 beta-1
*/
protected boolean failIfFileNoPresent;

/**
* Skip
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,10 @@ public void execute()
}
catch ( IOException e )
{
throw new MojoExecutionException( "Unable to copy: " + from + " to " + to, e );
if (failIfFileNoPresent){
throw new MojoExecutionException( "Unable to copy: " + from + " to " + to, e );
}
getLog().debug(new MojoExecutionException( "Unable to copy: " + from + " to " + to, e ));
}

this.tryImmediateUpdate();
Expand Down