File |
Line |
org\apache\maven\plugin\eclipse\writers\EclipseAjdtWriter.java |
157 |
org\apache\maven\plugin\eclipse\writers\EclipseClasspathWriter.java |
450 |
}
else if ( dep.isReferencedProject() && config.isPde() )
{
// don't do anything, referenced projects are automatically handled by eclipse in PDE builds
return;
}
else
{
File artifactPath = dep.getFile();
if ( artifactPath == null )
{
log.error( Messages.getString( "EclipsePlugin.artifactpathisnull", dep.getId() ) ); //$NON-NLS-1$
return;
}
if ( dep.isSystemScoped() )
{
path = IdeUtils.toRelativeAndFixSeparator( config.getEclipseProjectDirectory(), artifactPath, false );
if ( log.isDebugEnabled() )
{
log.debug( Messages.getString( "EclipsePlugin.artifactissystemscoped", //$NON-NLS-1$
new Object[] { dep.getArtifactId(), path } ) );
}
|
File |
Line |
org\apache\maven\plugin\eclipse\writers\rad\RadApplicationXMLWriter.java |
398 |
org\apache\maven\plugin\eclipse\writers\wtp\EclipseWtpApplicationXMLWriter.java |
478 |
if ( newModulemapsXmlDomChildren[newIndex] == this.modulemapsXmlDomChildren[index] )
{
modulemapsXmlDom.removeChild( newIndex );
break;
}
}
}
}
for ( int index = 0; index < this.applicationXmlDomChildren.length; index++ )
{
if ( this.applicationXmlDomChildren[index] != null )
{
Xpp3Dom[] newApplicationXmlDomChildren = applicationXmlDom.getChildren();
for ( int newIndex = 0; newIndex < newApplicationXmlDomChildren.length; newIndex++ )
{
if ( newApplicationXmlDomChildren[newIndex] == this.applicationXmlDomChildren[index] )
{
applicationXmlDom.removeChild( newIndex );
break;
}
}
}
}
}
/**
* update the application.xml and the .modulemaps file for a specified dependency.all WAR an EJB dependencies will
* go in both files all others only in the modulemaps files. Webapplications contextroots are corrected to the
* contextRoot specified in the pom.
*
* @param applicationXmlDom dom-tree of application.xml
* @param modulemapXmlDom dom-tree of modulemaps
* @param dependency the eclipse dependency to handle
*/
private void updateApplicationXml( Xpp3Dom applicationXmlDom, Xpp3Dom modulemapXmlDom, IdeDependency dependency )
{
|