package saker.build.file.content
Functional interface for executing content updating.
The instance should store the target location it updates to.
public default Set< | Gets the posix file permissions that are to be expected for the synchronized file to have. |
public void | update() Executes the updating of the contents of the file. |
public default boolean | Executes the updating of the contents of the file, optionally writing the contents to the argument stream
simultaneously. |
@RMIWrap(saker.build.util.rmi.EnumSetRMIWrapper.class)
Gets the posix file permissions that are to be expected for the synchronized file to have.
If this method returns non-null
then the build system will expect the returned posix file
permissions to be present on the synchronized file.
These are used when detecting changes in the files during incremental builds. If the underlying file system supports posix file permissions, and they mismatch with the expected permissions, then a change in the file contents will be detected.
The posix file permissions that is expected from the synchronized file or
null
if none.saker.build 0.8.13
Executes the updating of the contents of the file.
IOExceptionIn case of I/O error.
Executes the updating of the contents of the file, optionally writing the contents to the argument stream
simultaneously.
Writing the contents to the argument stream is optional, the implementation should update the file contents as it would in update().
The default implementation calls update() and returns false
.
osThe stream to optionally write the contents to.
true
if the contents were written to the argument stream as well.IOExceptionIn case of I/O error.
SecondaryStreamExceptionIn case of I/O error during writing to the additional stream. The cause of the exception must be
the originating exception.