directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From trus...@apache.org
Subject svn commit: r368588 - /directory/sandbox/trustin/ldaps/apacheds-build/pom.xml
Date Fri, 13 Jan 2006 04:45:06 GMT
Author: trustin
Date: Thu Jan 12 20:45:03 2006
New Revision: 368588

URL: http://svn.apache.org/viewcvs?rev=368588&view=rev
Log:
Updated ApacheDS POM so it can run differently depending on JDK version


Modified:
    directory/sandbox/trustin/ldaps/apacheds-build/pom.xml

Modified: directory/sandbox/trustin/ldaps/apacheds-build/pom.xml
URL: http://svn.apache.org/viewcvs/directory/sandbox/trustin/ldaps/apacheds-build/pom.xml?rev=368588&r1=368587&r2=368588&view=diff
==============================================================================
--- directory/sandbox/trustin/ldaps/apacheds-build/pom.xml (original)
+++ directory/sandbox/trustin/ldaps/apacheds-build/pom.xml Thu Jan 12 20:45:03 2006
@@ -19,15 +19,70 @@
       <version>0.9.4-SNAPSHOT</version>
     </dependency>
   </dependencies>
-  
-  <modules>
-    <module>../apacheds</module>
-    <module>../apacheds-shared</module>
-    <module>../apacheds-plugin</module>
-    <module>../apacheds-core-unit</module>
-    <module>../apacheds-server</module>
-    <module>../apacheds-server-ssl</module>
-    <module>../apacheds-server-unit</module>
-    <module>../apacheds-server-main</module>
-  </modules>
+
+  <profiles>
+    <profile>
+      <id>jdk1.5</id>
+      <activation>
+        <jdk>1.5</jdk>
+      </activation>
+      <modules>
+        <module>../apacheds</module>
+        <module>../apacheds-shared</module>
+        <module>../apacheds-plugin</module>
+        <module>../apacheds-core-unit</module>
+        <module>../apacheds-server</module>
+        <module>../apacheds-server-ssl</module>
+        <module>../apacheds-server-unit</module>
+        <module>../apacheds-server-main</module>
+      </modules>
+    </profile>
+
+    <profile>
+      <id>jdk1.4</id>
+      <activation>
+        <jdk>1.4</jdk>
+      </activation>
+      <modules>
+        <module>../apacheds</module>
+        <module>../apacheds-shared</module>
+        <module>../apacheds-plugin</module>
+        <module>../apacheds-core-unit</module>
+        <module>../apacheds-server</module>
+        <module>../apacheds-server-unit</module>
+        <module>../apacheds-server-main</module>
+      </modules>
+      <build>
+        <plugins>
+          <plugin>
+            <artifactId>maven-antrun-plugin</artifactId>
+            <executions>
+              <execution>
+                <phase>validate</phase>
+                <configuration>
+                  <tasks>
+                    <echo>
+====================================================================
+                       W A R N I N G
+                       -------------
+
+Build with 1.4 jvm will not include modules:
+ 
+ o apacheds-server-ssl
+
+Use JDK 1.5 to make sure these modules build.
+====================================================================
+                    </echo>
+                  </tasks>
+                </configuration>
+                <goals>
+                  <goal>run</goal>
+                </goals>
+              </execution>
+            </executions>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+  </profiles>
 </project>



Mime
View raw message