Skip to content

Commit

Permalink
Assert that includePath elements are directories
Browse files Browse the repository at this point in the history
  • Loading branch information
ehrmann committed May 7, 2015
1 parent 09e58f7 commit ee07531
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/com/nsegment/thrift/ThriftTask.java
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ public void execute() throws BuildException {
}

File file = ((FileResource)resource).getFile();
if (!file.isDirectory()) {
throw new BuildException("includePath element '" + resource.getName() + "' isn't a directory");
}

try {
parameters.add("-I");
Expand Down

0 comments on commit ee07531

Please sign in to comment.