public class Touch extends ClientApplication
This application takes a list of remote files as arguments. For each remote file that does not exist, the application attempts to create it.
EXIT_FAILURE, EXIT_SUCCESS
Constructor and Description |
---|
Touch() |
Modifier and Type | Method and Description |
---|---|
void |
coreLogic(java.lang.String[] arguments)
Application main method.
|
static void |
main(java.lang.String[] arguments)
Application entry point.
|
private void |
touch(java.lang.String remote_file)
Attempts to create a remote file, if it does not exist.
|
fatal, report, report, run
public static void main(java.lang.String[] arguments)
public void coreLogic(java.lang.String[] arguments) throws ApplicationFailure
coreLogic
in class ClientApplication
arguments
- Command line arguments.ApplicationFailure
- When an error occurs. If this exception is
thrown, its message string is printed to the
standard error stream, and the application's
exit status is non-zero.private void touch(java.lang.String remote_file) throws ApplicationFailure
This method is called for each command line argument.
remote_file
- Path to the file to be created.ApplicationFailure
- If the file does not yet exist and cannot be
created.