ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r1095268 - /ant/core/trunk/manual/tutorial-HelloWorldWithAnt.html
Date Wed, 20 Apr 2011 04:57:23 GMT
Author: bodewig
Date: Wed Apr 20 04:57:23 2011
New Revision: 1095268

URL: http://svn.apache.org/viewvc?rev=1095268&view=rev
Log:
code in tutorial relies on references being resolved even if the definition has never been
reached.  Found by Magnus Strandberg

Modified:
    ant/core/trunk/manual/tutorial-HelloWorldWithAnt.html

Modified: ant/core/trunk/manual/tutorial-HelloWorldWithAnt.html
URL: http://svn.apache.org/viewvc/ant/core/trunk/manual/tutorial-HelloWorldWithAnt.html?rev=1095268&r1=1095267&r2=1095268&view=diff
==============================================================================
--- ant/core/trunk/manual/tutorial-HelloWorldWithAnt.html (original)
+++ ant/core/trunk/manual/tutorial-HelloWorldWithAnt.html Wed Apr 20 04:57:23 2011
@@ -414,11 +414,13 @@ Now we add a junit instruction to our bu
 <pre class="code">
     ...
 
+    &lt;path <b>id="application"</b> location="${jar.dir}/${ant.project.name}.jar"/&gt;
+
     &lt;target name="run" depends="jar"&gt;
         &lt;java fork="true" classname="${main-class}"&gt;
             &lt;classpath&gt;
                 &lt;path refid="classpath"/&gt;
-                &lt;path <b>id="application"</b> location="${jar.dir}/${ant.project.name}.jar"/&gt;
+                <b>&lt;path refid="application"/&gt;</b>
             &lt;/classpath&gt;
         &lt;/java&gt;
     &lt;/target&gt;
@@ -440,7 +442,8 @@ Now we add a junit instruction to our bu
 
 </pre>
 
-<p>We reuse the path to our own jar file as defined in run-target by giving it an ID.
+<p>We reuse the path to our own jar file as defined in run-target by
+  giving it an ID and making it globally available.
 The <tt>printsummary=yes</tt> lets us see more detailed information than just
a "FAILED" or "PASSED" message.
 How much tests failed? Some errors? Printsummary lets us know. The classpath is set up to
find our classes.
 To run tests the <tt>batchtest</tt> here is used, so you could easily add more
test classes in the future just



Mime
View raw message