Allon Mureinik has uploaded a new change for review.

Change subject: core: check for duplicate upgrade scripts on unix
......................................................................

core: check for duplicate upgrade scripts on unix

The check for duplicate upgrade scripts is implemented as a /bin/bash
script, so there is no point on running it on non-unix machines.

Change-Id: I2f997b63b3342d9fbfe972d6aa2ba7cb29d82ba6
Signed-off-by: Allon Mureinik <[email protected]>
---
M backend/manager/dbscripts/pom.xml
1 file changed, 31 insertions(+), 21 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/92/8192/1

diff --git a/backend/manager/dbscripts/pom.xml 
b/backend/manager/dbscripts/pom.xml
index 01103c5..2e0a7e2 100644
--- a/backend/manager/dbscripts/pom.xml
+++ b/backend/manager/dbscripts/pom.xml
@@ -10,25 +10,35 @@
   <packaging>pom</packaging>
   <name>oVirt DB Scripts</name>
   <description>parent POM for all oVirt Database scripts</description>
-<build>
-    <plugins>
-      <plugin>
-        <groupId>org.codehaus.mojo</groupId>
-        <artifactId>exec-maven-plugin</artifactId>
-        <version>1.2</version>
-        <executions>
-          <execution>
-            <id>Check For Duplicate Upgrade Scripts</id>
-            <phase>package</phase>
-            <goals>
-              <goal>exec</goal>
-            </goals>
-          </execution>
-        </executions>
-        <configuration>
-          
<executable>${project.basedir}/check_for_duplicate_upgrade_scripts.sh</executable>
-        </configuration>
-      </plugin>
-    </plugins>
-  </build>
+  <profiles>
+    <profile>
+      <id>unix</id>
+      <activation>
+        <os>
+          <family>!windows</family>
+        </os>
+      </activation>
+         <build>
+           <plugins>
+             <plugin>
+               <groupId>org.codehaus.mojo</groupId>
+               <artifactId>exec-maven-plugin</artifactId>
+               <version>1.2</version>
+               <executions>
+                 <execution>
+                   <id>Check For Duplicate Upgrade Scripts</id>
+                   <phase>package</phase>
+                   <goals>
+                     <goal>exec</goal>
+                   </goals>
+                 </execution>
+               </executions>
+               <configuration>
+                 
<executable>${project.basedir}/check_for_duplicate_upgrade_scripts.sh</executable>
+               </configuration>
+             </plugin>
+           </plugins>
+         </build>
+    </profile>
+  </profiles>
 </project>


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I2f997b63b3342d9fbfe972d6aa2ba7cb29d82ba6
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Allon Mureinik <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to