PR: MPARTIFACT-59

Make deploying a timestamped SNAPSHOT artifact configurable.

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@350085 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
ltheussl committed 2005-12-01 00:36:12 +00:00
1 parent f796377f4d
commit 101c548127
5 files changed
+23 -6

No files matched your search

@@ -256,8 +256,13 @@ public class DefaultArtifactDeployer
srcFiles.add( snapshotVersionFile );
destFiles.add( snapshotVersionsFilename );
srcFiles.add( file );
destFiles.add( handler.constructRepositoryFullPath( type, project, v ) );
String deployTimestamp =
(String) project.getContext().getVariable( "maven.deploy.timestamps" );
if ( deployTimestamp.equals("true") )
{
srcFiles.add( file );
destFiles.add( handler.constructRepositoryFullPath( type, project, v ) );
}
}
// trick add special values to context for default repository;