<?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>Build and Release Management &#187; ANT</title>
	<atom:link href="http://allscm.com/archives/category/build-framework/ant/feed" rel="self" type="application/rss+xml" />
	<link>http://allscm.com</link>
	<description>Build. Release. Profit</description>
	<lastBuildDate>Tue, 15 May 2012 22:15:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>How to Escape {&#8220;&#8216;&amp;} Characters in ANT</title>
		<link>http://allscm.com/archives/how-to-escape-characters-in-ant.html</link>
		<comments>http://allscm.com/archives/how-to-escape-characters-in-ant.html#comments</comments>
		<pubDate>Fri, 12 Feb 2010 01:23:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ANT]]></category>

		<guid isPermaLink="false">http://allscm.com/?p=283</guid>
		<description><![CDATA[How exactly do you escape special characters from ANT?  Say if you need to add extra &#8221; quotation characters within a property which already has a set of quotes? Here&#8217;s how to do it &#8212; use XML Character entity references: For &#62; use &#38;gt; For &#60; use  &#38;lt; For &#8220; use &#38;quot; For &#38; use [...]]]></description>
			<content:encoded><![CDATA[<p>How exactly do you escape special characters from ANT?  Say if you need to add extra &#8221; quotation characters within a property which already has a set of quotes?</p>
<p>Here&#8217;s how to do it &#8212; use XML Character entity references:</p>
<p>For <span style="color: #ff0000;">&gt;</span> use <span style="color: #ff0000;">&amp;gt;</span></p>
<p>For <span style="color: #ff0000;">&lt;</span> use <span style="color: #ff0000;"> &amp;lt;</span></p>
<p>For <span style="color: #ff0000;">&#8220;</span> use <span style="color: #ff0000;">&amp;quot;</span></p>
<p>For <span style="color: #ff0000;">&amp;</span> use <span style="color: #ff0000;">&amp;amp;</span></p>
<p>For <span style="color: #ff0000;">&#8216;</span> use <span style="color: #ff0000;">&amp;apos;</span><br />
Any other characters you need?  Drop me a line..</p>
]]></content:encoded>
			<wfw:commentRss>http://allscm.com/archives/how-to-escape-characters-in-ant.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>WebLogic&#8217;s wlappc ANT Task Compilation Freezing/Hanging Errors</title>
		<link>http://allscm.com/archives/weblogics-wlappc-ant-task-compilation-freezinghanging-errors.html</link>
		<comments>http://allscm.com/archives/weblogics-wlappc-ant-task-compilation-freezinghanging-errors.html#comments</comments>
		<pubDate>Sun, 17 May 2009 09:38:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ANT]]></category>
		<category><![CDATA[Build Framework]]></category>

		<guid isPermaLink="false">http://allscm.com/?p=224</guid>
		<description><![CDATA[Wow.   This little problem was extremely tricky to detect &#8212; mainly due to WebLogic&#8217;s wlappc ANT Task&#8217;s poor documentation.   In one of the projects I&#8217;m working on, there is a need to pre-compile WebLogic JSP so it will be much faster during deployment/runtime and we can catch any potential errors early.   Previously, this step of [...]]]></description>
			<content:encoded><![CDATA[<p>Wow.   This little problem was extremely tricky to detect &#8212; mainly due to WebLogic&#8217;s wlappc ANT Task&#8217;s poor documentation.   In one of the projects I&#8217;m working on, there is a need to pre-compile WebLogic JSP so it will be much faster during deployment/runtime and we can catch any potential errors early.   Previously, this step of the compilation has never given us any problem until when it decides to act up and freezes or hangs certain builds.  However, it was never an issue since restarting the build usually fixes it.</p>
<p>That is, until recently when the freezing/hanging started to happen on a consistent basis.  Here&#8217;s the snippet of the ANT Task:</p>
<h6>&lt;wlappc source=&#8221;${some.base.dir}&#8221; classpath=&#8221;${some.dir}/some_class.jar&#8221; verbose=&#8221;true&#8221;/&gt;</h6>
<p>The ANT output during build time is this and is where it freezes:</p>
<h6>[wlappc] [jspc] Compiling /path/to/jsp/foo.jsp</h6>
<p>Then after searching high and low on BEA&#8217;s site, I came upon this page (<a href="http://e-docs.bea.com/wls/docs81/programming/topics.html">Here</a>) which describes the task in detail.  I then realized I should add in idlVerbose=&#8221;true&#8221;.  Once I&#8217;ve added that, this is the output I got from the build:</p>
<h6>[wlappc] [jspc] Compiling /path/to/jsp/foo.jsp<br />
[wlappc] WARNING: unable to get an input stream for jar:file:/path/to/some/jar/WEB-INF/lib/struts.jar!/<br />
[wlappc] java.lang.NoClassDefFoundError: org/apache/bcelx/classfile/ClassParser<br />
[wlappc] [...]</h6>
<p>Muuuuch better.  To fix it, now I know I need to explicitly define bcel*.jar in the classpath.  Here&#8217;s the modified ANT task:</p>
<h6>&lt;wlappc source=&#8221;${some.base.dir}&#8221; <br/>classpath=&#8221;${some.dir}/some_class.jar;<br/>${env.ANT_HOME}/lib/bcel-5.1.jar&#8221;<br/> verbose=&#8221;true&#8221; idlVerbose=&#8221;true&#8221;/&gt;</h6>
<p>Notice the difference?  Yeah, that fixed it&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://allscm.com/archives/weblogics-wlappc-ant-task-compilation-freezinghanging-errors.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Increase Heap Size for ANT&#8217;s OutOfMemory Error using ANT_OPTS</title>
		<link>http://allscm.com/archives/how-to-increase-heap-size-for-ants-outofmemory-error-using-ant_opts.html</link>
		<comments>http://allscm.com/archives/how-to-increase-heap-size-for-ants-outofmemory-error-using-ant_opts.html#comments</comments>
		<pubDate>Sat, 16 May 2009 04:19:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ANT]]></category>
		<category><![CDATA[Build Framework]]></category>

		<guid isPermaLink="false">http://allscm.com/?p=208</guid>
		<description><![CDATA[Ever run into an ANT compilation or ANT task related compilation OutOfMemoryError problem? This little bugger of a problem can be rather tricky to debug. You may run into this problem when you have a large collection of source files to compile (think 1000+). You may also run into this problem with the following WebLogic [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-216" style="margin: 5px;" title="ant1" src="http://allscm.com/wp-content/uploads/2009/05/ant1.jpg" alt="ant1" width="150" height="133" />Ever run into an ANT compilation or ANT task related compilation OutOfMemoryError problem? This little bugger of a problem can be rather tricky to debug. You may run into this problem when you have a large collection of source files to compile (think 1000+). You may also run into this problem with the following WebLogic ANT tasks:</p>
<p>1. jwsc<br />
2. wlappc (<strong>LARGE</strong> JSP Pre-Compilations)</p>
<p>There may be other related compilation tasks, but bottom line is the Java Heap Size is too small. To increase it, you need to add $ANT_OPTS to your environment. An overkill, but also a sure way to fix the problem can be these values:</p>
<p>ANT_OPTS=&#8221;-Xmx1024m -Xms512m&#8221;</p>
<p>This variable must be set within your build machine&#8217;s environment. When ANT executes, it automatically includes $ANT_OPTS in its execution string. I hope this little hint will solve a lot of your future headaches. I&#8217;ve been troubleshooting a similar problem on a project I&#8217;m currently working on for the past 24 hours.  We went from plan a, to b, to c, to d, and started to run into a dead end and wanted to go for a temp fix by disabling pre-compilation.. until I found this root cause.</p>
<p>If you&#8217;re not currently using $ANT_OPTS, perhaps you should look into implementing that on your infrastructure. May end up saving you a heap of debugging time down the road. <img src='http://allscm.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://allscm.com/archives/how-to-increase-heap-size-for-ants-outofmemory-error-using-ant_opts.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

