You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Antoine Levy-Lambert <an...@gmx.de> on 2006/10/16 02:29:55 UTC

Ant 1.7.0Beta3 released

Hi,

Ant 1.7.0Beta3 has just been released. This will be visible on our
website in one hour at most.

A number of bugs have been corrected since Ant 1.7.0Beta2. One important
change or correction is that the processing of references is now
deferred to the time of target execution, not done when the build files
are parsed.

Regards,

Antoine

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


Re: Ant 1.7.0Beta3 released

Posted by Chris Chiasson <ch...@chiasson.name>.
Thank you for working so hard on Ant. It is very useful to me.

On 10/15/06, Antoine Levy-Lambert <an...@gmx.de> wrote:
> Hi,
>
> Ant 1.7.0Beta3 has just been released. This will be visible on our
> website in one hour at most.
>
> A number of bugs have been corrected since Ant 1.7.0Beta2. One important
> change or correction is that the processing of references is now
> deferred to the time of target execution, not done when the build files
> are parsed.
>
> Regards,
>
> Antoine
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>


-- 
http://chris.chiasson.name/

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


Re: Ant 1.7.0Beta3 released

Posted by Chris Chiasson <ch...@chiasson.name>.
Thank you for working so hard on Ant. It is very useful to me.

On 10/15/06, Antoine Levy-Lambert <an...@gmx.de> wrote:
> Hi,
>
> Ant 1.7.0Beta3 has just been released. This will be visible on our
> website in one hour at most.
>
> A number of bugs have been corrected since Ant 1.7.0Beta2. One important
> change or correction is that the processing of references is now
> deferred to the time of target execution, not done when the build files
> are parsed.
>
> Regards,
>
> Antoine
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>


-- 
http://chris.chiasson.name/

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


Re: How to resolve a NullPointerException

Posted by Antoine Levy-Lambert <an...@gmx.de>.
Hello,

how do you run this programatically ?

one common source of null pointer exceptions in Ant API use is to forget to set a project reference on task objects or datatypes. The null pointer exception happens then as soon as the task or the datatype tries to log something.

if you have a NPE when using command line Ant, run 

ant -verbose

(-verbose is a command line argument)

this will give you a stack trace.

Regards,

Antoine
-------- Original-Nachricht --------
Datum: Mon, 16 Oct 2006 17:41:07 +0300
Von: "tharanga wijethilake" <th...@ee.oulu.fi>
An: "Ant Users List" <us...@ant.apache.org>
Betreff: How to resolve a NullPointerException

> Hi all,
> I am tring to run this Ant file using a java program. 
> When I run this using "Ant run" option provided in eclipse it runs with
> out any trouble. 
> <project name="bundleRunner" default="submit_a_bundle" basedir=".">
> 
> <property name="ant.classpath" location="lib"/>
> 
> <taskdef name="smfbd.submitJarBundle"
> classname="com.ibm.ive.eccomm.bde.ui.tooling.ant.SubmitJarBundle"> 
> 
> <classpath>
> 
> <fileset dir="lib">
> 
> <include name="${ant.classpath}/smfbdTasks.jar"/>
> 
> <include name="${ant.classpath}/bde.jar"/>
> 
> </fileset> 
> 
> </classpath>
> 
> </taskdef>
> 
> <target name="submit_a_bundle"> 
> 
> <smfbd.submitJarBundle bundlepath="/HelloWorld" replace="true">
> 
> <bundleserver host="localhost" user="Admin" password="Admin" port="8080"
> webapp="/smf"/>
> 
> </smfbd.submitJarBundle>
> 
> </target>
> 
> </project>
> 
> 
> but when I try to run prgrammtically it gives a null pointer. Please Could
> someone tell me how am i supose to find from where the exception throws.
> submit_a_bundle:
> 
> BUILD FAILED
> 
> C:\Documents and Settings\tharanga\My
> Documents\IBM\wssitedev51\workspace\AntRunner\build.xml:12: java.lang.NullPointerException
> 
> Total time: 2 seconds
> 
> 
>  It is line 12 but is it the "bundlepath" or is it because of the related
> class file for smfbd task is missing. Thank you very much.
> 
> 
> 

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


How to resolve a NullPointerException

Posted by tharanga wijethilake <th...@ee.oulu.fi>.
Hi all,
I am tring to run this Ant file using a java program. 
When I run this using "Ant run" option provided in eclipse it runs with out any trouble. 
<project name="bundleRunner" default="submit_a_bundle" basedir=".">

<property name="ant.classpath" location="lib"/>

<taskdef name="smfbd.submitJarBundle" classname="com.ibm.ive.eccomm.bde.ui.tooling.ant.SubmitJarBundle"> 

<classpath>

<fileset dir="lib">

<include name="${ant.classpath}/smfbdTasks.jar"/>

<include name="${ant.classpath}/bde.jar"/>

</fileset> 

</classpath>

</taskdef>

<target name="submit_a_bundle"> 

<smfbd.submitJarBundle bundlepath="/HelloWorld" replace="true">

<bundleserver host="localhost" user="Admin" password="Admin" port="8080" webapp="/smf"/>

</smfbd.submitJarBundle>

</target>

</project>


but when I try to run prgrammtically it gives a null pointer. Please Could someone tell me how am i supose to find from where the exception throws.
submit_a_bundle:

BUILD FAILED

C:\Documents and Settings\tharanga\My Documents\IBM\wssitedev51\workspace\AntRunner\build.xml:12: java.lang.NullPointerException

Total time: 2 seconds


 It is line 12 but is it the "bundlepath" or is it because of the related class file for smfbd task is missing. Thank you very much.



Tharanga Wijethilake


Re: Ant 1.7.0Beta3 released

Posted by Dominique Devienne <dd...@gmail.com>.
> > But whats the reason to sticking to Xerces 2.6.2 ?
>
> Like I said: its just been upgraded.
>

I think you forgot to update WHATSNEW steve. Thanks, --DD

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


Re: Ant 1.7.0Beta3 released

Posted by Steve Loughran <st...@apache.org>.
Prashant wrote:
> 
> Steve Loughran wrote:
>> Prashant wrote:
>>> Is there any reason why ANT 1.7 still distributes Xerces 2.6.2 in its 
>>> lib [1] ? While the current release version of Xerces is 2.8 with 
>>> support for DOM Level 3, Schema Validation, Not to mention the bug 
>>> fixes.
>>
>> As of 30 seconds ago, it distributes v 2.8.1. Version 2.6.2 does do 
>> XSD validation BTW, which is why Ant1.7 has a <schemavalidate> task.
> 
> Ah, yes. I should have said JAXP 1.3 Schema Validation API. The thing 
> thats returned by SchemaFactory.newSchema()[1]
> 
> But whats the reason to sticking to Xerces 2.6.2 ? 


Like I said: its just been upgraded.

 > Anything more than  "Don't fix what not broken" ?

Its just laziness. We have an implicit trust in the quality of other 
open source products, or, more to the point, know that SVN_HEAD is where 
bug fixes go. Its just Ant's use of XML is limited to DTD-free, 
schema-free, namespace aware XML. We dont see the main problems that you 
may if you go near the PVSI, and dont use bleeding edge APIs that dont 
work in older JVM versions. We also suspect that people running Ant in 
IDEs or embedded use may not even use Xerces, so try not to hard-code 
dependence on Xerces, either.


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


Re: Ant 1.7.0Beta3 released

Posted by Prashant <pr...@pramati.com>.
Steve Loughran wrote:
> Prashant wrote:
>> Is there any reason why ANT 1.7 still distributes Xerces 2.6.2 in its 
>> lib [1] ? While the current release version of Xerces is 2.8 with 
>> support for DOM Level 3, Schema Validation, Not to mention the bug 
>> fixes.
>
> As of 30 seconds ago, it distributes v 2.8.1. Version 2.6.2 does do 
> XSD validation BTW, which is why Ant1.7 has a <schemavalidate> task.

Ah, yes. I should have said JAXP 1.3 Schema Validation API. The thing 
thats returned by SchemaFactory.newSchema()[1]

But whats the reason to sticking to Xerces 2.6.2 ? Anything more than 
"Don't fix what not broken" ?

-Prashant
[1]:jaxp: Fast and Easy XML Processing 
<https://jaxp.dev.java.net/article/jaxp-1_3-article.html>
>
>>
>> Last time i tried to compile code that uses the DOM Level 3 API, the 
>> xml-apis.jar in ant/lib got in the way and i had to use 
>> java.endorsed.dirs mechanism in ANT_OPTS.
>
> Ah, joy, the java endorsed dirs mechanism. If that is causing a 
> problem for you, then the version of xml-apis in ant/lib is moot; you 
> need to get a better version into an endorsed directory.
>
>
>>
>> -Prashant
>> [1]:http://svn.apache.org/viewvc/ant/core/trunk/lib/
>> PS: I have not downloaded the 1.7, i am not sure if the ANT downloads 
>> later versions of Xerces from repositories at build time.
>
> Cant do that, because in the Maven repositories
>
> -xml-apis is at 2.6.0
> -xerces is at 2.8.1, and has a dependency on xml-apis 1.3.03.
>
> We keep it under SCM, as it is the only thing needed at boot time. 
> Historically it was also there because there was no bundled Java 
> parser, and when one did come, it was only Crimson. But for the 1.5+ 
> world, we could think about doing a no-parser distro. Not for 1.7, 
> there will be too many surprises related to manifests. Something to 
> think of.
>
> -Steve
>
> ---------------------------------------------------------------------
> 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: Ant 1.7.0Beta3 released

Posted by Steve Loughran <st...@apache.org>.
Prashant wrote:
> Is there any reason why ANT 1.7 still distributes Xerces 2.6.2 in its 
> lib [1] ? While the current release version of Xerces is 2.8 with 
> support for DOM Level 3, Schema Validation, Not to mention the bug fixes.

As of 30 seconds ago, it distributes v 2.8.1. Version 2.6.2 does do XSD 
validation BTW, which is why Ant1.7 has a <schemavalidate> task.

> 
> Last time i tried to compile code that uses the DOM Level 3 API, the 
> xml-apis.jar in ant/lib got in the way and i had to use 
> java.endorsed.dirs mechanism in ANT_OPTS.

Ah, joy, the java endorsed dirs mechanism. If that is causing a problem 
for you, then the version of xml-apis in ant/lib is moot; you need to 
get a better version into an endorsed directory.


> 
> -Prashant
> [1]:http://svn.apache.org/viewvc/ant/core/trunk/lib/
> PS: I have not downloaded the 1.7, i am not sure if the ANT downloads 
> later versions of Xerces from repositories at build time.

Cant do that, because in the Maven repositories

-xml-apis is at 2.6.0
-xerces is at 2.8.1, and has a dependency on xml-apis 1.3.03.

We keep it under SCM, as it is the only thing needed at boot time. 
Historically it was also there because there was no bundled Java parser, 
and when one did come, it was only Crimson. But for the 1.5+ world, we 
could think about doing a no-parser distro. Not for 1.7, there will be 
too many surprises related to manifests. Something to think of.

-Steve

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


Re: Ant 1.7.0Beta3 released

Posted by Prashant <pr...@pramati.com>.
Is there any reason why ANT 1.7 still distributes Xerces 2.6.2 in its 
lib [1] ? While the current release version of Xerces is 2.8 with 
support for DOM Level 3, Schema Validation, Not to mention the bug fixes.

Last time i tried to compile code that uses the DOM Level 3 API, the 
xml-apis.jar in ant/lib got in the way and i had to use 
java.endorsed.dirs mechanism in ANT_OPTS.

-Prashant
[1]:http://svn.apache.org/viewvc/ant/core/trunk/lib/
PS: I have not downloaded the 1.7, i am not sure if the ANT downloads 
later versions of Xerces from repositories at build time.

Antoine Levy-Lambert wrote:
> Hi,
>
> Ant 1.7.0Beta3 has just been released. This will be visible on our
> website in one hour at most.
>
> A number of bugs have been corrected since Ant 1.7.0Beta2. One important
> change or correction is that the processing of references is now
> deferred to the time of target execution, not done when the build files
> are parsed.
>
> Regards,
>
> Antoine
>
> ---------------------------------------------------------------------
> 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: Ant 1.7.0Beta3 released

Posted by Steve Loughran <st...@apache.org>.
James Abley wrote:
> Steve Loughran wrote:
>> Hans Schwaebli wrote:
>>
>>> At least you should have released quickly a Ant version with built in 
>>> support for JUnit 4.
>>
>> Alternatively, "Junit4 should have been backwards compatilbe with the 
>> previous version. See point (1)
>>
> 
> +1
> 
> To add another thing to consider, perhaps the <junit/> task should be an 
> externally owned task, similarly to <testng/>, rather than something 
> that is part of ANT, even as an optional task. Then the JUnit4 guys, or 
> whoever owns the accompanying task, would be responsible for providing 
> an updated version.
> 

we had a skype teleconf with them on this topic a while back, and that's 
effectively what is going to happen. ant's <junit> is constrained to be 
backwards compatible and run on Java1.2, 1.3+, whereas junit's own task 
would be able to be java5 only, and in perfect sync with junit releases. 
They would of course have to deal with changes across ant's versions.

However, the junit team lack the time and skills to do ant tasks. So it 
will come to us -ant users and developers to write (and possibly 
maintain) the task. We need to not only give it to them, we need to show 
them how to maintain it.

FYI, I have been doing some stuff with hosting junit tests under 
smartfrog, our deployment framework:

http://video.google.co.uk/videosearch?q=smartfrog
http://smartfrog.org/presentations/distributed_testing_with_smartfrog_slides.pdf

There we can run tests in one process, and feed the results to another 
by way of java RMI; I have a serialized representation of test results 
that I can feed to another process. Having something like that inside 
<junit> would let us run the logging inside Ant, while the tests would 
be in their own process. I also have a different format for test 
results, one that streams out instead of buffers until the end.

I'd like the same stuff in a <junit4> task, ideally. In fact, ideally, 
I'd like the classes representing junit-results-on-the-wire to be in 
junit.jar, rather than my code.

-Steve

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


Re: Ant 1.7.0Beta3 released

Posted by James Abley <ja...@volantis.com>.
Steve Loughran wrote:
> Hans Schwaebli wrote:
> 
>> At least you should have released quickly a Ant version with built in 
>> support for JUnit 4.
> 
> Alternatively, "Junit4 should have been backwards compatilbe with the 
> previous version. See point (1)
> 

+1

To add another thing to consider, perhaps the <junit/> task should be an 
externally owned task, similarly to <testng/>, rather than something 
that is part of ANT, even as an optional task. Then the JUnit4 guys, or 
whoever owns the accompanying task, would be responsible for providing 
an updated version.

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

James

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


Re: Ant 1.7.0Beta3 released

Posted by Steve Loughran <st...@apache.org>.
Hans Schwaebli wrote:
> Why does it take so long to finish the next version of Ant?

1. we go through a rigorous beta test phase as it is the best way of 
making sure you havent broken anything. Even so, we know that lots of 
people will not touch it until version 1.7.0 ships, and there will be a 
flurry of bugreps, usually related to odd system configurations

> Because of the delay of the next Ant version, the next version of Cruise Control is delayed too.

2. That's a shame. I've been using Luntbuild and it binds quite nicely 
to Ant1.7

> At least you should have released quickly a Ant version with built in support for JUnit 4.

Alternatively, "Junit4 should have been backwards compatilbe with the 
previous version. See point (1)


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


Re: Ant 1.7.0Beta3 released

Posted by Hans Schwaebli <ha...@yahoo.com>.
Why does it take so long to finish the next version of Ant?

Because of the delay of the next Ant version, the next version of Cruise Control is delayed too.
 
At least you should have released quickly a Ant version with built in support for JUnit 4.


Antoine Levy-Lambert <an...@gmx.de> wrote: Hi,

Ant 1.7.0Beta3 has just been released. This will be visible on our
website in one hour at most.

A number of bugs have been corrected since Ant 1.7.0Beta2. One important
change or correction is that the processing of references is now
deferred to the time of target execution, not done when the build files
are parsed.

Regards,

Antoine

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



 		
---------------------------------
 All-new Yahoo! Mail - Fire up a more powerful email and get things done faster.