Skip to content
Permalink
Browse files
[FIXED JENKINS-8573] maven.build.timestamp property is not available …
…during maven build
  • Loading branch information
olamy committed Mar 17, 2011
1 parent a1e0ac0 commit d4f8020ad40f0ad5b715e083981b1d63cd518664
@@ -22,8 +22,10 @@
import java.io.File;
import java.io.FileNotFoundException;
import java.io.PrintStream;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Date;
import java.util.List;
import java.util.Properties;
import java.util.StringTokenizer;
@@ -86,6 +88,8 @@
private PlexusContainer plexusContainer;

private DefaultSecDispatcher dispatcher;

static final String DEFAULT_BUILD_TIMESTAMP_FORMAT = "yyyyMMdd-HHmm";

This comment has been minimized.

Copy link
@batkinson

batkinson Feb 18, 2013

Member

This doesn't respect maven.build.timestamp.format, which means Jenkins-Maven won't act like straight Maven.


public void initialize()
throws InitializationException
@@ -342,6 +346,7 @@ static void populateProperties( CommandLine commandLine, Properties systemProper
}

systemProperties.putAll( System.getProperties() );
systemProperties.put( "maven.build.timestamp", new SimpleDateFormat(DEFAULT_BUILD_TIMESTAMP_FORMAT).format( new Date() ) );
}

private static void setCliProperty( String property, Properties properties )

1 comment on commit d4f8020

@abisain

This comment has been minimized.

Copy link

@abisain abisain commented on d4f8020 Jul 19, 2013

Is there a plan to fix this? This code is ignoring the timestamp.format specified by the user in pom files.

Please sign in to comment.