From ee07531e256b9c02992e41fba15dc1c6fad06ba1 Mon Sep 17 00:00:00 2001 From: David Ehrmann Date: Thu, 7 May 2015 13:01:27 -0700 Subject: [PATCH] Assert that includePath elements are directories --- src/main/java/com/nsegment/thrift/ThriftTask.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/com/nsegment/thrift/ThriftTask.java b/src/main/java/com/nsegment/thrift/ThriftTask.java index ca8fd9a..f2d8007 100644 --- a/src/main/java/com/nsegment/thrift/ThriftTask.java +++ b/src/main/java/com/nsegment/thrift/ThriftTask.java @@ -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");