Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>We are all going to agree that it should be letting go of the memory, but since it doesn't, you can try breaking up the <code>xslt</code> task in to seperate calls. e.g., using <a href="http://ant-contrib.sourceforge.net/tasks/tasks/for.html" rel="nofollow">Ant Contrib's <code>for</code> task</a></p> <pre><code>&lt;for param="file"&gt; &lt;fileset dir="${import.dir}"/&gt; &lt;sequential&gt; &lt;xslt in="@{file}" destdir="${import.dir}/sql/" style="${xsl.filename}" force="true"&gt; &lt;mapper type="glob" from="*.xml" to="*.sql" /&gt; &lt;factory name="net.sf.saxon.TransformerFactoryImpl"/&gt; &lt;/xslt&gt; &lt;/sequential&gt; &lt;/for&gt; </code></pre> <p>If that doesn't do the trick, then since you are using Saxon, you can <a href="http://www.saxonica.com/documentation/using-xsl/commandline.xml" rel="nofollow">calling Saxon's java classes directly</a> in a forked JVM. e.g.,</p> <pre><code>&lt;java classname="net.sf.saxon.Transform" failonerror="true" fork="true"&gt; &lt;arg value="-s:${import.dir}" /&gt; &lt;arg value="-xsl:${xsl.filename}" /&gt; &lt;arg value="-o:${import.dir}/sql" /&gt; &lt;/java&gt; </code></pre> <p>or you can try both</p> <pre><code>&lt;for param="file"&gt; &lt;fileset dir="${import.dir}"/&gt; &lt;sequential&gt; &lt;basename property="@{file}.base" file="@{file}" suffix="xml"/&gt; &lt;java classname="net.sf.saxon.Transform" failonerror="true" fork="true"&gt; &lt;arg value="-s:@{file}" /&gt; &lt;arg value="-xsl:${xsl.filename}" /&gt; &lt;arg value="-o:${import.dir}/sql/${@{file}.base}.sql" /&gt; &lt;/java&gt; &lt;/sequential&gt; &lt;/for&gt; </code></pre> <p>and for bonus points you could try to speed things up a bit by doing it in parallel.</p> <pre><code>&lt;for param="file"&gt; &lt;fileset dir="${import.dir}"/&gt; &lt;parallel&gt; &lt;basename property="@{file}.base" file="@{file}" suffix="xml"/&gt; &lt;java classname="net.sf.saxon.Transform" failonerror="true" fork="true"&gt; &lt;arg value="-s:@{file}" /&gt; &lt;arg value="-xsl:${xsl.filename}" /&gt; &lt;arg value="-o:${import.dir}/sql/${@{file}.base}.sql" /&gt; &lt;/java&gt; &lt;/parallel&gt; &lt;/for&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload