Ver código fonte

createAllPluginJar.sh is now run in the ant build script (i'd like do this this in ant, but cant seem to find a way to list directories in ant)

git-svn-id: http://svn.dmdirc.com/trunk@2623 00569f92-eb28-0410-84fd-f71c24880f
tags/0.5.5
Gregory Holmes 16 anos atrás
pai
commit
86bc245e80
2 arquivos alterados com 10 adições e 3 exclusões
  1. 9
    1
      build.xml
  2. 1
    2
      createAllPluginJar.sh

+ 9
- 1
build.xml Ver arquivo

@@ -64,6 +64,14 @@
64 64
     the compile target as the regular run target does. Again, for a list of available 
65 65
     properties which you can use, check the target you are overriding in the
66 66
     nbproject/build-impl.xml file. 
67
-
67
+<jar compress="${jar.compress}" jarfile="${build.classes.dir}/plugins/">
68
+            <fileset dir="${build.classes.dir}"/>
69
+        </jar>
68 70
     -->
71
+    <target name="-post-compile">
72
+        <exec executable="/bin/bash">
73
+            <arg value="createAllPluginJar.sh"/>
74
+            <arg value="${src.dir}/com/dmdirc/addons/"/>
75
+        </exec>
76
+    </target>
69 77
 </project>

+ 1
- 2
createAllPluginJar.sh Ver arquivo

@@ -2,9 +2,8 @@
2 2
 # This attempts to create a clean build of dmdirc, then if the build was a success
3 3
 # it will create plugin jars for all the plugins in the addons directory.
4 4
 
5
-ant clean jar
6 5
 if [ ${?} = "0" ]; then
7 6
 	for dir in `ls -1 src/com/dmdirc/addons`; do
8 7
 		./createPluginJar.sh com.dmdirc.addons.${dir} ${dir}
9 8
 	done
10
-fi
9
+fi

Carregando…
Cancelar
Salvar