org.ops4j.pax.construct.util
Class CacheUtils

java.lang.Object
  extended by org.ops4j.pax.construct.util.CacheUtils

public final class CacheUtils
extends java.lang.Object

Various utility methods for caching files between plugins


Method Summary
static void pullFile(org.apache.maven.plugin.AbstractMojo mojo, java.lang.String key, java.io.File file)
          Restore a text-based file from the plugin context
static void pushFile(org.apache.maven.plugin.AbstractMojo mojo, java.lang.String key, java.io.File file)
          Cache a text-based file inside the plugin context
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

pushFile

public static void pushFile(org.apache.maven.plugin.AbstractMojo mojo,
                            java.lang.String key,
                            java.io.File file)
Cache a text-based file inside the plugin context

Parameters:
mojo - currently executing mojo
key - unique identifier
file - text-based file

pullFile

public static void pullFile(org.apache.maven.plugin.AbstractMojo mojo,
                            java.lang.String key,
                            java.io.File file)
Restore a text-based file from the plugin context

Parameters:
mojo - currently executing mojo
key - unique identifier
file - text-based file


Copyright © 2007-2008 OPS4J. All Rights Reserved.