svn commit: r14274 - trunk/src/build.xml

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: penyaskito
Date: 2008-03-31 18:47:54-0700
New Revision: 14274

Modified:
   trunk/src/build.xml

Log:
Modified the ant build file so it doesn't depend on Linux sh.

Modified: trunk/src/build.xml
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/build.xml?view=diff&rev=14274&p1=trunk/src/build.xml&p2=trunk/src/build.xml&r1=14273&r2=14274
==============================================================================
--- trunk/src/build.xml	(original)
+++ trunk/src/build.xml	2008-03-31 18:47:54-0700
@@ -271,17 +271,13 @@
 
     <!-- Update the manifest file. -->
     <property name="manifest.update" value="mf.mf"/>
-    <exec executable="sh">
-      <arg value="-c"/>
-      <arg value="( cd ../build; echo Class-Path: &#042;.jar ext/&#042;.jar > ${manifest.update} )"/>
-    </exec>
-
-    <!--
-    <exec executable="sh">
-      <arg value="-c"/>
-      <arg value="( cd ../build; $JAVA_HOME/bin/jar ufm argouml.jar mf.mf )"/>
-    </exec>
-    -->
+    <fileset dir="${argo.build.dir}" id="classpath.jars" >
+        <include name="**.jar" />
+    </fileset>
+    <pathconvert pathsep=" " property="cp" refid="classpath.jars" >
+        <mapper type="flatten"/>
+    </pathconvert>
+    <echo message="Classpath: ${cp} ext/*.jar" file="${argo.build.dir}/${manifest.update}" />
 
     <jar update="true"
          basedir="${argo.build.dir}"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.