Package bm.machine
Class PropertiesStateStore
java.lang.Object
bm.machine.PropertiesStateStore
- All Implemented Interfaces:
StateStore,AutoCloseable
Provides a state store kept in a single properties file.
Pro: no encoding issues with target names.
Cons: If the build process is killed with no way to execute finally blocks,
the state reached so far is not saved and will be repeated on the next run, because the state
properties file for all targets is written only at the end of the build process.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
PropertiesStateStore
- Throws:
BuildProblemException
-
-
Method Details
-
saveHash
- Specified by:
saveHashin interfaceStateStore
-
readHash
Description copied from interface:StateStoreGets a hash value for the given name.- Specified by:
readHashin interfaceStateStore- Returns:
- never
null, if no hash is available, returns an empty array.
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceStateStore- Throws:
BuildProblemException
-