Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions src/main/java/org/codehaus/mojo/build/CreateMojo.java
Original file line number Diff line number Diff line change
Expand Up @@ -515,14 +515,13 @@ else if ( s.startsWith( "buildNumber" ) )
// Add the revision and timestamp properties to each project in the reactor
if ( getRevisionOnlyOnce && reactorProjects != null )
{
Iterator projIter = reactorProjects.iterator();
while ( projIter.hasNext() )
for ( Object nextProjObj : reactorProjects )
{
MavenProject nextProj = (MavenProject) projIter.next();
MavenProject nextProj = (MavenProject) nextProjObj;
if ( revision != null )
{
project.getProperties().put( buildIdPropertyName, revision );
project.getProperties().put( buildNumberPropertyName, formatBuildNumber(commitNumber) );
nextProj.getProperties().put( buildIdPropertyName, revision );
nextProj.getProperties().put( buildNumberPropertyName, formatBuildNumber(commitNumber) );
}
nextProj.getProperties().put( this.timestampPropertyName, timestamp );
nextProj.getProperties().put( this.scmBranchPropertyName, scmBranch );
Expand Down Expand Up @@ -1056,4 +1055,4 @@ public List<String> getLines() {
}


}
}