- Download source files using this command:
git clone https://github.com/5aboteur/cft-task.git
- Go to the
target
directory and run:java -jar <JAR> <OPTIONS>
, whereJAR
is the .jar file andOPTIONS
are
<path>
-- path to the directory with files you want to sort;--out-prefix=<pfx>
-- string that will be added as prefix to the filename;--content-type=<type>
-- type of content you want to sort (i
for integers,s
for strings);--sort-mode=<mode>
-- sort order (a
for ascending,d
for descending)--workers=<n>
-- number of worker threads (default=2).
Or you can open that project in Maven environment and build it by yourself.
The .jar file built for targets that have version of Java >= 1.8 and tested with the following version:
$ java -version
openjdk version "11.0.3" 2019-04-16
OpenJDK Runtime Environment (build 11.0.3+7-Ubuntu-1ubuntu218.04.1)
OpenJDK 64-Bit Server VM (build 11.0.3+7-Ubuntu-1ubuntu218.04.1, mixed mode, sharing)