directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject directory-kerby git commit: DIRKRB-635 - Backends should be optional when building kerby. Thanks to Lin Zeng.
Date Mon, 24 Jul 2017 08:35:15 GMT
Repository: directory-kerby
Updated Branches:
  refs/heads/trunk cc107ac19 -> 025cd534d


DIRKRB-635 - Backends should be optional when building kerby. Thanks to Lin Zeng.


Project: http://git-wip-us.apache.org/repos/asf/directory-kerby/repo
Commit: http://git-wip-us.apache.org/repos/asf/directory-kerby/commit/025cd534
Tree: http://git-wip-us.apache.org/repos/asf/directory-kerby/tree/025cd534
Diff: http://git-wip-us.apache.org/repos/asf/directory-kerby/diff/025cd534

Branch: refs/heads/trunk
Commit: 025cd534d94317809c8e82cf8d5ad36f510a82d9
Parents: cc107ac
Author: Colm O hEigeartaigh <coheigea@apache.org>
Authored: Mon Jul 24 09:26:46 2017 +0100
Committer: Colm O hEigeartaigh <coheigea@apache.org>
Committed: Mon Jul 24 09:26:46 2017 +0100

----------------------------------------------------------------------
 BUILDING.txt          |  4 +++-
 kerby-backend/pom.xml | 31 ++++++++++++++++++++++++-------
 2 files changed, 27 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/directory-kerby/blob/025cd534/BUILDING.txt
----------------------------------------------------------------------
diff --git a/BUILDING.txt b/BUILDING.txt
index 47c1e7b..9948833 100644
--- a/BUILDING.txt
+++ b/BUILDING.txt
@@ -24,8 +24,10 @@ It should be run at the top directory of Kerby.
 ###Build options:
 
 * To run findbugs without running tests : mvn clean package -DskipTests findbugs:findbugs
[site]
-* Building distributions  without running tests : mvn package -Pdist -DskipTests
+* Building distributions without running tests : mvn package -Pdist -DskipTests
   (tar package in /kerby/kerby-dist/kdc-dist/target/ & /kerby/kerby-dist/tool-dist/target/)
 * Generate javadoc without running tests: mvn clean package -DskipTests javadoc:javadoc
 * Checkstyle & PMD checks are run by default. To build quickly and prevent them from
running,
   add option [-Pnochecks], for example, mvn package -Pnochecks
+* All backends are built by default. To skip most of the backends, and just build the json
backend,
+  add option [-PskipBackends], for example, mvn package -PskipBackends.

http://git-wip-us.apache.org/repos/asf/directory-kerby/blob/025cd534/kerby-backend/pom.xml
----------------------------------------------------------------------
diff --git a/kerby-backend/pom.xml b/kerby-backend/pom.xml
index 0811a96..bc0c52c 100644
--- a/kerby-backend/pom.xml
+++ b/kerby-backend/pom.xml
@@ -25,13 +25,6 @@
   <name>Kerby Backend</name>
   <packaging>pom</packaging>
 
-  <modules>
-    <module>ldap-backend</module>
-    <module>mavibot-backend</module>
-    <module>json-backend</module>
-    <module>zookeeper-backend</module>
-  </modules>
-
   <dependencies>
     <dependency>
       <groupId>org.apache.kerby</groupId>
@@ -39,4 +32,28 @@
       <version>${project.version}</version>
     </dependency>
   </dependencies>
+
+  <profiles>
+    <profile>
+      <id>skipBackends</id>
+      <activation>
+        <activeByDefault>false</activeByDefault>
+      </activation>
+      <modules>
+        <module>json-backend</module>
+      </modules>
+    </profile>
+    <profile>
+      <id>allBackends</id>
+      <activation>
+        <activeByDefault>true</activeByDefault>
+      </activation>
+      <modules>
+        <module>json-backend</module>
+        <module>ldap-backend</module>
+        <module>mavibot-backend</module>
+        <module>zookeeper-backend</module>
+      </modules>
+    </profile>
+  </profiles>
 </project>


Mime
View raw message