Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>carej is right. I've been trying to do this, merging other jars into my application jar excluding some files, and there is no way to use <code>&lt;zipgroupfileset&gt;</code> for it.</p> <p>My solution is a variant of the unzip/clean-up/jar method: I first merge all the external library jars into one with <code>&lt;zipgroupfileset&gt;</code>, then merge it into mine with <code>&lt;zipfileset&gt;</code> which does allow filtering. In my case it works noticeably faster and is cleaner than unzipping the files to disk:</p> <pre><code>&lt;jar jarfile="${dist}/lib/external-libs.jar"&gt; &lt;zipgroupfileset dir="lib/"&gt; &lt;include name="**/*.jar"/&gt; &lt;/zipgroupfileset&gt; &lt;/jar&gt; &lt;sleep seconds="1"/&gt; &lt;jar jarfile="${dist}/lib/historadar-${DSTAMP}.jar" manifest="Manifest.txt"&gt; &lt;fileset dir="${build}" includes="**/*.*"/&gt; &lt;zipfileset src="${dist}/lib/external-libs.jar"&gt; &lt;exclude name="*"/&gt; &lt;/zipfileset&gt; &lt;/jar&gt; </code></pre> <p>The first <code>&lt;jar&gt;</code> puts all the jars it finds in lib/ into external-libs.jar, then I make it wait for one second to avoid getting warnings about the files having modification dates in the future, then I merge my class files from the build/ directory with the content of external-libs.jar excluding the files in its root, which in this case were README files and examples.</p> <p>Then I have my own README file that lists all information needed about those libraries I include in my application, such as license, website, etc.</p>
    singulars
    1. This table or related slice is empty.
    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. 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