All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.java.mavenincrementalbuild.utils.MapFileManager Maven / Gradle / Ivy

Go to download

The Maven Incremental Build plugin is a plugin that enable maven to recompile only what it have to when you call mvn compile (It is not necessary to call clean phase now).

The newest version!
package net.java.mavenincrementalbuild.utils;

import org.apache.maven.plugin.logging.Log;

import java.io.IOException;
import java.util.HashMap;
import java.util.Map;

/**
 * Managed timestamps file.
 *
 * @author Vincent Sellier
 */
public class MapFileManager extends FilePersistence> {

    /**
     * Create the MapFile manager.
     *
     * @param directory the dir where the timestamps file will be stored
     * @throws IOException
     */
    public MapFileManager(Log logger, String directory, String fileName) throws IOException {
        super(logger, directory, fileName);
        data = new HashMap();
    }


    public V get(K key) {
        return data.get(key);
    }

    public void set(K key, V value) {
        data.put(key, value);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy