|
@@ -6,6 +6,7 @@
|
6
|
6
|
<property file="nbproject/project.properties"/>
|
7
|
7
|
<property file="nbproject/private/private.properties"/>
|
8
|
8
|
<property file="${user.properties.file}"/>
|
|
9
|
+ <available file="${libs.antcontrib}" property="has.ant-contrib"/>
|
9
|
10
|
|
10
|
11
|
<taskdef resource="net/sf/antcontrib/antcontrib.properties">
|
11
|
12
|
<classpath>
|
|
@@ -24,7 +25,17 @@
|
24
|
25
|
</jar>
|
25
|
26
|
</target>
|
26
|
27
|
|
27
|
|
- <target name="build-plugins">
|
|
28
|
+ <target name="build-plugins" depends="build-plugins_bash, build-plugins_ant-contrib"/>
|
|
29
|
+
|
|
30
|
+ <available file="/bin/bash" property="has.bash"/>
|
|
31
|
+ <target name="build-plugins_bash" unless="has.ant-contrib" if="has.bash">
|
|
32
|
+ <exec executable="/bin/bash">
|
|
33
|
+ <arg value="createAllPluginJar.sh"/>
|
|
34
|
+ <arg value="${src.dir}/com/dmdirc/addons/"/>
|
|
35
|
+ </exec>
|
|
36
|
+ </target>
|
|
37
|
+
|
|
38
|
+ <target name="build-plugins_ant-contrib" if="has.ant-contrib">
|
28
|
39
|
<mkdir dir="plugins/"/>
|
29
|
40
|
<foreach target="makepluginjar" param="target.file">
|
30
|
41
|
<path>
|