Unix uses ${yaz.config} path
authorJakub Skoczen <jakub@indexdata.dk>
Thu, 7 Jun 2012 08:59:33 +0000 (10:59 +0200)
committerJakub Skoczen <jakub@indexdata.dk>
Thu, 7 Jun 2012 08:59:33 +0000 (10:59 +0200)
linux/pom.xml
pom.xml

index ec77628..2dc0cd5 100644 (file)
             </goals>
             <configuration>
               <tasks>
-                <exec executable="${yaz.path}yaz-config" outputproperty="yaz.cflags">
+                <exec executable="${yaz.config}" outputproperty="yaz.cflags">
                   <arg value="--cflags" />
                 </exec>
                 <echo message="YAZ CFLAGS: ${yaz.cflags}"/>
-                <exec executable="${yaz.path}yaz-config" outputproperty="yaz.libs">
+                <exec executable="${yaz.config}" outputproperty="yaz.libs">
                   <arg value="--libs" />
                 </exec>
                 <echo message="YAZ LIBS: ${yaz.libs}"/>
diff --git a/pom.xml b/pom.xml
index b5439c9..57ac9cb 100644 (file)
--- a/pom.xml
+++ b/pom.xml
       </activation>
       <properties>
         <platform>win32</platform>
-        <yaz.include>C:\Program Files\YAZ\include</yaz.include>
         <yaz.path>C:\Program Files\YAZ\</yaz.path>
+        <!-- needed by swig -->
+        <yaz.include>-I${yaz.path}\include</yaz.include>
       </properties>
       <modules>
         <module>win32</module>
       </activation>
       <properties>
         <platform>linux</platform>
-        <!-- must include trailing slash if specified-->
-        <yaz.path></yaz.path>
+        <!-- yaz-config executable -->
+        <yaz.config>yaz-config</yaz.config>
         <javahOS>linux</javahOS>
         <jdkIncludePath>${java.home}/../include</jdkIncludePath>
       </properties>
                 </goals>
                 <configuration>
                   <tasks>
-                    <exec executable="${yaz.path}yaz-config" 
+                    <exec executable="${yaz.config}" 
                       outputproperty="yaz.include">
                       <arg value="--include" />
                     </exec>