Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#1 building executable jar

closed
nobody
None
5
2008-01-18
2006-12-29
James Calfee
No

Why unjar lib/*.jar into classes when the Ant's JAR task will do this automatically in memory with a stream. See 'zipgroupfileset' below.

Don't worry, this is not new to ANT it is just difficult to find in the manual.

target: jar_dataloader

<jar jarfile="${jar.dir}/sforcedataloader.jar">
<fileset dir="${classes.dir}" />
<zipgroupfileset dir="${lib.dir}" includes="*.jar"/>
<manifest>
<attribute name="Main-Class" value="${runner.file}" />
</manifest>
</jar>

-Jimmy Calfee

Discussion

  • James Calfee
    James Calfee
    2008-01-18

    • status: open --> closed
     
  • James Calfee
    James Calfee
    2008-01-18

    Logged In: YES
    user_id=686276
    Originator: YES

    suggestion