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?
-- 
View this message in context: 
http://ant.1045680.n5.nabble.com/java-lang-NullPointerException-tp3271316p3271316.html
Sent from the Ant - Users mailing list archive at Nabble.com.

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

Reply via email to