Martin Peřina has uploaded a new change for review.

Change subject: build: Add category to module definition
......................................................................

build: Add category to module definition

Adds a category as a parameter for jboss-modules-maven-plugin to
identify usage of a module. Category can be one of:

  common
    - module is used inside JBoss instance and in standalone tools
    - default value

  instance
    - module is used only inside JBoss instance

  standalone
    - module is used only in standalone tools

Change-Id: Ief6e14398bec4378c2153514bb69667835c3d331
Related-To: https://bugzilla.redhat.com/1109871
Signed-off-by: Martin Perina <mper...@redhat.com>
---
M 
build-tools-root/jboss-modules-maven-plugin/src/main/java/org/ovirt/engine/build/ModulesMojo.java
1 file changed, 14 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/45/32845/1

diff --git 
a/build-tools-root/jboss-modules-maven-plugin/src/main/java/org/ovirt/engine/build/ModulesMojo.java
 
b/build-tools-root/jboss-modules-maven-plugin/src/main/java/org/ovirt/engine/build/ModulesMojo.java
index 10ec253..f231089 100644
--- 
a/build-tools-root/jboss-modules-maven-plugin/src/main/java/org/ovirt/engine/build/ModulesMojo.java
+++ 
b/build-tools-root/jboss-modules-maven-plugin/src/main/java/org/ovirt/engine/build/ModulesMojo.java
@@ -77,6 +77,15 @@
     private boolean generateIndex;
 
     /**
+     * Category of the module:
+     *     common     - modules that are used inside JBoss instance and in 
standalone tools
+     *     instance   - modules that are used only inside JBoss instance
+     *     standalone - modules that are used only in standalone tools
+     */
+    @Parameter(property = "category", defaultValue="common")
+    private String category;
+
+    /**
      * The temporary directory where modules will be stored.
      */
     private File modulesDir;
@@ -134,7 +143,11 @@
 
         // Create the archive containing all the contents of the modules
         // directory:
-        File modulesArchive = new File(targetDir, 
project.getBuild().getFinalName() + "-modules.zip");
+        File modulesArchive = new File(targetDir,
+                String.format(
+                        "%s-%s-modules.zip",
+                        project.getBuild().getFinalName(),
+                        category));
         ZipArchiver modulesArchiver = new ZipArchiver();
         modulesArchiver.setDestFile(modulesArchive);
         modulesArchiver.addDirectory(modulesDir);


-- 
To view, visit http://gerrit.ovirt.org/32845
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ief6e14398bec4378c2153514bb69667835c3d331
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Martin Peřina <mper...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to