This is maven project so basic maven commands are enough to build this.
After successful maven commands the jar file will be placed in target folder. This jar file will take the current folder as base folder. If you want to run in different machine, just copy and paste the jar file to the destination machine.
To run and test, Keep your target folder in the same place where the jar is executed.
"foldername" and "texttosearch" inputs are mandatory to search. You have to enter the foldername and texttosearch if you miss to give in the command.
As third party libraries are restricted I removed junit and wrote simple java test cases. It will be executed while building project through maven. Test code available in Cloud_Lock\cloud-lock\src\test\java\com\cl\sample\TextFinderTest.java file.
Clone this project to you local.
Move to the project
There is a sample folder "samplefolder" in the project.
Command to execute the jar for the sample folder
<abspath>\Cloud_Lock\cloud-lock\samplefolder\empty.out:MISS
<abspath>\Cloud_Lock\cloud-lock\samplefolder\sample\empty.out:MISS
<abspath>\Cloud_Lock\cloud-lock\samplefolder\sample\Hit.cap:MISS
<abspath>\Cloud_Lock\cloud-lock\samplefolder\sample\hit.txt:MISS
<abspath>\Cloud_Lock\cloud-lock\samplefolder\sample\miss.me:MISS
<abspath>\Cloud_Lock\cloud-lock\samplefolder\sample.txt:HIT
<abspath>\Cloud_Lock\cloud-lock\samplefolder\subfolder\sample.txt:MISSShowing absolute path to know the exact subfolder location