| /******************************************************************************* |
| * Copyright (c) 2012 Sonatype Inc. and others. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * Sonatype Inc. - initial API and implementation |
| *******************************************************************************/ |
| package org.eclipse.tycho.buildversion; |
| |
| import java.util.Date; |
| |
| import org.apache.maven.execution.MavenSession; |
| import org.apache.maven.plugin.MojoExecution; |
| import org.apache.maven.plugin.MojoExecutionException; |
| import org.apache.maven.project.MavenProject; |
| |
| public interface BuildTimestampProvider { |
| |
| /** |
| * Returns build timestamp of the current project. |
| */ |
| public Date getTimestamp(MavenSession session, MavenProject project, MojoExecution execution) |
| throws MojoExecutionException; |
| |
| } |