Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 71963 invoked from network); 2 Oct 2003 01:19:02 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 2 Oct 2003 01:19:02 -0000 Received: (qmail 17217 invoked by uid 500); 2 Oct 2003 01:18:35 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 17187 invoked by uid 500); 2 Oct 2003 01:18:35 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 17174 invoked from network); 2 Oct 2003 01:18:35 -0000 Received: from unknown (HELO web40506.mail.yahoo.com) (66.218.78.123) by daedalus.apache.org with SMTP; 2 Oct 2003 01:18:35 -0000 Message-ID: <20031002011844.10144.qmail@web40506.mail.yahoo.com> Received: from [192.18.42.10] by web40506.mail.yahoo.com via HTTP; Wed, 01 Oct 2003 18:18:44 PDT Date: Wed, 1 Oct 2003 18:18:44 -0700 (PDT) From: Dan Earfull Subject: Re: Adding vizant tag to ant tag set? To: Ant Users List In-Reply-To: <5.2.1.1.0.20030930224400.02897e90@shell.visi.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi, I followed Jake's advice. He got me moving in the right direction. Here is what I saw. I edited and then I inspected my build.xml file: [root@localhost ant]# cat build.xml You probably need to install GraphViz which is a native program, not a Java library >>> http://www.research.att.com/sw/tools/graphviz/ [root@localhost ant]# Next, I ran ant: [root@localhost ant]# ant Buildfile: build.xml vizant: [exec] Error: Could not find/open font : Times in /usr/X11R6/lib/X11/fonts/TrueType:/usr/X11R6/lib/X11/fonts/truetype:/usr/X11R6/lib/X11/fonts/TTF:/usr/share/fonts/TrueType:/usr/share/fonts/truetype:/usr/openwin/lib/X11/fonts/TrueType:/usr/X11R6/lib/X11/fonts/Type1:/usr/common/share/fonts/ttf BUILD SUCCESSFUL Total time: 1 second [root@localhost ant]# At first, I was not sure how to troubleshoot this although it was obvious that I got the vizant tag recognized by ant. I inspected the directory for build.dot: [root@localhost ant]# ls -l build.dot -rw-r--r-- 1 root root 59 Oct 1 17:25 build.dot [root@localhost ant]# cat build.dot digraph "G" { graph ["rankdir"="LR",]; "vizant"; } [root@localhost ant]# Good; ant created build.dot for me. I tried the "dot" command line which ant was trying: [root@localhost ant]# dot -Tpng build.dot -o build.png Error: Could not find/open font : Times in /usr/X11R6/lib/X11/fonts/TrueType:/usr/X11R6/lib/X11/fonts/truetype:/usr/X11R6/lib/X11/fonts/TTF:/usr/share/fonts/TrueType:/usr/share/fonts/truetype:/usr/openwin/lib/X11/fonts/TrueType:/usr/X11R6/lib/X11/fonts/Type1:/usr/common/share/fonts/ttf [root@localhost ant]# I studied my X-windows setup: [root@localhost ant]# which xterm /usr/X11R6/bin/xterm [root@localhost ant]# cd /usr/X11R6 /usr/X11R6 [root@localhost X11R6]# find . -name '*Times*' -print ./man/man3/XtLastTimestampProcessed.3x.gz [root@localhost X11R6]# I saw no evidence of a "Times" font which might be tucked away in a corner somewhere. I studied the dot executable. [root@localhost X11R6]# dot -h dot: option -h unrecognized Usage: dot [-Vv?] [-(GNE)name=val] [-(Tlso)] -V - Print version and exit -v - Enable verbose mode -Gname=val - Set graph attribute 'name' to 'val' -Nname=val - Set node attribute 'name' to 'val' -Ename=val - Set edge attribute 'name' to 'val' -Tv - Set output format to 'v' -lv - Use external library 'v' -ofile - Write output to 'file' -q[l] - Set level of message suppression (=1) -s[v] - Scale input by 'v' (=72) -y - Invert y coordinate in output [root@localhost X11R6]# I found some online documentation on "dot": http://www.graphviz.org/cgi-bin/man?dot I enhanced my "dot" command line: [root@localhost ant]# [root@localhost ant]# dot -Nfontname="cour" -Tpng build.dot -o build.png [root@localhost ant]# Oh boy; no error message. I looked at build.png with my mozilla browser; it showed me a pretty ellipse containing the string "vizant". I then went back and enhanced my build.xml file and then ran ant. [root@localhost ant]# cat build.xml You probably need to install GraphViz which is a native program, not a Java library >>> http://www.research.att.com/sw/tools/graphviz/ [root@localhost ant]# ant Buildfile: build.xml vizant: BUILD SUCCESSFUL Total time: 1 second [root@localhost ant]# ls -l build.dot build.png build.xml -rw-r--r-- 1 root root 59 Oct 1 18:11 build.dot -rw-r--r-- 1 root root 505 Oct 1 18:11 build.png -rw-r--r-- 1 root root 713 Oct 1 18:10 build.xml [root@localhost ant]# I looked at build.png with my mozilla browser; it showed me a pretty ellipse containing the string "vizant". -Dan __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org