Hello,

I've made a new taskdef called MakeRunScript.  It does pretty much what it
says.. makes a run script for your application.  Here's an example:

        <taskdef name="makerunscript"
classname="com.citizenhawk.antmakerunscript.MakeRunScript"
            classpath="makerunscript.jar"/>

        <makerunscript>
            <scriptfile file="run.bat" os="windows"/>
            <scriptfile file="run.sh" os="*nix"/>
            <java classname="test.Main"/>
        </makerunscript>

This will generate two run scripts for you. One named run.bat that works on
windows and one named run.sh that works on any *nix (afaik).  The run script
uses executes test.Main's main() method.  

I've attached the patch to the external tools and tasks section as asked.
(Note that this patch was made on cygwin.)  Thanks a lot
--- New Text Document.txt       2007-11-15 10:44:53.015625000 -0800
+++ Copy of New Text Document.txt       2007-11-15 10:53:53.984375000 -0800
@@ -2297,6 +2297,32 @@
           </tr>
         </table>
       </subsection>
+      
+     <subsection name="MakeRunScript">
+
+        <p>MakeRunScript creates a run script for your application.  Even if 
you are developing on windows,
+        you can make a run script for *nix and vice versa.  If you've used the 
built-in java task before, you
+        already know how to use 90% of MakeRunScript.</p>
+
+        <table class="externals">
+          <tr>
+            <th>Compatibility:</th>
+            <td>Ant 1.7 and higher</td>
+          </tr>
+          <tr>
+            <th>URL:</th>
+            <td><a 
href="http://sourceforge.net/projects/makerunscript/";>http://sourceforge.net/projects/makerunscript/</a></td>
+          </tr>
+          <tr>
+            <th>Contact:</th>
+            <td><a 
href="http://sourceforge.net/forum/?group_id=210204";>MakeRunScript 
forums</a></td>
+          </tr>
+          <tr>
+            <th>License:</th>
+            <td>Apache 2.0</td>
+          </tr>
+        </table>
+      </subsection>      
 
       <subsection name="mtxslt">
 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to