Skip to content

Commit 7d40a7e

Browse files
Noa Resareyadvr
authored andcommitted
Make maven use mkisofs or genisoimage depending on what is available
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
1 parent 6c527ff commit 7d40a7e

1 file changed

Lines changed: 17 additions & 1 deletion

File tree

console-proxy/pom.xml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@
2525
<artifactId>cloudstack</artifactId>
2626
<version>4.1.0-SNAPSHOT</version>
2727
</parent>
28+
<properties>
29+
<mkisofs>mkisofs</mkisofs>
30+
</properties>
2831
<dependencies>
2932
<dependency>
3033
<groupId>log4j</groupId>
@@ -167,6 +170,19 @@
167170
</plugins>
168171
</build>
169172
<profiles>
173+
<!-- Debian will never distribute mkisofs due to licensing issues.
174+
Fortunately genisoimage is a work-alike -->
175+
<profile>
176+
<id>genisoimage</id>
177+
<activation>
178+
<file>
179+
<exists>/usr/bin/genisoimage</exists>
180+
</file>
181+
</activation>
182+
<properties>
183+
<mkisofs>genisoimage</mkisofs>
184+
</properties>
185+
</profile>
170186
<profile>
171187
<id>vmware</id>
172188
<activation>
@@ -209,7 +225,7 @@
209225
</execution>
210226
</executions>
211227
<configuration>
212-
<executable>mkisofs</executable>
228+
<executable>${mkisofs}</executable>
213229
<workingDirectory>dist</workingDirectory>
214230
<arguments>
215231
<argument>-quiet</argument>

0 commit comments

Comments
 (0)