Skip to content

Commit

Permalink
Add README.
Browse files Browse the repository at this point in the history
  • Loading branch information
Zaxar163 committed Oct 15, 2019
1 parent 059909e commit 6c13d35
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# HackFinder
* Usage: java -jar HackFinder.jar <mods dir> <log file>
4 changes: 4 additions & 0 deletions src/main/java/ru/zaxar163/hackfinder/ModScan.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@

public class ModScan {
public static void main(final String[] args) throws FileNotFoundException {
if (args.length < 2) {
System.out.println("Usage: <mods dir> <log file>");
System.exit(1);
}
final File mods = new File(args[0]);
try (PrintStream log = new PrintStream(new FileOutputStream(args[1]))) {
Arrays.stream(mods.listFiles()).filter(e -> e.getName().endsWith(".jar") || e.getName().endsWith(".zip"))
Expand Down

0 comments on commit 6c13d35

Please sign in to comment.