title: Ant tasks don't run IN IzPack installer
body: <p>.
  Hello, everyone</p>
  
  <p>I'm studying IzPack as a tool to be used in a future project and I'm really enjoying it. It's as flexible as I need and makes the process much more easy. I have even submmited a silly <a href="https://github.com/izpack/izpack/pull/261" rel="nofollow">pull reques</a>t at github with a modification I needed to my purposes. Who knows?</p>
  
  <p>Although I don't find it particularly complicated, I've been stuck trying to use a resource for some days. I need that certain Ant Tasks to be executed in certain points of the installation process (right before everything is unpacked is the really one that matters) and that is not working, besides all the efford. :(</p>
  
  <p>My current state, that seems right looking at examples, is the following:</p>
  
  <p><strong>[</strong> My current use of this is based on an example I found <a href="http://grepcode.com/file/repo1.maven.org/maven2/org.codehaus.izpack/izpack-event/5.0.0-beta11/com/izforge/izpack/event/ant/AntActionsSpec.xml?av=f" rel="nofollow">here</a> (the docs don't clear too much when It cames to these kind of Actions.<strong>]</strong></p>
  
  <p>In my definitions xml file, I included some things:</p>
  
  <p>First, the AntActionsSpect.xml and the .jars, followed by the listeners:</p>
  
  <pre><code>&lt;resources&gt;
      ...
      &lt;res id="AntActionsSpec.xml" src="specs/AntActionsSpec.xml" /&gt;
      ...
  &lt;/resources&gt;
  
  &lt;jar src="libs/ant/ant.jar" stage="both" /&gt;
  &lt;jar src="libs/ant/ant-launcher.jar" stage="both" /&gt;
  
  &lt;listeners&gt;
      &lt;listener classname="AntActionInstallerListener" stage="install" /&gt;
      &lt;listener classname="AntActionUninstallerListener" stage="uninstall" /&gt;
  &lt;/listeners&gt;
  
  &lt;pack name="test_app" required="yes" installGroups="Application Core"&gt;
  ...
  </code></pre>
  
  <p>In the specs/AntActionsSpec.xml file, I have the following:</p>
  
  <p></p>
  
  <pre><code>&lt;pack name="test_app"&gt;
      &lt;antcall order="beforepacks" quiet="no" verbose="yes" buildfile="$INSTALL_PATH/ant-tasks.xml"&gt;
              &lt;property name="INSTALL_PATH" value="$INSTALL_PATH" /&gt;
              &lt;target name="touch_beforepacks" /&gt;
      &lt;/antcall&gt;
   &lt;/pack&gt;
  </code></pre>
  
  <p></p>
  
  <p>And the ant-tasks.xml file:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;project&gt;
      &lt;target name="touch_beforepacks"&gt;
          &lt;touch file="$INSTALL_PATH/beforepacks.txt"/&gt;
      &lt;/target&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>Nothing special here, just creating a dumb file.</p>
  
  <p>The ant-tasks.xml is unpacked right before anyone else. Everything builds with no error, even if I create one "mistake" at AntActionsSpec or ant-tasks.xml, what suggests me that they aren't even been loaded, though if I mess with the path where the definitions file has them, the build will fail.</p>
  
  <p>I would like some help addressing that. I'm probably making some stupid little error and just can't see it by myself. If any of you could provide an example of a running build, that would be sweet.</p>
  
  <p>If I can give any more information, please, let me known so I can update the question.</p>
  
  <p>Thank you very much.</p>