ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <DDevie...@lgc.com>
Subject RE: Listing targets and their dependants
Date Thu, 20 Jun 2002 15:52:08 GMT
Use the following task, replacing the style and executable locations with
your system specific values, and your build file will have .dot and .gif
files generated next to it. --DD

PS: <style> in Ant 1.4.1 doesn't work if your build file uses entity include
and your project basedir is ".." though!!!

  <!-- ====================================================
       Create a GIF showing the dependencies between targets of this build.
    -->
  <target name="build.gif"
          description="Create a graphical representation of this build.xml">

    <style in="${ant.file}"
           out="${ant.file}.dot"
           style="ant2dot.xsl" />

    <exec executable="tools/graphviz/bin/dot.exe">
      <arg value="-Tgif" />
      <arg file="${ant.file}.dot" />
      <arg value="-o${ant.file}.gif" />
    </exec>

  </target><!-- build.gif -->

-----Original Message-----
From: Stuart Moore [mailto:SMoore@neverfailgroup.com] 
Sent: Thursday, June 20, 2002 8:48 AM
To: 'Ant Users List'
Subject: RE: Listing targets and their dependants


Thanks Erik and David for your help. Apologies for not going far enough back
in the archives to spot that one.

Cheers Stu
> -----Original Message-----
> From: Erik Hatcher [mailto:jakarta-ant@ehatchersolutions.com]
> Sent: 20 June 2002 14:43
> To: Ant Users List
> Subject: Re: Listing targets and their dependants
> 
> 
> Have a look back at the archives for (around June 10) for the 
> ant2dot XSL.
> Its quite slick - essentially a build.xml -> XSL -> DOT file 
> format, and
> then run that through the dot executable to generate a 
> dependency graph.
> 
>     Erik
> 
> 
> ----- Original Message -----
> From: "Stuart Moore" <SMoore@neverfailgroup.com>
> To: "Ant Users (E-mail)" <ant-user@jakarta.apache.org>
> Sent: Thursday, June 20, 2002 9:17 AM
> Subject: Listing targets and their dependants
> 
> 
> > Hi,
> >
> > Our build.xml file is becoming quite long with many 
> dependant tasks, and I
> > was wondering if there is a way to get a breakdown by task 
> that lists all
> > the dependant targets. Whilst -projecthelp is a useful 
> summary it is not
> > very verbose.
> >
> > Has anyone else tackled this before and found a suitable solution.
> >
> > Thanks in advance
> >
> > Stu
> >
> > Stuart Moore
> > QA Engineer
> > Neverfail(tm) Group
> >
> > t: +44 (0)870 777 1500
> > f: +44 (0)870 774 2211
> >
> > e: smoore@neverfailgroup.com
> > w: www.neverfailgroup.com
> > For news on business continuity worldwide visit: 
www.globalcontinuity.com
>
> --
> To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message