You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by pa...@apache.org on 2010/11/25 10:00:42 UTC

svn commit: r1038962 - /directory/shared/trunk/ldap-schema/pom.xml

Author: pamarcelot
Date: Thu Nov 25 09:00:42 2010
New Revision: 1038962

URL: http://svn.apache.org/viewvc?rev=1038962&view=rev
Log:
Fixed schema index file generation on Windows.

Modified:
    directory/shared/trunk/ldap-schema/pom.xml

Modified: directory/shared/trunk/ldap-schema/pom.xml
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap-schema/pom.xml?rev=1038962&r1=1038961&r2=1038962&view=diff
==============================================================================
--- directory/shared/trunk/ldap-schema/pom.xml (original)
+++ directory/shared/trunk/ldap-schema/pom.xml Thu Nov 25 09:00:42 2010
@@ -80,7 +80,7 @@
               <target>
                 <!-- Various properties -->
                 <property name="schema.index" value="target/classes/META-INF/apacheds-schema.index"/>
-                <property name="schema.location" value="src/main/resources/"/>
+                <property name="schema.location" value="src${file.separator}main${file.separator}resources${file.separator}"/>
               
                 <!-- Listing all LDIF files under schema location -->
                 <path id="schema.files.path">
@@ -94,8 +94,12 @@
                 <!-- Creating the schema index file -->
                 <echo message="${schema.files}" file="${schema.index}"/>
                 <replace file="${schema.index}">
-                  <replacefilter token=":" value="${line.separator}"/>
-                  <replacefilter token="${basedir}/${schema.location}" value=""/>
+                  <!-- Replace the path separator (':' on Unix, ';' on Windows) by a new line -->
+                  <replacefilter token="${path.separator}" value="${line.separator}"/>
+                  <!-- Remove the full path of the schema location to get relative paths for files -->
+                  <replacefilter token="${basedir}${file.separator}${schema.location}" value=""/>
+                  <!-- Replace the file separator ('/' on Unix, '\' on Windows) by a '/' - Useful on Windows -->
+                  <replacefilter token="${file.separator}" value="/"/>
                 </replace>
               </target>
             </configuration>