The following document contains the results of PMD's CPD 4.2.5.
| File | Line |
|---|---|
| org/codehaus/mojo/webstart/AbstractJnlpMojo.java | 516 |
| org/codehaus/mojo/webstart/AbstractJnlpMojo.java | 802 |
{
// TODO: scope handler
// Include runtime and compile time libraries
if ( !Artifact.SCOPE_SYSTEM.equals( artifact.getScope() ) &&
!Artifact.SCOPE_PROVIDED.equals( artifact.getScope() ) &&
!Artifact.SCOPE_TEST.equals( artifact.getScope() ) )
{
String type = artifact.getType();
if ( "jar".equals( type ) || "ejb-client".equals( type ) )
{
// FIXME when signed, we should update the manifest.
// see http://www.mail-archive.com/turbine-maven-dev@jakarta.apache.org/msg08081.html
// and maven1: maven-plugins/jnlp/src/main/org/apache/maven/jnlp/UpdateManifest.java
// or shouldn't we? See MOJO-7 comment end of October.
final File toCopy = artifact.getFile();
if ( toCopy == null )
{
getLog().error( "artifact with no file: " + artifact );
getLog().error( "artifact download url: " + artifact.getDownloadUrl() );
getLog().error( "artifact repository: " + artifact.getRepository() );
getLog().error( "artifact repository: " + artifact.getVersion() );
throw new IllegalStateException(
"artifact " + artifact + " has no matching file, why? Check the logs..." );
}
// check jar is signed
boolean jarSigned = isJarSigned( toCopy ); | |