directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r1038659 - in /directory/shared/trunk/ldap-schema: pom.xml src/main/resources/META-INF/
Date Wed, 24 Nov 2010 16:04:42 GMT
Author: pamarcelot
Date: Wed Nov 24 16:04:42 2010
New Revision: 1038659

URL: http://svn.apache.org/viewvc?rev=1038659&view=rev
Log:
Removed the static 'apacheds-schema.index' file. Used the 'maven-antrun-plugin' to generate
one automatically to 'target/classes/META-INF'.

Removed:
    directory/shared/trunk/ldap-schema/src/main/resources/META-INF/
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=1038659&r1=1038658&r2=1038659&view=diff
==============================================================================
--- directory/shared/trunk/ldap-schema/pom.xml (original)
+++ directory/shared/trunk/ldap-schema/pom.xml Wed Nov 24 16:04:42 2010
@@ -70,6 +70,41 @@
           </systemPropertyVariables>
         </configuration>
       </plugin>
+      <plugin>
+        <artifactId>maven-antrun-plugin</artifactId>
+        <version>1.6</version>
+        <executions>
+          <execution>
+            <phase>generate-resources</phase>
+            <configuration>
+              <target>
+                <!-- Various properties -->
+                <property name="schema.index" value="target/classes/META-INF/apacheds-schema.index"/>
+                <property name="schema.location" value="src/main/resources/"/>
+              
+                <!-- Listing all LDIF files under  -->
+                <path id="schema.files.path">
+                  <fileset dir="${schema.location}">
+                    <include name="**/*.ldif" />
+                    <exclude name="schema-all.ldif" />
+                  </fileset>
+                </path>
+                <property name="schema.files" refid="schema.files.path"/>
+                
+                <!-- 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>
+              </target>
+            </configuration>
+            <goals>
+              <goal>run</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
     </plugins>
   </build>
 </project>



Mime
View raw message