Browse Source

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 years ago
parent
commit
86bc245e80
2 changed files with 10 additions and 3 deletions
  1. 9
    1
      build.xml
  2. 1
    2
      createAllPluginJar.sh

+ 9
- 1
build.xml View File

64
     the compile target as the regular run target does. Again, for a list of available 
64
     the compile target as the regular run target does. Again, for a list of available 
65
     properties which you can use, check the target you are overriding in the
65
     properties which you can use, check the target you are overriding in the
66
     nbproject/build-impl.xml file. 
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
 </project>
77
 </project>

+ 1
- 2
createAllPluginJar.sh View File

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

Loading…
Cancel
Save