From 5c3bcc55963738ccb996f61ffff69e74a219b2e9 Mon Sep 17 00:00:00 2001
From: vharseko <vharseko@openam.org.ru>
Date: Tue, 06 Mar 2018 08:52:43 +0000
Subject: [PATCH] allow build MSI on Unix/Mac (wix from wine)
---
opendj-packages/opendj-msi/pom.xml | 38 +++++++++++++++++++++++++++++++++++++-
1 files changed, 37 insertions(+), 1 deletions(-)
diff --git a/opendj-packages/opendj-msi/pom.xml b/opendj-packages/opendj-msi/pom.xml
index d908733..9281873 100644
--- a/opendj-packages/opendj-msi/pom.xml
+++ b/opendj-packages/opendj-msi/pom.xml
@@ -34,10 +34,46 @@
<profiles>
<profile>
- <id>packages</id>
+ <id>/usr/bin/wine</id>
+ <activation>
+ <os><family>unix</family></os>
+ <file><exists>/usr/bin/wine</exists></file>
+ </activation>
<modules>
<module>opendj-msi-standard</module>
</modules>
+ <properties>
+ <exec.heat>/usr/bin/wine</exec.heat><param.heat>${project.build.directory}/wix/heat.exe</param.heat>
+ <exec.candle>/usr/bin/wine</exec.candle><param.candle>${project.build.directory}/wix/candle.exe</param.candle>
+ <exec.light>/usr/bin/wine</exec.light><param.light>${project.build.directory}/wix/light.exe</param.light>
+ </properties>
+ </profile>
+ <profile>
+ <id>/opt/local/bin/wine</id>
+ <activation>
+ <os><family>unix</family></os>
+ <file><exists>/opt/local/bin/wine</exists></file>
+ </activation>
+ <modules>
+ <module>opendj-msi-standard</module>
+ </modules>
+ <properties>
+ <exec.heat>/opt/local/bin/wine</exec.heat><param.heat>${project.build.directory}/wix/heat.exe</param.heat>
+ <exec.candle>/opt/local/bin/wine</exec.candle><param.candle>${project.build.directory}/wix/candle.exe</param.candle>
+ <exec.light>/opt/local/bin/wine</exec.light><param.light>${project.build.directory}/wix/light.exe</param.light>
+ </properties>
+ </profile>
+ <profile>
+ <id>windows</id>
+ <activation><os><family>windows</family></os></activation>
+ <modules>
+ <module>opendj-msi-standard</module>
+ </modules>
+ <properties>
+ <exec.heat>${project.build.directory}/wix/heat.exe</exec.heat><param.heat></param.heat>
+ <exec.candle>${project.build.directory}/wix/candle.exe</exec.candle><param.candle></param.candle>
+ <exec.light>${project.build.directory}/wix/light.exe</exec.light><param.light></param.light>
+ </properties>
</profile>
</profiles>
</project>
--
Gitblit v1.10.0