Return-Path: X-Original-To: apmail-ant-user-archive@www.apache.org Delivered-To: apmail-ant-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4555FD141 for ; Mon, 6 Aug 2012 21:41:02 +0000 (UTC) Received: (qmail 7912 invoked by uid 500); 6 Aug 2012 21:41:01 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 7848 invoked by uid 500); 6 Aug 2012 21:41:01 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 7839 invoked by uid 99); 6 Aug 2012 21:41:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Aug 2012 21:41:01 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [209.86.89.68] (HELO elasmtp-masked.atl.sa.earthlink.net) (209.86.89.68) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Aug 2012 21:40:51 +0000 Received: from [216.175.113.128] (helo=[192.168.1.106]) by elasmtp-masked.atl.sa.earthlink.net with esmtpa (Exim 4.67) (envelope-from ) id 1SyV2M-0002Fn-8R; Mon, 06 Aug 2012 17:40:30 -0400 Message-ID: <502039CF.5060703@earthlink.net> Date: Mon, 06 Aug 2012 14:40:31 -0700 From: Mark Giffin User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:14.0) Gecko/20120713 Thunderbird/14.0 MIME-Version: 1.0 To: Ant Users List CC: Vimil Saju Subject: Re: Increase Java heap within xslt task? References: <501F15A0.5090205@earthlink.net> <1344218543.45013.YahooMailNeo@web162601.mail.bf1.yahoo.com> <501F29D7.30706@earthlink.net> <1344222013.43279.YahooMailNeo@web162602.mail.bf1.yahoo.com> In-Reply-To: <1344222013.43279.YahooMailNeo@web162602.mail.bf1.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-ELNK-Trace: 7827bedf0389661cd780f4a490ca6956d5d4673fe7faad86c4c57d62f8993074a7a300ca66697593350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 216.175.113.128 Thanks Vimil, that's a good tip. Mark On 8/5/2012 8:00 PM, Vimil Saju wrote: > You can use macrodefs to make it more readable to others. > > First define a macrodef something like as follows > > > > > > > > > > > > > > > > Now you can invoke the macrodef as follows > > > > > ________________________________ > From: Mark Giffin > To: Ant Users List > Cc: Vimil Saju > Sent: Sunday, August 5, 2012 7:20 PM > Subject: Re: Increase Java heap within xslt task? > > I assume you mean running the java task with the fork attribute set to > true, not the xslt task. Nothing is wrong with using the java task, but > I thought it might be a little easier for someone else to understand if > I used the xslt task instead. But this seems like more trouble than it > is worth. > > Thanks for your help! > > On 8/5/2012 7:02 PM, Vimil Saju wrote: >> max heap memory size is a jvm level setting that the xslt task has no control over. The only way to specify a different heap memory size for the xslt task is to run it in a different jvm, Running the xslt task by setting the fork attribute to true as you showed in the second approach is the way to go. What is wrong with this approach? >> >> >> >> ________________________________ >> From: Mark Giffin >> To: Ant Users List >> Sent: Sunday, August 5, 2012 5:53 PM >> Subject: Increase Java heap within xslt task? >> >> How can I increase the memory for the xslt task from within Ant 1.8.4, not with an environment variable? I am using Saxon by specifying the Saxon jar classpath in this target: >> >> >> > style="intermed.xsl" force="true"> >> >> >> >> >> This transform job crashes with "java.lang.OutOfMemoryError: Java heap space" unless I set ANT_OPTS=-Xmx256m. But I don't want to have to depend on an env variable. Is there a way to increase JVM heap space within the xslt task? I can run this same transform successfully with the java task like this, using the maxmemory attribute to increase the heap space: >> >> >> >> >> >> >> >> >> >> >> There is no maxmemory attribute for the xslt task. I would rather use the xslt task if I can. >> >> Thanks, >> Mark >> > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org