<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Ant COmment Block Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/ant-comment-block/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/ant-comment-block/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Sat, 27 Feb 2021 09:53:54 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>
	<item>
		<title>How to put comment in Ant &#124; Comments in Apache Ant</title>
		<link>https://www.scmgalaxy.com/tutorials/how-to-put-comment-in-ant-comments-in-apache-ant/</link>
					<comments>https://www.scmgalaxy.com/tutorials/how-to-put-comment-in-ant-comments-in-apache-ant/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Thu, 22 Jul 2010 11:09:52 +0000</pubDate>
				<category><![CDATA[Apache Ant]]></category>
		<category><![CDATA[ANT]]></category>
		<category><![CDATA[Ant COmment Block]]></category>
		<category><![CDATA[Ant commenting]]></category>
		<category><![CDATA[Ant comments]]></category>
		<category><![CDATA[Ant multiline comments]]></category>
		<category><![CDATA[Comment]]></category>
		<category><![CDATA[Comments in Ant build]]></category>
		<category><![CDATA[Comments in Apache Ant]]></category>
		<category><![CDATA[Guide]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[How to put comment in Ant]]></category>
		<category><![CDATA[Instructions]]></category>
		<category><![CDATA[Method]]></category>
		<category><![CDATA[Tutorials]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2010/07/22/how-to-put-comment-in-ant-comments-in-apache-ant/</guid>

					<description><![CDATA[<p>How to put comment in Ant &#124; Comments in Apache Ant Method 1: &#60;!&#8211; Comments are just as important in [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-put-comment-in-ant-comments-in-apache-ant/">How to put comment in Ant | Comments in Apache Ant</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img fetchpriority="high" decoding="async" class="alignnone size-full wp-image-4418 aligncenter" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2010/07/comments-in-apache-ant.png" alt="comments-in-apache-ant" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2010/07/comments-in-apache-ant.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2010/07/comments-in-apache-ant-300x200.png 300w" sizes="(max-width: 600px) 100vw, 600px" /></p>
<p><strong>How to put comment in Ant | Comments in Apache Ant </strong></p>
<p><strong>Method 1:</strong></p>
<p>&lt;!&#8211; Comments are just as important in buildfiles, do not &#8211;&gt;<br />
&lt;!&#8211; avoid writing them! &#8211;&gt;<br />
&lt;!&#8211; Example build file for &#8220;Ant: The Definitive Guide&#8221; &#8211;&gt;<br />
&lt;!&#8211; and its sample project: irssibot &#8211;&gt;</p>
<p><strong>Method 2: Echo</strong><br />
<strong>Description</strong><br />
Writes a message to the Ant logging facilities. A message may be supplied<br />
as nested text to this task.<br />
Echoes a message to the current loggers and listeners which means System.out unless overridden. A level can be specified, which controls at what logging level the message is filtered at.<br />
The task can also echo to a file, in which case the option to append rather than overwrite the file is available, and the level option is ignored</p>
<h3>Parameters</h3>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top"><strong>Attribute</strong></td>
<td valign="top"><strong>Description</strong></td>
<td valign="top">
<p align="center"><strong>Required</strong></p>
</td>
</tr>
<tr>
<td valign="top">message</td>
<td valign="top">the message to echo.</td>
<td valign="top">
<p align="center">No. Text may also be included in a character section within this element. If neither is included a blank line will be emitted in the output.</p>
</td>
</tr>
<tr>
<td valign="top">file</td>
<td valign="top">the file to write the message to.</td>
<td valign="top">
<p align="center">No</p>
</td>
</tr>
<tr>
<td valign="top">append</td>
<td valign="top">Append to an existing file (or <a href="http://java.sun.com/j2se/1.4.2/docs/api/java/io/FileWriter.html#FileWriter(java.lang.String, boolean)" target="_blank" rel="noopener">open a new file / overwrite an existing file</a>)?</td>
<td valign="top">
<p align="center">No &#8211; default is false.</p>
</td>
</tr>
<tr>
<td valign="top">level</td>
<td valign="top">Control the level at which this message is reported. One of &#8220;error&#8221;, &#8220;warning&#8221;, &#8220;info&#8221;, &#8220;verbose&#8221;, &#8220;debug&#8221; (decreasing order)</td>
<td valign="top">
<p align="center">No &#8211; default is &#8220;warning&#8221;.</p>
</td>
</tr>
<tr>
<td valign="top">encoding</td>
<td valign="top">encoding to use, default is &#8220;&#8221;; the local system encoding. <em>since Ant 1.7</em></td>
<td valign="top">
<p align="center">No</p>
</td>
</tr>
</tbody>
</table>
<p><strong>Examples</strong><br />
<strong>Style 1:</strong><br />
&lt;echo message=&#8221;Hello, world&#8221;/&gt;</p>
<p><strong>Style 2:</strong><br />
&lt;echo message=&#8221;Embed a line break:${line.separator}&#8221;/&gt;</p>
<p><strong>Style 3:</strong><br />
&lt;echo&gt;Embed another:${line.separator}&lt;/echo&gt;</p>
<p><strong>Style 4:</strong><br />
&lt;echo&gt;This is a longer message stretching over<br />
two lines.<br />
&lt;/echo&gt;</p>
<p><strong>Style 5:</strong><br />
&lt;echo&gt;<br />
This is a longer message stretching over<br />
three lines; the first line is a blank<br />
&lt;/echo&gt;</p>
<p><strong>Style 5:</strong><br />
&lt;echo message=&#8221;Deleting drive C:&#8221; level=&#8221;debug&#8221;/&gt;<br />
A message which only appears in -debug mode.</p>
<p><strong>Style 6:</strong><br />
&lt;echo level=&#8221;error&#8221;&gt;<br />
Imminent failure in the antimatter containment facility.<br />
Please withdraw to safe location at least 50km away.<br />
&lt;/echo&gt;<br />
A message which appears even in -quiet mode.</p>
<p><strong>Style 7:</strong><br />
&lt;echo file=&#8221;runner.csh&#8221; append=&#8221;false&#8221;&gt;#\!/bin/tcsh<br />
java-1.3.1 -mx1024m ${project.entrypoint} $$*<br />
&lt;/echo&gt;<br />
Generate a shell script by echoing to a file. Note the use of a double $ symbol to stop Ant filtering out the single $ during variable expansion<br />
Depending on the loglevel Ant runs, messages are print out or silently ignored:</p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top"><strong>Ant-Statement</strong></td>
<td valign="top">
<p align="center"><strong>-quiet, -q</strong></p>
</td>
<td valign="top">
<p align="center"><strong><em>no statement</em></strong></p>
</td>
<td valign="top">
<p align="center"><strong>-verbose, -v</strong></p>
</td>
<td valign="top">
<p align="center"><strong>-debug, -d</strong></p>
</td>
</tr>
<tr>
<td valign="top"><strong>&lt;echo message=&#8221;This is error message.&#8221; level=&#8221;error&#8221; /&gt;</strong></td>
<td valign="top">
<p align="center">ok</p>
</td>
<td valign="top">
<p align="center">ok</p>
</td>
<td valign="top">
<p align="center">ok</p>
</td>
<td valign="top">
<p align="center">ok</p>
</td>
</tr>
<tr>
<td valign="top"><strong>&lt;echo message=&#8221;This is warning message.&#8221; /&gt;</strong></td>
<td valign="top">
<p align="center">ok</p>
</td>
<td valign="top">
<p align="center">ok</p>
</td>
<td valign="top">
<p align="center">ok</p>
</td>
<td valign="top">
<p align="center">ok</p>
</td>
</tr>
<tr>
<td valign="top"><strong>&lt;echo message=&#8221;This is warning message.&#8221; level=&#8221;warning&#8221; /&gt;</strong></td>
<td valign="top">
<p align="center">ok</p>
</td>
<td valign="top">
<p align="center">ok</p>
</td>
<td valign="top">
<p align="center">ok</p>
</td>
<td valign="top">
<p align="center">ok</p>
</td>
</tr>
<tr>
<td valign="top"><strong>&lt;echo message=&#8221;This is info message.&#8221; level=&#8221;info&#8221; /&gt;</strong></td>
<td valign="top">
<p align="center">not logged</p>
</td>
<td valign="top">
<p align="center">ok</p>
</td>
<td valign="top">
<p align="center">ok</p>
</td>
<td valign="top">
<p align="center">ok</p>
</td>
</tr>
<tr>
<td valign="top"><strong>&lt;echo message=&#8221;This is verbose message.&#8221; level=&#8221;verbose&#8221; /&gt;</strong></td>
<td valign="top">
<p align="center">not logged</p>
</td>
<td valign="top">
<p align="center">not logged</p>
</td>
<td valign="top">
<p align="center">ok</p>
</td>
<td valign="top">
<p align="center">ok</p>
</td>
</tr>
<tr>
<td valign="top"><strong>&lt;echo message=&#8221;This is debug message.&#8221; level=&#8221;debug&#8221; /&gt;</strong></td>
<td valign="top">
<p align="center">not logged</p>
</td>
<td valign="top">
<p align="center">not logged</p>
</td>
<td valign="top">
<p align="center">not logged</p>
</td>
<td valign="top">
<p align="center">ok</p>
</td>
</tr>
</tbody>
</table>
<p><strong>Method 3:</strong><br />
Description</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-put-comment-in-ant-comments-in-apache-ant/">How to put comment in Ant | Comments in Apache Ant</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/how-to-put-comment-in-ant-comments-in-apache-ant/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
