Class MkfileCommand
- java.lang.Object
-
- org.nuxeo.runtime.deployment.preprocessor.install.commands.MkfileCommand
-
- All Implemented Interfaces:
Command
public class MkfileCommand extends Object implements Command
- Author:
- Bogdan Stefanescu
-
-
Constructor Summary
Constructors Constructor Description MkfileCommand(Path path, byte[] content)
Constructor for mkfile command.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
exec(CommandContext ctx)
String
toString()
String
toString(CommandContext ctx)
-
-
-
Field Detail
-
path
protected final Path path
-
content
protected final byte[] content
-
-
Constructor Detail
-
MkfileCommand
public MkfileCommand(Path path, byte[] content)
Constructor for mkfile command.- Parameters:
path
- the path relative to the root containercontent
- the file content as an array of bytes
-
-
Method Detail
-
exec
public void exec(CommandContext ctx) throws IOException
- Specified by:
exec
in interfaceCommand
- Throws:
IOException
-
toString
public String toString(CommandContext ctx)
-
-