<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -4,10 +4,6 @@ Shade -- A casual 2d game written in Java
 An ant file is included with this project. To get up and running please
 follow these instructions.
 
-Set up the environment:
-
-    ant setup // sets up native libraries used by Shade
-
 Building Shade:
 
     ant build // compiles source code and creates shade.jar</diff>
      <filename>README</filename>
    </modified>
    <modified>
      <diff>@@ -26,7 +26,7 @@ Alex Schearer
     &lt;property name=&quot;webstart.dir&quot; value=&quot;${target.dir}/webstart&quot; /&gt;
 
     &lt;!-- Set up the Shade environment including preparing the natives. --&gt;
-    &lt;target name=&quot;setup&quot;&gt;
+    &lt;target name=&quot;setup&quot; depends=&quot;check-setup&quot; unless=&quot;setup.exists&quot;&gt;
         &lt;delete dir=&quot;${lib.dir}/natives&quot; /&gt;
         &lt;mkdir dir=&quot;${lib.dir}/natives&quot; /&gt;
         &lt;unzip src=&quot;${lib.dir}/natives-win32.jar&quot; dest=&quot;${lib.dir}/natives&quot; /&gt;
@@ -41,7 +41,7 @@ Alex Schearer
     &lt;/target&gt;
 
     &lt;!-- Run Shade. --&gt;
-    &lt;target name=&quot;run&quot;&gt;
+    &lt;target name=&quot;run&quot; depends=&quot;setup,build&quot;&gt;
         &lt;java jar=&quot;${target.dir}/shade.jar&quot; fork=&quot;true&quot; failonerror=&quot;true&quot;&gt;
             &lt;jvmarg value=&quot;-Djava.library.path=lib/natives&quot; /&gt;
         &lt;/java&gt;
@@ -55,8 +55,8 @@ Alex Schearer
     &lt;/target&gt;
 
     &lt;!-- Create a webstart directory in order to deploy Shade. --&gt;
-    &lt;target name=&quot;webstart&quot;&gt;
-        &lt;input message=&quot;Target webserver:&quot; addproperty=&quot;codebase&quot; /&gt;
+    &lt;target name=&quot;webstart&quot; depends=&quot;build&quot;&gt;
+        &lt;input message=&quot;Web server url:&quot; addproperty=&quot;codebase&quot; /&gt;
         &lt;delete dir=&quot;${webstart.dir}&quot; /&gt;
         &lt;mkdir dir=&quot;${webstart.dir}&quot; /&gt;
         &lt;copy file=&quot;${script.dir}/htaccess&quot; tofile=&quot;${webstart.dir}/.htaccess&quot; /&gt;
@@ -71,6 +71,15 @@ Alex Schearer
         &lt;antcall target=&quot;signjar&quot; /&gt;
     &lt;/target&gt;
 
+    &lt;!-- Determines whether setup has been run. --&gt;
+    &lt;target name=&quot;check-setup&quot;&gt;
+        &lt;condition property=&quot;setup.exists&quot;&gt;
+            &lt;available file=&quot;${lib.dir}/natives&quot; type=&quot;dir&quot; /&gt;
+        &lt;/condition&gt;
+    &lt;/target&gt;
+
+
+    &lt;!-- Determines whether a keystore exists. --&gt;
     &lt;target name=&quot;check-keystore&quot;&gt;
         &lt;input message=&quot;Username:&quot; addproperty=&quot;keystore.alias&quot; /&gt;
         &lt;input message=&quot;Password:&quot; addproperty=&quot;keystore.pass&quot; /&gt;</diff>
      <filename>build.xml</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>b400dd2ae6a264e1043dafe1da7a9b44650151fb</id>
    </parent>
  </parents>
  <author>
    <name>Alex Schearer</name>
    <email>aschearer@gmail.com</email>
  </author>
  <url>http://github.com/aschearer/shade/commit/ed321a6620695e347bc8f76a0cce52faf8739645</url>
  <id>ed321a6620695e347bc8f76a0cce52faf8739645</id>
  <committed-date>2008-09-20T09:12:44-07:00</committed-date>
  <authored-date>2008-09-20T09:12:44-07:00</authored-date>
  <message>updated build to streamline things further</message>
  <tree>c73a3284c359aee73d1d52d88fdfa3fded3fb189</tree>
  <committer>
    <name>Alex Schearer</name>
    <email>aschearer@gmail.com</email>
  </committer>
</commit>
