mirror of https://github.com/apache/maven.git
PR: MNG-996
Submitted by: Johnny R. Ruiz III add a project for the reactor root, excluding children git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@330382 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
350076bdb9
commit
bcb11b18fc
|
@ -241,11 +241,16 @@ public class IdeaMojo
|
||||||
{
|
{
|
||||||
removeOldElements( modules, "module" );
|
removeOldElements( modules, "module" );
|
||||||
|
|
||||||
|
Xpp3Dom m = createElement( modules, "module" );
|
||||||
|
String projectPath = new File( project.getBasedir(),
|
||||||
|
project.getArtifactId() + ".iml" ).getAbsolutePath();
|
||||||
|
m.setAttribute( "filepath", "$PROJECT_DIR$/" + toRelative( project.getBasedir(), projectPath ) );
|
||||||
|
|
||||||
for ( Iterator i = project.getCollectedProjects().iterator(); i.hasNext(); )
|
for ( Iterator i = project.getCollectedProjects().iterator(); i.hasNext(); )
|
||||||
{
|
{
|
||||||
MavenProject p = (MavenProject) i.next();
|
MavenProject p = (MavenProject) i.next();
|
||||||
|
|
||||||
Xpp3Dom m = createElement( modules, "module" );
|
m = createElement( modules, "module" );
|
||||||
String modulePath = new File( p.getBasedir(), p.getArtifactId() + ".iml" ).getAbsolutePath();
|
String modulePath = new File( p.getBasedir(), p.getArtifactId() + ".iml" ).getAbsolutePath();
|
||||||
m.setAttribute( "filepath", "$PROJECT_DIR$/" + toRelative( project.getBasedir(), modulePath ) );
|
m.setAttribute( "filepath", "$PROJECT_DIR$/" + toRelative( project.getBasedir(), modulePath ) );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue