You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Buck, Robert" <rb...@verisign.com> on 2008/03/27 14:52:41 UTC

NPE in Ant 1.7.0

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(RuntimeConfigura
ble.java:381)
        at
org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigura
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(DefaultExecut
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

AW: NPE in Ant 1.7.0

Posted by Ja...@rzf.fin-nrw.de.
Ok, verified for Ant 1.7.0 and Ant 1.7.1beta2.
Works for 1.6.5.

Jan 

> -----Ursprüngliche Nachricht-----
> Von: Buck, Robert [mailto:rbuck@verisign.com] 
> Gesendet: Donnerstag, 27. März 2008 15:49
> An: Ant Users List
> Betreff: RE: NPE in Ant 1.7.0
> 
> No, not simply "ant", rather "ant init clean". 
> 
> -----Original Message-----
> From: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de] 
> Sent: Thursday, March 27, 2008 10:38 AM
> To: user@ant.apache.org
> Subject: AW: NPE in Ant 1.7.0
> 
> That works for me:
> 
> <?xml version="1.0"?>
> <project name="AntNPE" default="init">
>   <echo>${ant.version}</echo>
>   <target name="init">
>     <echo id="test">test</echo>
>   </target>
>   <target name="clean" depends="init"/>
> </project>
> 
> C:\TEMP>ant
> Buildfile: build.xml
>      [echo] Apache Ant version 1.7.1beta compiled on March 18 2008
> 
> init:
>      [echo] test
> 
> BUILD SUCCESSFUL
> 
> 
> JDK 1.6.0_02-b05 @ WinXP SP2
> 
> 
> 
> Jan
> 
>  
> 
> > -----Ursprüngliche Nachricht-----
> > Von: Buck, Robert [mailto:rbuck@verisign.com]
> > Gesendet: Donnerstag, 27. März 2008 15:19
> > An: Ant Users List
> > Betreff: RE: NPE in Ant 1.7.0
> > 
> > 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
> > 
> > We have a fairly complex build system at VeriSign, so obviously we 
> > would love to see this fixed in 1.7.1. We cannot run 
> multiple targets, 
> > ever.
> > 
> > /Bob
> > 
> > -----Original Message-----
> > From: Peter Reilly [mailto:peter.kitt.reilly@gmail.com]
> > 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 <rb...@verisign.com>
> > 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: user-unsubscribe@ant.apache.org For 
> additional 
> > commands, e-mail: user-help@ant.apache.org
> > 
> > 
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For 
> additional 
> > commands, e-mail: user-help@ant.apache.org
> > 
> > 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For 
> additional commands, e-mail: user-help@ant.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
> 

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


RE: NPE in Ant 1.7.0

Posted by "Buck, Robert" <rb...@verisign.com>.
No, not simply "ant", rather "ant init clean". 

-----Original Message-----
From: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de] 
Sent: Thursday, March 27, 2008 10:38 AM
To: user@ant.apache.org
Subject: AW: NPE in Ant 1.7.0

That works for me:

<?xml version="1.0"?>
<project name="AntNPE" default="init">
  <echo>${ant.version}</echo>
  <target name="init">
    <echo id="test">test</echo>
  </target>
  <target name="clean" depends="init"/>
</project>

C:\TEMP>ant
Buildfile: build.xml
     [echo] Apache Ant version 1.7.1beta compiled on March 18 2008

init:
     [echo] test

BUILD SUCCESSFUL


JDK 1.6.0_02-b05 @ WinXP SP2



Jan

 

> -----Ursprüngliche Nachricht-----
> Von: Buck, Robert [mailto:rbuck@verisign.com]
> Gesendet: Donnerstag, 27. März 2008 15:19
> An: Ant Users List
> Betreff: RE: NPE in Ant 1.7.0
> 
> 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
> 
> We have a fairly complex build system at VeriSign, so obviously we 
> would love to see this fixed in 1.7.1. We cannot run multiple targets, 
> ever.
> 
> /Bob
> 
> -----Original Message-----
> From: Peter Reilly [mailto:peter.kitt.reilly@gmail.com]
> 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 <rb...@verisign.com>
> 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: user-unsubscribe@ant.apache.org For additional 
> commands, e-mail: user-help@ant.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional 
> commands, e-mail: user-help@ant.apache.org
> 
> 

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


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


AW: NPE in Ant 1.7.0

Posted by Ja...@rzf.fin-nrw.de.
That works for me:

<?xml version="1.0"?>
<project name="AntNPE" default="init">
  <echo>${ant.version}</echo>
  <target name="init">
    <echo id="test">test</echo>
  </target>
  <target name="clean" depends="init"/>
</project>

C:\TEMP>ant
Buildfile: build.xml
     [echo] Apache Ant version 1.7.1beta compiled on March 18 2008

init:
     [echo] test

BUILD SUCCESSFUL


JDK 1.6.0_02-b05 @ WinXP SP2



Jan

 

> -----Ursprüngliche Nachricht-----
> Von: Buck, Robert [mailto:rbuck@verisign.com] 
> Gesendet: Donnerstag, 27. März 2008 15:19
> An: Ant Users List
> Betreff: RE: NPE in Ant 1.7.0
> 
> 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
> 
> We have a fairly complex build system at VeriSign, so 
> obviously we would
> love to see this fixed in 1.7.1. We cannot run multiple targets, ever.
> 
> /Bob 
> 
> -----Original Message-----
> From: Peter Reilly [mailto:peter.kitt.reilly@gmail.com] 
> 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 <rb...@verisign.com>
> 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: user-unsubscribe@ant.apache.org For additional
> commands, e-mail: user-help@ant.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
> 

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


Re: NPE in Ant 1.7.0

Posted by Xavier Hanin <xa...@gmail.com>.
On Thu, Mar 27, 2008 at 5:43 PM, Stefan Bodewig <bo...@apache.org> wrote:

> On Thu, 27 Mar 2008, Xavier Hanin <xa...@gmail.com> wrote:
>
> > Do you mean that 1.7.1 final is supposed to be the same as
> > 1.7.1beta2, except for last minute bug fix?
>
> At least it shouldn't be drastically different.
>
> My personal take would be to include the fix for this.  If it doesn't
> look to scary, that is.
>
> > Why not name it a release candidate then?
>
> Because Ant has traditionally never called anything a release
> candidate (I think) but always called the release candidates betas.
>
> We've never had any alpha releases and our betas have tradionally been
> way more frozen than what other projects call beta.
>
> I'm not saying that we can't change 8-)

I don't mind, I was just confused by the name. But keeping the name scheme
consistent with what has been done before is good. The only annoying thing I
see is that Ant and Ivy do not use the same meaning behind the names given
to releases: in Ivy the beta we have published are still far from being
release candidates, and may changes still have to be introduced before we
reach the release candidate cycles.

Xavier

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


-- 
Xavier Hanin - Independent Java Consultant
http://xhab.blogspot.com/
http://ant.apache.org/ivy/
http://www.xoocode.org/

Re: NPE in Ant 1.7.0

Posted by Stefan Bodewig <bo...@apache.org>.
On Thu, 27 Mar 2008, Xavier Hanin <xa...@gmail.com> wrote:

> Do you mean that 1.7.1 final is supposed to be the same as
> 1.7.1beta2, except for last minute bug fix?

At least it shouldn't be drastically different.

My personal take would be to include the fix for this.  If it doesn't
look to scary, that is.

> Why not name it a release candidate then?

Because Ant has traditionally never called anything a release
candidate (I think) but always called the release candidates betas.

We've never had any alpha releases and our betas have tradionally been
way more frozen than what other projects call beta.

I'm not saying that we can't change 8-)

Stefan

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


Re: NPE in Ant 1.7.0

Posted by Xavier Hanin <xa...@gmail.com>.
On Thu, Mar 27, 2008 at 5:03 PM, Peter Reilly <pe...@gmail.com>
wrote:

> On Thu, Mar 27, 2008 at 3:48 PM, Xavier Hanin <xa...@gmail.com>
> wrote:
> > On Thu, Mar 27, 2008 at 4:02 PM, Peter Reilly <
> peter.kitt.reilly@gmail.com>
> >  wrote:
> >
> >
> >  > On Thu, Mar 27, 2008 at 2:19 PM, Buck, Robert <rb...@verisign.com>
> wrote:
> >
> > > > 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.
> >
> >
> >  What do you mean by "we are in a release cycle"? Obviously this won't
> go
> >  into 1.7.1beta2 which is already out, but wouldn't it be possible to
> include
> >  it in 1.7.1 final? Should 1.7.1beta2 be considered as a release
> candidate
> >  for 1.7.1 which is almost frozen? As I said in the comment on the
> issue,
> >  this bug is really annoying for Ivy users: we use id of the settings
> task to
> >  isolate settings, therefore I suspect many Ivy users will run into such
> >  trouble. So I'd really like to get this fixed in 1.7.1.
>
> It is up to kev.

OK, now that I look back in the mail history I notice we agreed he is the
release manager for 1.7.1, not 1.7.1 beta or something. In Ivy, we consider
each alpha / beta as a release, and as such we agree on a release manager
for each. Hence I was confused and thought kev was release manager for
1.7.1beta2 only. But I think I now understand the process.


> There are always last minute bugs fixes etc..

Do you mean that 1.7.1 final is supposed to be the same as 1.7.1beta2,
except for last minute bug fix? Why not name it a release candidate then? I
find the name beta confusing if feedback from users and fixes can't be
included easily. Do I have a strange understanding of what a beta is?


>
> We really need an ant 1.7.1 - it fixes things like generating corrupted
> bzip files.
>
 I understand.

>
>
> I have a fix for this, an am running the current (broken) ant tests
> against it.

Excellent! You're so fast!

Xavier

>
>
> Peter
> >
> >  Xavier
> >  --
> >  Xavier Hanin - Independent Java Consultant
> >  http://xhab.blogspot.com/
> >  http://ant.apache.org/ivy/
> >  http://www.xoocode.org/
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>


-- 
Xavier Hanin - Independent Java Consultant
http://xhab.blogspot.com/
http://ant.apache.org/ivy/
http://www.xoocode.org/

Re: NPE in Ant 1.7.0

Posted by Peter Reilly <pe...@gmail.com>.
On Thu, Mar 27, 2008 at 3:48 PM, Xavier Hanin <xa...@gmail.com> wrote:
> On Thu, Mar 27, 2008 at 4:02 PM, Peter Reilly <pe...@gmail.com>
>  wrote:
>
>
>  > On Thu, Mar 27, 2008 at 2:19 PM, Buck, Robert <rb...@verisign.com> wrote:
>
> > > 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.
>
>
>  What do you mean by "we are in a release cycle"? Obviously this won't go
>  into 1.7.1beta2 which is already out, but wouldn't it be possible to include
>  it in 1.7.1 final? Should 1.7.1beta2 be considered as a release candidate
>  for 1.7.1 which is almost frozen? As I said in the comment on the issue,
>  this bug is really annoying for Ivy users: we use id of the settings task to
>  isolate settings, therefore I suspect many Ivy users will run into such
>  trouble. So I'd really like to get this fixed in 1.7.1.

It is up to kev.
There are always last minute bugs fixes etc..
We really need an ant 1.7.1 - it fixes things like generating corrupted
bzip files.

I have a fix for this, an am running the current (broken) ant tests
against it.

Peter
>
>  Xavier
>  --
>  Xavier Hanin - Independent Java Consultant
>  http://xhab.blogspot.com/
>  http://ant.apache.org/ivy/
>  http://www.xoocode.org/
>

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


Re: NPE in Ant 1.7.0

Posted by Xavier Hanin <xa...@gmail.com>.
On Thu, Mar 27, 2008 at 4:02 PM, Peter Reilly <pe...@gmail.com>
wrote:

> On Thu, Mar 27, 2008 at 2:19 PM, Buck, Robert <rb...@verisign.com> wrote:
> > 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.


What do you mean by "we are in a release cycle"? Obviously this won't go
into 1.7.1beta2 which is already out, but wouldn't it be possible to include
it in 1.7.1 final? Should 1.7.1beta2 be considered as a release candidate
for 1.7.1 which is almost frozen? As I said in the comment on the issue,
this bug is really annoying for Ivy users: we use id of the settings task to
isolate settings, therefore I suspect many Ivy users will run into such
trouble. So I'd really like to get this fixed in 1.7.1.

Xavier
-- 
Xavier Hanin - Independent Java Consultant
http://xhab.blogspot.com/
http://ant.apache.org/ivy/
http://www.xoocode.org/

Re: NPE in Ant 1.7.0

Posted by Peter Reilly <pe...@gmail.com>.
On Thu, Mar 27, 2008 at 2:19 PM, Buck, Robert <rb...@verisign.com> 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:peter.kitt.reilly@gmail.com]
>  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 <rb...@verisign.com>
>  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: user-unsubscribe@ant.apache.org For additional
>  commands, e-mail: user-help@ant.apache.org
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>  For additional commands, e-mail: user-help@ant.apache.org
>
>

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


RE: NPE in Ant 1.7.0

Posted by "Buck, Robert" <rb...@verisign.com>.
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

We have a fairly complex build system at VeriSign, so obviously we would
love to see this fixed in 1.7.1. We cannot run multiple targets, ever.

/Bob 

-----Original Message-----
From: Peter Reilly [mailto:peter.kitt.reilly@gmail.com] 
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 <rb...@verisign.com>
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: user-unsubscribe@ant.apache.org For additional
commands, e-mail: user-help@ant.apache.org


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


Re: NPE in Ant 1.7.0

Posted by Peter Reilly <pe...@gmail.com>.
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 <rb...@verisign.com> 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(RuntimeConfigura
>  ble.java:381)
>         at
>  org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigura
>  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(DefaultExecut
>  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: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org