title: Running P2 Ant tasks outside Eclipse
body: <p>I got ant script running fine inside Eclipse
  Here is a piece of it :</p>
  
  <pre><code>&lt;p2.composite.repository failOnExists="true"&gt;
              &lt;repository location="file:/${basedir}/compRepo" name="Repository description goes here" /&gt;
              &lt;add&gt;
                  &lt;repository location="http://url/Eclipse/repo/Galileo-3.5.1/" /&gt;
                  &lt;repository location="http://another-url/Java/repo/4.0/" /&gt;
                  &lt;repository location="${diag.location}" /&gt;
              &lt;/add&gt;
          &lt;/p2.composite.repository&gt;
  </code></pre>
  
  <p>But I would like Hudson CI server to be able to run it, but, no matter all the jars I put in ANT_HOME/lib I can't get this task to run in a simple command line ant...
  I got stuck with this error :</p>
  
  <pre><code>C:\workspaces\workspace\project\junit.script\createCompRepo.xml:10: Problem: failed to create task or type p2.composite.repository
  Cause: The name is undefined.
  Action: Check the spelling.
  Action: Check that any custom tasks/types have been declared.
  Action: Check that any &lt;presetdef&gt;/&lt;macrodef&gt; declarations have taken place.
  </code></pre>
  
  <p>Where are defined the p2 ant tasks ? Is there a way to run them outside Eclipse ?
  Thank you very much for you help !
  Anthony</p>