Package io.fabric8.maven.docker.assembly
Class AssemblyFiles
- java.lang.Object
-
- io.fabric8.maven.docker.assembly.AssemblyFiles
-
public class AssemblyFiles extends Object
Collection of assembly files which need to be monitored for checking when to rebuild an image.- Since:
- 15/06/15
- Author:
- roland
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAssemblyFiles.Entry
-
Constructor Summary
Constructors Constructor Description AssemblyFiles(File assemblyDirectory)Create a collection of assembly files
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddEntry(File srcFile, File destFile)Add a entry to the list of assembly files which possible should be monitoredFilegetAssemblyDirectory()Return destination directory where the files are copied intoList<AssemblyFiles.Entry>getUpdatedEntriesAndRefresh()Get the list of all updated entries i.e.booleanisEmpty()Returns true if there are no entries
-
-
-
Constructor Detail
-
AssemblyFiles
public AssemblyFiles(File assemblyDirectory)
Create a collection of assembly files- Parameters:
assemblyDirectory- directory into which the files are copied
-
-
Method Detail
-
addEntry
public void addEntry(File srcFile, File destFile)
Add a entry to the list of assembly files which possible should be monitored- Parameters:
srcFile- source file to monitor. The source file must exist.destFile- the destination to which it is eventually copied. The destination file must be relative.
-
getUpdatedEntriesAndRefresh
public List<AssemblyFiles.Entry> getUpdatedEntriesAndRefresh()
Get the list of all updated entries i.e. all entries which have modification date which is newer than the last time check. ATTENTION: As a side effect this method also updates the timestamp of entries.- Returns:
- list of all entries which has been updated since the last call to this method or an empty list
-
isEmpty
public boolean isEmpty()
Returns true if there are no entries
-
getAssemblyDirectory
public File getAssemblyDirectory()
Return destination directory where the files are copied into- Returns:
- top-level directory holding the assembled files
-
-