Usage
Patu Digua can be used:
- From the command line interface
- In your java program
- From the graphical interface
Command line interface
Patu digua can be run from the command line interface. The command line interface options are the following:
- -s/--src The source to be processed, which is usually a directory but can be a file as well.
- -d/--dest The destination where the processed files or directories are stored. If the source is a file this can be a file or a directory. If the source is a directory, the destination must be a directory. If this a relative path, then it is relative to the source directory, not to the current folder.
- -c/--conf The configuration file.
- # -n/--nogui If this is specified, Patu Digua does not start in GUI mode, but starts processing right away.
Java Integration
Patu digua can be easily integrated in your Java program. And it takes only one line of code:
new Digua("/path/to/config.file").run();
It will load the specified configuration file and it will run the entire compression/obfuscation. If you want to specify another source directory/file than the one in the configuration file:
XProperties options = new XProperties();
options.load("/path/to/config.file");
options.put("src", "/path/to/source.file");
Digua digua = new Digua(options);
digua.run();
In the same way you can specify other options too. For detailed specification please consult the Configuration section. The entire process can be run in a separate thread:
new Thread(new Digua("/path/to/config.file")).start();