ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <ext-simon.stei...@nokia.com>
Subject runtarget failing
Date Mon, 21 Sep 2009 12:58:26 GMT
Hi,

Runtarget seems to sometimes fail when using parallel:

Other than using antcall is there a fix?

BUILD FAILED
Desktop\build.xml:11:
java.lang.NullPointerException
java.lang.NullPointerException
Could not create task of type: echo
java.lang.NullPointerException

<?xml version="1.0" encoding="UTF-8"?>
<project>
    <path id="lib.path">
        <fileset dir="xxx" includes="**/*.jar"/>
    </path>
    
    <!-- External tasks. -->
    <taskdef resource="net/sf/antcontrib/antlib.xml" classpathref="lib.path"/>
    
    <target name="hi">
        <echo message="Hello3!"/>
    </target>
    
<target name="test">
    <parallel threadCount="8">
        <runtarget target="hi" /><runtarget target="hi" /><runtarget target="hi"
/><runtarget target="hi" /><runtarget target="hi" /><runtarget target="hi"
/><runtarget target="hi" /><runtarget target="hi" /><runtarget target="hi"
/><runtarget target="hi" /><runtarget target="hi" /><runtarget target="hi"
/><runtarget target="hi" /><runtarget target="hi" /><runtarget target="hi"
/><runtarget target="hi" /><runtarget target="hi" /><runtarget target="hi"
/><runtarget target="hi" /><runtarget target="hi" /><runtarget target="hi"
/><runtarget target="hi" /><runtarget target="hi" /><runtarget target="hi"
/><runtarget target="hi" /><runtarget target="hi" /><runtarget target="hi"
/><runtarget target="hi" /><runtarget target="hi" />
        <runtarget target="hi" /><runtarget target="hi" /><runtarget target="hi"
/><runtarget target="hi" /><runtarget target="hi" /><runtarget target="hi"
/><runtarget target="hi" /><runtarget target="hi" /><runtarget target="hi"
/><runtarget target="hi" /><runtarget target="hi" /><runtarget target="hi"
/><runtarget target="hi" /><runtarget target="hi" /><runtarget target="hi"
/><runtarget target="hi" /><runtarget target="hi" /><runtarget target="hi"
/><runtarget target="hi" /><runtarget target="hi" /><runtarget target="hi"
/><runtarget target="hi" /><runtarget target="hi" /><runtarget target="hi"
/><runtarget target="hi" /><runtarget target="hi" /><runtarget target="hi"
/><runtarget target="hi" /><runtarget target="hi" />
    </parallel>
</target>
</project>


Thanks



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message