A full stack trace would be useful to figure out what is going on.
Also, what is "verup" ? Is it a custom task ? a macrodef ?
Regards,
Antoine
On 11/18/10 2:15 PM, ritchie wrote:
> This is a part of my script.
>
> <target name="p4changes">
> <exec executable="${P4HOME}\p4.exe" spawn="false"
> failonerror="true"
> outputproperty="Version" >
> <arg value="changes"/>
> <arg value="-m1"/>
> <arg value="${file.name}"/>
> </exec>
> <antcall target="setversion"/>
> </target>
>
> <target name="setversion" >
> <echo message= "${Version}"/>
> <taskdef name="verup" classname="openworks.ant.UpdateVersion"/>
> <verup file=
> "${workspaces.dir}\RPCA\main\rpcacode\services\Math\web\Data\Version.xml"
> Version="${Version}" />
> </target>
>
> I am getting the error when the script tries to exceute the line <verup
> file= .....
>
>
> BUILD FAILED
> C:\apache-ant-1.7.0\bin\changes.xml:34: java.lang.NullPointerException
> at
> org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
> a:115)
>
> Can anyone suggest what could be wrong?
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]