ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject cvs commit: jakarta-ant/xdocs faq.xml
Date Tue, 30 Jul 2002 14:52:10 GMT
bodewig     2002/07/30 07:52:10

  Modified:    docs     faq.html projects.html
               xdocs    faq.xml
  Log:
  Shell snippet that autodetects Emacs' compile mode and then passes
  -emacs as well as build.compiler.emacs to Ant.
  
  PR: 11056, 11057
  Submitted by:	Ville Skyttä <ville.skytta@iki.fi>
  
  Revision  Changes    Path
  1.33      +31 -3     jakarta-ant/docs/faq.html
  
  Index: faq.html
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/docs/faq.html,v
  retrieving revision 1.32
  retrieving revision 1.33
  diff -u -r1.32 -r1.33
  --- faq.html	15 Jul 2002 11:45:35 -0000	1.32
  +++ faq.html	30 Jul 2002 14:52:10 -0000	1.33
  @@ -1353,9 +1353,37 @@
           regular expressions in your editor that would account for
           this.</p>
                                           <p>You can disable this banner by invoking
Ant with the
  -        <code>-emacs</code> switch. Alternatively, you can add the
  -        following snippet to your <code>.emacs</code> to make Emacs
  -        understand Ant's output.</p>
  +        <code>-emacs</code> switch.  To make Ant autodetect
  +        Emacs' compile mode, put this into your
  +        <code>.antrc</code> (contributed by Ville Skyttä).</p>
  +                                          <div align="left">
  +    <table cellspacing="4" cellpadding="0" border="0">
  +      <tr>
  +        <td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif"
width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  +        <td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1"
height="1" vspace="0" hspace="0" border="0"/></td>
  +        <td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif"
width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  +      </tr>
  +      <tr>
  +        <td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1"
height="1" vspace="0" hspace="0" border="0"/></td>
  +        <td bgcolor="#ffffff"><pre>
  +# Detect (X)Emacs compile mode
  +if [ &quot;$EMACS&quot; = &quot;t&quot; ] ; then 
  +  ANT_ARGS=&quot;$ANT_ARGS -emacs&quot; 
  +  ANT_OPTS=&quot;$ANT_OPTS -Dbuild.compiler.emacs=true&quot; 
  +fi 
  +</pre></td>
  +        <td bgcolor="#023264" width="1"><img src="/images/void.gif" width="1"
height="1" vspace="0" hspace="0" border="0"/></td>
  +      </tr>
  +      <tr>
  +        <td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif"
width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  +        <td bgcolor="#023264" height="1"><img src="/images/void.gif" width="1"
height="1" vspace="0" hspace="0" border="0"/></td>
  +        <td bgcolor="#023264" width="1" height="1"><img src="/images/void.gif"
width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  +      </tr>
  +    </table>
  +  </div>
  +                                        <p>Alternatively, you can add the following
snippet to your
  +        <code>.emacs</code> to make Emacs understand Ant's
  +        output.</p>
                                             <div align="left">
       <table cellspacing="4" cellpadding="0" border="0">
         <tr>
  
  
  
  1.14      +5 -5      jakarta-ant/docs/projects.html
  
  Index: projects.html
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/docs/projects.html,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- projects.html	23 Jul 2002 07:29:48 -0000	1.13
  +++ projects.html	30 Jul 2002 14:52:10 -0000	1.14
  @@ -188,12 +188,12 @@
       <tr><td>
         <blockquote>
                           <p>AntDoc is a tool that generates HTML documentation from
Ant
  -	buildfiles; the generated HTML is inspired from what javadoc
  -	yields. It also offers a simple Ant target launcher named
  -	AntDoc GUI. Ant targets may be launched from the generated
  -	AntDoc HTML pages.</p>
  +        buildfiles; the generated HTML is inspired from what javadoc
  +        yields. It also offers a simple Ant target launcher named
  +        AntDoc GUI. Ant targets may be launched from the generated
  +        AntDoc HTML pages.</p>
                                   <p>AntDoc can be run via an Ant task, AntDoc GUI
can be run
  -	via an Ant task, or via a JVM launch.</p>
  +        via an Ant task, or via a JVM launch.</p>
                                     <table>
                 <tr>
                     <td bgcolor="#039acc" colspan="" rowspan="" 
  
  
  
  1.20      +15 -3     jakarta-ant/xdocs/faq.xml
  
  Index: faq.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/xdocs/faq.xml,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- faq.xml	15 Jul 2002 11:45:35 -0000	1.19
  +++ faq.xml	30 Jul 2002 14:52:10 -0000	1.20
  @@ -612,9 +612,21 @@
           this.</p>
   
           <p>You can disable this banner by invoking Ant with the
  -        <code>-emacs</code> switch. Alternatively, you can add the
  -        following snippet to your <code>.emacs</code> to make Emacs
  -        understand Ant&apos;s output.</p>
  +        <code>-emacs</code> switch.  To make Ant autodetect
  +        Emacs&apos; compile mode, put this into your
  +        <code>.antrc</code> (contributed by Ville Skytt&#228;).</p>
  +
  +        <source><![CDATA[
  +# Detect (X)Emacs compile mode
  +if [ "$EMACS" = "t" ] ; then 
  +  ANT_ARGS="$ANT_ARGS -emacs" 
  +  ANT_OPTS="$ANT_OPTS -Dbuild.compiler.emacs=true" 
  +fi 
  +]]></source>
  +
  +        <p>Alternatively, you can add the following snippet to your
  +        <code>.emacs</code> to make Emacs understand Ant&apos;s
  +        output.</p>
   
           <source><![CDATA[
   (require 'compile)
  
  
  

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


Mime
View raw message