mirror of https://github.com/apache/maven.git
o formatting and note on where special properties should be injected.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/branches/MNG-2766@769684 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
be02d72fe6
commit
260db144b1
|
@ -400,17 +400,20 @@ public class DefaultMavenProjectBuilder
|
||||||
{
|
{
|
||||||
model = domainModel.getModel();
|
model = domainModel.getModel();
|
||||||
}
|
}
|
||||||
catch (IOException e)
|
catch ( IOException e )
|
||||||
{
|
{
|
||||||
throw new ProjectBuildingException("", e.getMessage());
|
throw new ProjectBuildingException( "", e.getMessage() );
|
||||||
}
|
}
|
||||||
|
|
||||||
String projectId = safeVersionlessKey( model.getGroupId(), model.getArtifactId() );
|
String projectId = safeVersionlessKey( model.getGroupId(), model.getArtifactId() );
|
||||||
|
|
||||||
Properties props = new Properties(config.getExecutionProperties());
|
Properties props = new Properties( config.getExecutionProperties() );
|
||||||
|
|
||||||
|
//TODO: this magical property should not be placed in here in the middle of the project builder. move somewhere out to
|
||||||
|
// the front-end where they can all be collected.
|
||||||
if ( config.getBuildStartTime() != null )
|
if ( config.getBuildStartTime() != null )
|
||||||
{
|
{
|
||||||
props.put("${build.timestamp}", new SimpleDateFormat( "yyyyMMdd-hhmm" ).format( config.getBuildStartTime() ) );
|
props.put( "${build.timestamp}", new SimpleDateFormat( "yyyyMMdd-hhmm" ).format( config.getBuildStartTime() ) );
|
||||||
}
|
}
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
@ -419,11 +422,10 @@ public class DefaultMavenProjectBuilder
|
||||||
catch ( IOException e )
|
catch ( IOException e )
|
||||||
{
|
{
|
||||||
|
|
||||||
throw new ProjectBuildingException(projectId, "", projectDescriptor, e);
|
throw new ProjectBuildingException( projectId, "", projectDescriptor, e );
|
||||||
}
|
}
|
||||||
|
|
||||||
return model;
|
return model;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private MavenProject fromDomainModelToMavenProject(Model model, File parentFile, ProjectBuilderConfiguration config, File projectDescriptor)
|
private MavenProject fromDomainModelToMavenProject(Model model, File parentFile, ProjectBuilderConfiguration config, File projectDescriptor)
|
||||||
|
|
Loading…
Reference in New Issue