org.jvnet.mavenincrementalbuild.utils
Class TimestampsManager

java.lang.Object
  extended by org.jvnet.mavenincrementalbuild.utils.TimestampsManager

public class TimestampsManager
extends java.lang.Object

Managed timestamps file.

Author:
Vincent Sellier

Constructor Summary
TimestampsManager(org.apache.maven.plugin.logging.Log logger, java.lang.String directory)
          Create the TimestampFile manager.
 
Method Summary
 java.lang.Long getTimestamp(java.lang.String fileName)
           
 void loadPreviousTimestamps()
           
 void saveTimestamps()
           
 void setTimestamp(java.lang.String fileName, java.lang.Long timestamp)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimestampsManager

public TimestampsManager(org.apache.maven.plugin.logging.Log logger,
                         java.lang.String directory)
                  throws java.io.IOException
Create the TimestampFile manager.

Parameters:
directory - the dir where the timestamps file will be stored
Throws:
java.io.IOException
Method Detail

loadPreviousTimestamps

public void loadPreviousTimestamps()
                            throws java.io.IOException
Throws:
java.io.IOException

saveTimestamps

public void saveTimestamps()
                    throws java.io.IOException
Throws:
java.io.IOException

getTimestamp

public java.lang.Long getTimestamp(java.lang.String fileName)

setTimestamp

public void setTimestamp(java.lang.String fileName,
                         java.lang.Long timestamp)


Copyright © 2007-2009. All Rights Reserved.