ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lopez, William" <william.lo...@eds.com>
Subject Vizant help
Date Tue, 03 Jun 2003 23:06:41 GMT
I have multiple targets that are very similar in structure (copy & paste
with minor mods)...I keep getting NullPointerExceptions...targets & log
output listed below...any clues?

Thanks,
-Will

  <target name="build-web">
   <vizant antfile="${web.build.dir}/buildWeb.xml"
outfile="${build.base}/vizant/build_web.dot">
     <attrstmt type="edge.ant">
     <attr name="label" value="ant"/>
     <attr name="fontcolor" value="gray70"/>
     <attr name="fontsize" value="9"/>
     </attrstmt>
     <attrstmt type="edge.antcall">
     <attr name="label" value="antcall"/>
     <attr name="fontcolor" value="gray70"/>
     <attr name="fontsize" value="9"/>
     </attrstmt>
     <attrstmt type="edge.depends">
     <attr name="label" value="depends"/>
     <attr name="fontcolor" value="gray70"/>
     <attr name="fontsize" value="9"/>
     </attrstmt>
     <attrstmt type="node.default">
     <attr name="color" value="green"/>
     </attrstmt>
   </vizant>
   <exec executable="dot" failifexecutionfails="false">
     <arg line="-Tpng ${build.base}/vizant/build_web.dot"/>
     <arg line="-o${build.base}/vizant/build_web.png"/>
   </exec>
  </target>

  <target name="build-ear">
   <echo> EAR DIR: ${app.project.dir}</echo>
   <echo> DOT BASE: ${build.base}\vizant</echo>
   <vizant antfile="${app.project.dir}/ear.xml"
outfile="${build.base}/vizant/build_ear.dot">
     <attrstmt type="edge.ant">
       <attr name="label" value="ant"/>
       <attr name="fontcolor" value="gray70"/>
       <attr name="fontsize" value="9"/>
    </attrstmt>
    <attrstmt type="edge.antcall">
     <attr name="label" value="antcall"/>
     <attr name="fontcolor" value="gray70"/>
     <attr name="fontsize" value="9"/>
   </attrstmt>
   <attrstmt type="edge.depends">
     <attr name="label" value="depends"/>
     <attr name="fontcolor" value="gray70"/>
     <attr name="fontsize" value="9"/>
   </attrstmt>
   <attrstmt type="node.default">
     <attr name="color" value="green"/>
   </attrstmt>
   </vizant>
   <exec executable="dot" failifexecutionfails="false">
     <arg line="-Tpng ${build.base}/vizant/build_ear.dot"/>
     <arg line="-o${build.base}/vizant/build_ear.png"/>
   </exec>
  </target>


build-web:
     [exec] Current OS is Windows XP
     [exec] Executing 'dot' with arguments:
     [exec] '-Tpng'
     [exec]
'E:\CM\Projects\NEW_BUILD_PROCESS\EDS_Build\Integration/vizant/build_web.dot
'
     [exec]
'-oE:\CM\Projects\NEW_BUILD_PROCESS\EDS_Build\Integration/vizant/build_web.p
ng'
     [exec] 
     [exec] The ' characters around the executable and arguments are
     [exec] not part of the command.
Execute:Java13CommandLauncher: Executing 'dot' with arguments:
'-Tpng'
'E:\CM\Projects\NEW_BUILD_PROCESS\EDS_Build\Integration/vizant/build_web.dot
'
'-oE:\CM\Projects\NEW_BUILD_PROCESS\EDS_Build\Integration/vizant/build_web.p
ng'

The ' characters around the executable and arguments are
not part of the command.


build-ear:

BUILD FAILED
java.lang.NullPointerException
	at net.sourceforge.vizant.VizPrinter.replace(Unknown Source)
	at net.sourceforge.vizant.VizPrinter.escapeId(Unknown Source)
	at net.sourceforge.vizant.VizPrinter.getQuotedId(Unknown Source)
	at net.sourceforge.vizant.VizPrinter.printTarget(Unknown Source)
	at net.sourceforge.vizant.VizPrinter.printProject(Unknown Source)
	at net.sourceforge.vizant.VizPrinter.print(Unknown Source)
	at net.sourceforge.vizant.Vizant.print(Unknown Source)
	at net.sourceforge.vizant.Vizant.writeDotToOutfile(Unknown Source)
	at net.sourceforge.vizant.Vizant.execute(Unknown Source)
	at org.apache.tools.ant.Task.perform(Task.java:341)
	at org.apache.tools.ant.Target.execute(Target.java:309)
	at org.apache.tools.ant.Target.performTasks(Target.java:336)
	at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
	at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
	at org.apache.tools.ant.Main.runBuild(Main.java:609)
	at org.apache.tools.ant.Main.start(Main.java:196)
	at org.apache.tools.ant.Main.main(Main.java:235)

Total time: 2 seconds
java.lang.NullPointerException
	at net.sourceforge.vizant.VizPrinter.replace(Unknown Source)
	at net.sourceforge.vizant.VizPrinter.escapeId(Unknown Source)
	at net.sourceforge.vizant.VizPrinter.getQuotedId(Unknown Source)
	at net.sourceforge.vizant.VizPrinter.printTarget(Unknown Source)
	at net.sourceforge.vizant.VizPrinter.printProject(Unknown Source)
	at net.sourceforge.vizant.VizPrinter.print(Unknown Source)
	at net.sourceforge.vizant.Vizant.print(Unknown Source)
	at net.sourceforge.vizant.Vizant.writeDotToOutfile(Unknown Source)
	at net.sourceforge.vizant.Vizant.execute(Unknown Source)
	at org.apache.tools.ant.Task.perform(Task.java:341)
	at org.apache.tools.ant.Target.execute(Target.java:309)
	at org.apache.tools.ant.Target.performTasks(Target.java:336)
	at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
	at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
	at org.apache.tools.ant.Main.runBuild(Main.java:609)
	at org.apache.tools.ant.Main.start(Main.java:196)
	at org.apache.tools.ant.Main.main(Main.java:235)  

Mime
View raw message