o Added warnings in case the artifact file does not exist (yet)

git-svn-id: https://svn.apache.org/repos/asf/maven/core-integration-testing/trunk@751803 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2009-03-09 19:36:26 +00:00
parent 49452abaa0
commit a9671864f7
2 changed files with 10 additions and 0 deletions

View File

@ -104,6 +104,11 @@ public class AttachMojo
artifactFile = new File( project.getBasedir(), attachedFile );
}
if ( !artifactFile.exists() )
{
getLog().warn( "[MAVEN-CORE-IT-LOG] Attached artifact file does not exist: " + artifactFile );
}
helper.attachArtifact( project, artifactType, artifactClassifier, artifactFile );
getLog().info( "[MAVEN-CORE-IT-LOG] Attached artifact file: " + artifactFile );

View File

@ -83,6 +83,11 @@ public class SetMojo
artifactFile = new File( project.getBasedir(), mainFile );
}
if ( !artifactFile.exists() )
{
getLog().warn( "[MAVEN-CORE-IT-LOG] Main artifact file does not exist: " + artifactFile );
}
Artifact artifact = project.getArtifact();
artifact.setFile( artifactFile );