Automatic configuration of the Patching Tool that generates an installation
profile at the current path. The file will be [profile_name].properties.

Synopsis:
patching-tool [profile_name] auto-discovery [path_to_Liferay_installation] [binary|source]

As a Patching Tool command it is preceeded by the [profile_name] and it takes
two optional arguments, the second can only be used if the first exist.

All are optional. If none used, the default profile name is: "default", the
default installation path is "../" and the default patching mode is "binary"

The first argument is the [path_of_the_installation] where the tool will try to
find a Liferay installment or source.

Second the installation type. Either binary or source.
If [path_of_the_installation] points to the application server's folder,
[installation_type] parameter must be "binary" or left blank.
If [path_of_the_installation] points to the Liferay source folder,
[installation_type] parameter must be "source".

Example: "patching-tool example auto-discovery /home/$USER/liferay-src source"
This will create an example.properties file with which you will be able to patch
Liferay source in the path: /home/$USER/liferay-src