From e9029b083b42993b172fac0b7c3a8236cf152816 Mon Sep 17 00:00:00 2001 From: Stefan Bodewig Date: Tue, 30 Jul 2002 14:52:10 +0000 Subject: [PATCH] Shell snippet that autodetects Emacs' compile mode and then passes -emacs as well as build.compiler.emacs to Ant. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR: 11056, 11057 Submitted by: Ville Skytt� git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273184 13f79535-47bb-0310-9956-ffa450edef68 --- docs/faq.html | 34 +++++++++++++++++++++++++++++++--- docs/projects.html | 10 +++++----- xdocs/faq.xml | 18 +++++++++++++++--- 3 files changed, 51 insertions(+), 11 deletions(-) diff --git a/docs/faq.html b/docs/faq.html index 1ca2a30a2..31ba33241 100644 --- a/docs/faq.html +++ b/docs/faq.html @@ -1353,9 +1353,37 @@ shell-prompt> cat < foo regular expressions in your editor that would account for this.

You can disable this banner by invoking Ant with the - -emacs switch. Alternatively, you can add the - following snippet to your .emacs to make Emacs - understand Ant's output.

+ -emacs switch. To make Ant autodetect + Emacs' compile mode, put this into your + .antrc (contributed by Ville Skyttä).

+
+ + + + + + + + + + + + + + + + +
+# Detect (X)Emacs compile mode
+if [ "$EMACS" = "t" ] ; then 
+  ANT_ARGS="$ANT_ARGS -emacs" 
+  ANT_OPTS="$ANT_OPTS -Dbuild.compiler.emacs=true" 
+fi 
+
+
+

Alternatively, you can add the following snippet to your + .emacs to make Emacs understand Ant's + output.

diff --git a/docs/projects.html b/docs/projects.html index 45d2e0e9c..6fbdbea50 100644 --- a/docs/projects.html +++ b/docs/projects.html @@ -188,12 +188,12 @@

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.

+ 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.

AntDoc can be run via an Ant task, AntDoc GUI can be run - via an Ant task, or via a JVM launch.

+ via an Ant task, or via a JVM launch.

cat < foo this.

You can disable this banner by invoking Ant with the - -emacs switch. Alternatively, you can add the - following snippet to your .emacs to make Emacs - understand Ant's output.

+ -emacs switch. To make Ant autodetect + Emacs' compile mode, put this into your + .antrc (contributed by Ville Skyttä).

+ + + +

Alternatively, you can add the following snippet to your + .emacs to make Emacs understand Ant's + output.