ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Donald <dona...@apache.org>
Subject Re: PROPOSAL: loading tasks from jars for Ant 1.5
Date Thu, 11 Oct 2001 21:14:05 GMT
On Fri, 12 Oct 2001 04:46, Ovidiu Predescu wrote:
> > should work. It used to ... at one stage avalons build file did that. Not
> > sure if anything has changed in ant to make this harder?
>
> When I do this, I get an NPE in ProjectHelper:
>
> java.lang.NullPointerException
>         at
> org.apache.tools.ant.ProjectHelper.configure(ProjectHelper.java:651) at
> org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigurable
>.java:143) at org.apache.tools.ant.Task.maybeConfigure(Task.java:178) at
> org.apache.tools.ant.UnknownElement.handleChildren(UnknownElement.java:139)
> at
> org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:88)
> at org.apache.tools.ant.Task.perform(Task.java:216)
>         at org.apache.tools.ant.Target.execute(Target.java:164)
>         at org.apache.tools.ant.Target.performTasks(Target.java:182)
>         at org.apache.tools.ant.Project.executeTarget(Project.java:601)
>         at org.apache.tools.ant.Project.executeTargets(Project.java:560)
>         at org.apache.tools.ant.Main.runBuild(Main.java:454)
>         at org.apache.tools.ant.Main.start(Main.java:153)
>         at org.apache.tools.ant.Main.main(Main.java:176)
>
> The relevant fragment in my build.xml is:
>
>   <target name="soap-test" depends="jar">
>     <taskdef resource="META-INF/Anteater.tasks" classpathref="tomcat-run"/>
>     <http debug="0">
>       <comment>Post a simple SOAP request</comment>
>       <soapRequest
> href="http://services.xmltoday.com/vx_engine/soap-trigger.pperl"
> content="test/requests/get-quote2"
> 		   action="urn:vgx-realtime">
>         <match responseCode="200">
>           <xpath select="/SOAP-ENV:Envelope/SOAP-ENV:Body"/>
>           <header name="Date" property="result"/>
>         </match>
>       </soapRequest>
>     </http>
>   </target>
>
> The "jar" target builds the jar file containing my new task
> definitions. The "tomcat-run" reference contains in it the newly built
> jar file.
>
> If this used to work, I'll investigate to see what's going on. If you
> have any ideas, I don't mind if you look at it too ;-)

odd ... looks like it should run. I will check it out tonight to see if 
anything has busted/changed in ants core ;)

-- 
Cheers,

Pete

------------------------------------------
I just hate 'yes' men, don't you Smithers?
------------------------------------------

Mime
View raw message