本文整理匯總了Java中org.apache.maven.plugin.MojoExecutionException.getMessage方法的典型用法代碼示例。如果您正苦於以下問題:Java MojoExecutionException.getMessage方法的具體用法?Java MojoExecutionException.getMessage怎麽用?Java MojoExecutionException.getMessage使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.apache.maven.plugin.MojoExecutionException
的用法示例。
在下文中一共展示了MojoExecutionException.getMessage方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: isArtifactIncluded
import org.apache.maven.plugin.MojoExecutionException; //導入方法依賴的package包/類
public boolean isArtifactIncluded( ArtifactItem item )
throws ArtifactFilterException
{
Artifact artifact = item.getArtifact();
boolean overWrite = false;
boolean result = false;
if ( ( artifact.isSnapshot() && this.overWriteSnapshots )
|| ( !artifact.isSnapshot() && this.overWriteReleases ) )
{
overWrite = true;
}
handler.setArtifact( artifact );
try
{
if ( overWrite || ( !handler.isMarkerSet() || ( overWriteIfNewer && handler.isMarkerOlder( artifact ) ) ) )
{
result = true;
}
}
catch ( MojoExecutionException e )
{
throw new ArtifactFilterException (e.getMessage(),e);
}
return result;
}
示例2: isArtifactIncluded
import org.apache.maven.plugin.MojoExecutionException; //導入方法依賴的package包/類
public boolean isArtifactIncluded( ArtifactItem item ) throws ArtifactFilterException
{
handler.setArtifact( item.getArtifact() );
try
{
return ( !handler.isMarkerSet() );
}
catch ( MojoExecutionException e )
{
throw new ArtifactFilterException( e.getMessage(),e);
}
}