Browse Source

ant installer task added. uses ./release.sh this to build the correct type of installer.


git-svn-id: http://svn.dmdirc.com/trunk@2808 00569f92-eb28-0410-84fd-f71c24880f
tags/0.5.5
Shane Mc Cormack 16 years ago
parent
commit
bc962bde2c
1 changed files with 24 additions and 0 deletions
  1. 24
    0
      build.xml

+ 24
- 0
build.xml View File

@@ -70,4 +70,28 @@
70 70
         </jar>
71 71
     -->
72 72
     <target name="-post-compile" depends="build-plugins"/>
73
+
74
+    <available file="/bin/bash" property="has.bash"/>	
75
+
76
+    <target name="installer" depends="installer-nobuild, installer-build"/>
77
+    
78
+    <target name="installer-build" if="has.bash">
79
+        <exec executable="/bin/bash" dir="installer" resultproperty="installer.result">
80
+            <arg value="release.sh"/>
81
+            <arg value="this"/>
82
+        </exec>
83
+
84
+        <condition property="installer.success">
85
+            <equals arg1="${installer.result}" arg2="0" />
86
+        </condition>
87
+
88
+        <echo message="Installer build finished."/>
89
+        <echo message="Completed build files can be found in:"/>
90
+        <echo message="    ${installer.output.dir}"/>
91
+        <echo message=""/>
92
+    </target>
93
+    
94
+    <target name="installer-nobuild" unless="has.bash">
95
+        <echo message="This task only works on linux"/>
96
+    </target>
73 97
 </project>

Loading…
Cancel
Save