ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bgolman <>
Subject Running ANT on Linux
Date Thu, 24 Apr 2008 17:55:20 GMT

Hello everyone!

I need your help on running the ant task on Linux box. It might sound simple
(and so it was for me), however, things turned out to be rather ugly. Any
kind of help is appreciated. Now, here's what I'm trying to do:

Suppose I have a build.xml script, which includes a following task:

<xslt basedir="..."

Basically, what it supposed to is to grab all the XML files from the base
directory, run it through the aforementioned XSL file and output the results
to the destination directory. Short and simple. However, there are thousands
of these files to process and to get this done quickly I have to set the
ANT_OPTS to something like this:
set ANT_OPTS=-Xmx1024m

That's on Windows and it works fine and very fast, however, after moving all
my code to Linux box AND setting ANT_OPTS (export set ANT_OPTS=-Xmx1024m),
the process runs extremely slow, as if ANT_OPTS have been ignored
completely. Running "top" command, I noticed the following:

114m 65m 16m 101 2.6 

It appears that one of those items (I think RES) should be increased to run
the process faster, but how? And why ANT_OPTS do not work for this XSLT
task? Just for comparison: my build script also calls a java process of my
own, using task and I'm passing the memory usage info in these arguments:
<jvmarg value="-Xms1024M">
<jvmarg value="-Xmx1024M">

This java task works fine on Linux and RES shows exactly what I've excepted:
1024m. So, why not with the XSLT task?

I hope it doesn't sound confusing and I hope there's a rational explanation
to this. I'm very new to Linux, especially using ant, and any help would be

Please, throw any advises, because, frankly, I'm running out of ideas! 

View this message in context:
Sent from the Ant - Users mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message