You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by David Crossley <cr...@indexgeo.com.au> on 2002/06/20 11:22:02 UTC

minor issue with upgraded Ant jars

I was going to update Forrest's Ant jars to ant-1.5Beta2,
but there is a small hitch ... or is there?

This used to work ...
./build.sh clean docs

But now this needs to be separate commands ...
./build.sh clean; ./build.sh docs

Is that a problem?

Here is the log if it means anything to anyone.
When using the separate commands there are no
warnings from the "init" target and then build is OK.

========================
[localhost xml-forrest]$ ./build.sh clean docs
Buildfile: build.xml

init:
     [echo]
--------------------------------------------------------------
     [echo] Setting up customized ant tasks...
     [echo] ... done.
     [echo]
--------------------------------------------------------------
     [echo]                       Forrest [2002]                   
     [echo]
--------------------------------------------------------------
     [echo] Building with Apache Ant version 1.5Beta2 compiled on May 31
2002
     [echo] using build file /usr/local/cvs/xml-forrest/build.xml
     [echo]
--------------------------------------------------------------

clean:
   [delete] Deleting directory
/usr/local/cvs/xml-forrest/build/xml-forrest

init:
     [echo]
--------------------------------------------------------------
     [echo] Setting up customized ant tasks...
Trying to override old definition of task user-input
Trying to override old definition of task xml-property
Trying to override old definition of task jtidy
Trying to override old definition of task class-available
Trying to override old definition of task compress-html
     [echo] ... done.

BUILD FAILED
java.lang.NullPointerException
	at java.io.FileInputStream.open(Native Method)
	at java.io.FileInputStream.<init>(FileInputStream.java:70)
	at XmlPropertyTask.execute(XmlPropertyTask.java:102)
	at org.apache.tools.ant.Task.perform(Task.java)
	at org.apache.tools.ant.Task.perform(Task.java)
	at org.apache.tools.ant.Target.execute(Target.java)
	at org.apache.tools.ant.Target.performTasks(Target.java)
	at org.apache.tools.ant.Project.executeTarget(Project.java)
	at org.apache.tools.ant.Project.executeTargets(Project.java)
	at org.apache.tools.ant.Main.runBuild(Main.java)
	at org.apache.tools.ant.Main.start(Main.java)
	at org.apache.tools.ant.Main.main(Main.java)

Total time: 3 seconds
java.lang.NullPointerException
	at java.io.FileInputStream.open(Native Method)
	at java.io.FileInputStream.<init>(FileInputStream.java:70)
	at XmlPropertyTask.execute(XmlPropertyTask.java:102)
	at org.apache.tools.ant.Task.perform(Task.java)
	at org.apache.tools.ant.Task.perform(Task.java)
	at org.apache.tools.ant.Target.execute(Target.java)
	at org.apache.tools.ant.Target.performTasks(Target.java)
	at org.apache.tools.ant.Project.executeTarget(Project.java)
	at org.apache.tools.ant.Project.executeTargets(Project.java)
	at org.apache.tools.ant.Main.runBuild(Main.java)
	at org.apache.tools.ant.Main.start(Main.java)
	at org.apache.tools.ant.Main.main(Main.java)
[localhost xml-forrest]$
========================



Re: minor issue with upgraded Ant jars

Posted by Nicola Ken Barozzi <ni...@apache.org>.
David Crossley wrote:
> I was going to update Forrest's Ant jars to ant-1.5Beta2,
> but there is a small hitch ... or is there?
> 
> This used to work ...
> ./build.sh clean docs
> 
> But now this needs to be separate commands ...
> ./build.sh clean; ./build.sh docs
> 
> Is that a problem?

Well, current CVS centipede uses 1.5b2... :-/
Anyway, did you change the scripts too? They have changed.

-- 
Nicola Ken Barozzi                   nicolaken@apache.org
             - verba volant, scripta manent -
    (discussions get forgotten, just code remains)
---------------------------------------------------------------------


Re: minor issue with upgraded Ant jars

Posted by David Crossley <cr...@indexgeo.com.au>.
Nicola Ken Barozzi wrote:
> Stefan Bodewig wrote:
> > David Crossley wrote:
> >>I was going to update Forrest's Ant jars to ant-1.5Beta2,
> >>but there is a small hitch ... or is there?
> > 
> >>	at XmlPropertyTask.execute(XmlPropertyTask.java:102)
> > 
> > line 102 is a comment in front of the constructor in the
> > source of 1.5beta2.
> > 
> > Oh wait - 1.5beta2 has a built-in XmlPropertyTask which lives
> > in org.apache.tools.ant.taskdefs, not the anonymous package.
> > Are you <taskdef>ing xmlproperty somewhere?
> 
> in init.xtarget:
> 
>   <taskdef name="xml-property"
>            classname="XmlPropertyTask"
>            classpath="${tools.anttasks.dir}"/>
> 
> the Ant task was submitted by me, and is the enhanced version
> of the XmlPropertyTask :-)
> 
> The 0.2 Centipede started using it, but this is still 0.1.
> 
> Ok, let's port to the new Centipede to get the new Ant, I'll do it.
> Maybe not today, maybe not tomorrow, but I'll do my best, since I'm 
> starting to need it (ie it's itching ever more ;-)

Thanks Ken, that would be excellent. Forrest would greatly
benefit from having you do it. I do not have the expertise
and we have very little active committers.

I suppose that there are other stuff that we need to upgrade.
Cocoon should probably wait till 2.0.3 due soon. What about
Avalon jars?
--David



Re: minor issue with upgraded Ant jars

Posted by Nicola Ken Barozzi <ni...@apache.org>.
Stefan Bodewig wrote:
> On 20 Jun 2002, David Crossley <cr...@indexgeo.com.au> wrote:
> 
> 
>>I was going to update Forrest's Ant jars to ant-1.5Beta2,
>>but there is a small hitch ... or is there?
> 
> 
>>	at XmlPropertyTask.execute(XmlPropertyTask.java:102)
> 
> 
> line 102 is a comment in front of the constructor in the source of
> 1.5beta2.
> 
> Oh wait - 1.5beta2 has a built-in XmlPropertyTask which lives in
> org.apache.tools.ant.taskdefs, not the anonymous package.  Are you
> <taskdef>ing xmlproperty somewhere?

in init.xtarget:

  <taskdef name="xml-property"
           classname="XmlPropertyTask"
           classpath="${tools.anttasks.dir}"/>

the Ant task was submitted by me, and is the enhanced version of the 
XmlPropertyTask :-)

The 0.2 Centipede started using it, but this is still 0.1.

Ok, let's port to the new Centipede to get the new Ant, I'll do it.
Maybe not today, maybe not tomorrow, but I'll do my best, since I'm 
starting to need it (ie it's itching ever more ;-)

-- 
Nicola Ken Barozzi                   nicolaken@apache.org
             - verba volant, scripta manent -
    (discussions get forgotten, just code remains)
---------------------------------------------------------------------


Re: minor issue with upgraded Ant jars

Posted by Stefan Bodewig <bo...@apache.org>.
On 20 Jun 2002, David Crossley <cr...@indexgeo.com.au> wrote:

> I was going to update Forrest's Ant jars to ant-1.5Beta2,
> but there is a small hitch ... or is there?

> 	at XmlPropertyTask.execute(XmlPropertyTask.java:102)

line 102 is a comment in front of the constructor in the source of
1.5beta2.

Oh wait - 1.5beta2 has a built-in XmlPropertyTask which lives in
org.apache.tools.ant.taskdefs, not the anonymous package.  Are you
<taskdef>ing xmlproperty somewhere?

Stefan