Fallback on yaz-config --include error
authorJakub Skoczen <jakub@indexdata.dk>
Tue, 1 Apr 2014 18:11:11 +0000 (20:11 +0200)
committerJakub Skoczen <jakub@indexdata.dk>
Tue, 1 Apr 2014 18:11:11 +0000 (20:11 +0200)
pom.xml

diff --git a/pom.xml b/pom.xml
index 9306750..3126e74 100644 (file)
--- a/pom.xml
+++ b/pom.xml
                 <configuration>
                   <tasks>
                     <exec executable="${yaz.config}" 
-                      outputproperty="yaz-config.include">
+                      outputproperty="yaz-config.include"
+                      errorproperty="yaz-config.error">
                       <arg value="--include" />
                     </exec>
+                    <echo 
+                      message="yaz-config error (if any): ${yaz-config.error}"/>
                     <condition property="yaz.include" 
                       value="-I/usr/include"
                       else="${yaz-config.include}">