ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jann Röder <roede...@ethz.ch>
Subject Error in documentation (zipfileset, single argument resource collection)
Date Thu, 19 Aug 2010 14:29:25 GMT
Hi,
I think I might have found an error in the documentation. On the page
about the jar task (http://ant.apache.org/manual/Tasks/jar.html) it says:

[quote]
     <jar destfile="build/main/checksites.jar">
        <fileset dir="build/main/classes"/>
        <zipfileset includes="**/*.class">
          <fileset dir="lib/main" includes="**/*.jar"/>
        </zipfileset>
        <manifest>
          <attribute name="Main-Class"
                value="com.acme.checksites.Main"/>
        </manifest>
      </jar>

Creates an executable jar file with a main class
"com.acme.checksites.Main", and embeds all the classes from all the jars
in lib/main.
[/quote]

However if I do that, I get this error:
"only single argument resource collections are supported as archives"

My experiments have shown that this means that one may only use filesets
that contain exactly one file. Is this a mistake in the documentation or
stupidity on my part?

Thanks,
Jann


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message