On Thu, Mar 27, 2008 at 2:19 PM, Buck, Robert <[EMAIL PROTECTED]> wrote:
> Hi Peter,
>
>  I added a bug report a few minutes ago; the bug number is:
>
>  https://issues.apache.org/bugzilla/show_bug.cgi?id=44689
>
Saw that, thanks.

>  We have a fairly complex build system at VeriSign,
Thanks very much for reducing the build file to the smallest possible
file that shows the problem, this will help greatly in solving
the problem.

> so obviously we would
>  love to see this fixed in 1.7.1.

This may be problematic, as we are in a release cycle at the moment.
It will be up the the release manager to accept any fix that may be
found.

> We cannot run multiple targets, ever.
>
A (not very good) work around may be to
add some extra targets to correspond to the multiple targets.

<target name="a_b" depends="a, b"/>

or use (yuck) antcalls:

<target name="a_b">
   <antcall target="a"/>
   <antcall target="b"/>
</target>

or try to refactor the build file to remove references from
tasks, or place these tasks outside targets.

Peter

>  /Bob
>
>
>
>  -----Original Message-----
>  From: Peter Reilly [mailto:[EMAIL PROTECTED]
>  Sent: Thursday, March 27, 2008 10:12 AM
>  To: Ant Users List
>  Subject: Re: NPE in Ant 1.7.0
>
>  Thanks for report - and the build file.
>
>  This has not been reported before, please add a bug report.
>
>  This error is also present int the ant 1.7.1beta build and the trunk.
>
>  In general, however, ant 1.7.0 can support multiple targets, I (and a
>  gillzillion others) use them all the time), there must be something in
>  the build.xml that triggers an edge condition (in
>  RuntimeConfigurable.java:381)
>  - the use of references to tasks may be the root cause.
>
>  Peter
>
>  On Thu, Mar 27, 2008 at 1:52 PM, Buck, Robert <[EMAIL PROTECTED]>
>  wrote:
>  > Has this bug been reported yet?
>  >
>  >  Run "ant init clean" and you get an NPE. Basically, Ant will not run
>
>  > multiple targets, which is a pretty huge limitation.
>  >
>  >  <?xml version="1.0"?>
>  >  <project name="AntNPE" default="init">
>  >   <target name="init">
>  >     <echo id="test">test</echo>
>  >   </target>
>  >   <target name="clean" depends="init"/>  </project>
>  >
>  >  Apache Ant version 1.7.1beta compiled on March 18 2008
>  > D:\dev\thirdparty\shared\apache-ant-1.7.1beta>ant -f antfails.xml init
>
>  > clean
>  >  Buildfile: antfails.xml
>  >
>  >  init:
>  >      [echo] test
>  >
>  >  init:
>  >
>  >  BUILD FAILED
>  >  java.lang.NullPointerException
>  >         at
>  >
>  > org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigu
>  > ra
>  >  ble.java:381)
>  >         at
>  >
>  > org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigu
>  > ra
>  >  ble.java:349)
>  >         at org.apache.tools.ant.Task.maybeConfigure(Task.java:202)
>  >         at org.apache.tools.ant.Task.perform(Task.java:347)
>  >         at org.apache.tools.ant.Target.execute(Target.java:357)
>  >         at org.apache.tools.ant.Target.performTasks(Target.java:385)
>  >         at
>  >  org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
>  >         at
>  org.apache.tools.ant.Project.executeTarget(Project.java:1306)
>  >         at
>  >
>  > org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExec
>  > ut
>  >  or.java:41)
>  >         at
>  >  org.apache.tools.ant.Project.executeTargets(Project.java:1189)
>  >         at org.apache.tools.ant.Main.runBuild(Main.java:758)
>  >         at org.apache.tools.ant.Main.startAnt(Main.java:217)
>  >         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
>  >         at
>  > org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
>  >
>  >  Total time: 0 seconds
>  >
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: [EMAIL PROTECTED] For additional
>  commands, e-mail: [EMAIL PROTECTED]
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to