Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #35 from mpoignet/master

resolving issue #34
  • Loading branch information...
commit 3d471e00a67ca52953d60bd9860a4586c2284810 2 parents 42dd298 + c7f943d
@mpoignet mpoignet authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 src/main/java/com/antelink/sourcesquare/SourceSquare.java
View
7 src/main/java/com/antelink/sourcesquare/SourceSquare.java
@@ -76,9 +76,14 @@ public static void main(String[] args) {
ServerController.bind(eventBus);
if (args.length != 0) {
-
final File toScan = new File(args[0]);
+ if (!toScan.isDirectory()) {
+ logger.error("The argument is not a directory");
+ logger.info("exiting SourceSquare");
+ System.exit(0);
+ }
+
eventBus.fireEvent(new StartScanEvent(toScan));
System.setProperty("apple.laf.useScreenMenuBar", "true");
Please sign in to comment.
Something went wrong with that request. Please try again.