JPlag
JPlag copied to clipboard
improve usage info with -l flag
At https://github.com/jplag/JPlag/wiki/1.-How-to-Use-JPlag it says:
To run jplag normally on a set of submissions run: java -jar jplag.jar <language> <path/to/submissions>
It took me very long (I'm fairly new to CLI) to find out what I really need is
java -jar jplag.jar -l <language> <path/to/submissions>
I suggest to include the -l bit in the wiki page.
Hi brry,
With the current version of the CLI the -l option is not the preferred way to configure a language. The preferred way is using the languages as sub-commands. Therefore, the wiki entry is correct. The full syntax is: java -jar jplag.jar <jplagOptions> <language> <languageOptions> <path/to/submissions>. If that is not working for you with version 6.0.0 it may be a bug. In that case, could you please provide some details about the issue so we can reproduce it?
Best Regards
In the exam folder, I used rightclick - open in Terminal
PS C:\path> java -jar jplag.jar rlang res8 plag8\
2025-03-07-07:46:39_563 [INFO] JPlagRunner - ReportViewer started on port http://localhost:1996
Press Enter key to exit...
2025-03-07-07:46:39_990 [WARN] ReportViewer - No response data found for path: results.zip
The Viewer opens in the browser but is empty. No res8.zip file is generated.
In my memory, there also was an error last time, but I cannot reproduce it.
The following works fine for me:
java -jar jplag.jar -l rlang -r res8 plag8\
(By the way, the title is still results.zip instead of res8.zip).
I use jplag-6.0.0-jar-with-dependencies.
I'm on Windows 11 Pro Version 24H2, set up 3 months ago.
$PSVersionTable gives me PSVersion 5.1.26100.2161. I guess that's outdated, but it came with windows and since I dont't normally use it, I would have never checked for that.
Thank you for reporting this. This is indeed an issue with the CLI currently. As a work around we will adapt the wiki. As a log term solution, the CLI will be fixed.