ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bemowski, Paul A" <pbemow...@z-tel.com>
Subject Null Pointer Exception??
Date Wed, 02 Aug 2000 15:07:24 GMT

I started working with ant 2 days ago and I love it.  My biggest problem so
far is the lack of support documentation when I reach a "snag".   So, here's
my first big snag.  I'm geting a null pointer related in some way to my
definition of <src> in the java build section of my build.xml.  

/ztel/zteldev>./build.bemo.sh
Starting ant build...
Buildfile: /ztel/zteldev/build2.xml

BUILD FAILED

/ztel/zteldev/build2.xml:19: 
java.lang.NullPointerException: 
        at
org.apache.tools.ant.ProjectHelper.configure(ProjectHelper.java:428)
        at
org.apache.tools.ant.ProjectHelper.access$5(ProjectHelper.java:423)
        at
org.apache.tools.ant.ProjectHelper$NestedElementHandler.init(ProjectHelper.j
ava:398)
        at
org.apache.tools.ant.ProjectHelper$TaskHandler.startElement(ProjectHelper.ja
va:372)
        at com.sun.xml.parser.Parser.maybeElement(Parser.java:1391)
        at com.sun.xml.parser.Parser.content(Parser.java:1499)
        at com.sun.xml.parser.Parser.maybeElement(Parser.java:1400)
        at com.sun.xml.parser.Parser.content(Parser.java:1499)
        at com.sun.xml.parser.Parser.maybeElement(Parser.java:1400)
        at com.sun.xml.parser.Parser.content(Parser.java:1499)
        at com.sun.xml.parser.Parser.maybeElement(Parser.java:1400)
        at com.sun.xml.parser.Parser.parseInternal(Parser.java:492)
        at com.sun.xml.parser.Parser.parse(Parser.java:284)
        at org.apache.tools.ant.ProjectHelper.parse(ProjectHelper.java:102)
        at
org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:84)
        at org.apache.tools.ant.Main.runBuild(Main.java:264)
        at org.apache.tools.ant.Main.main(Main.java:107)

Total time: 7 seconds
ant build complete
/ztel/zteldev>

Can anyone shed any light.

Paul Bemowski
Java Engineer
Z-Tel Technologies



<project name="ztel_full_build" default="buildJava" basedir="/ztel/zteldev">

   <target name="init">
      <tstamp/>
      <property name="SRC_DIR" value="/ztel/zteldev/src" />
      <property name="LIB_DIR" value="/ztel/zteldev/lib" />
      
      <echo message="LIB_DIR set to ${LIB_DIR}" />
      <echo message="SRC_DIR set to ${SRC_DIR}" />
      <echo message="BASE_CLASSPATH set to ${CLASSPATH}" />
   </target>

   <target name="buildJava" depends="clean">
      <javac destdir="${LIB_DIR}/java" >
         <classpath>
	    <pathelement path="${CLASSPATH}" />
	 </classpath>

         <src>
	    <pathelement location="${SRC_DIR}/java/com/ztel/config" />
	 </src>

      </javac>
   </target>

   <target name="clean" depends="init">
      <deltree dir="${LIB_DIR}/java/com" />
   </target>
</project>

Mime
View raw message