#1 building executable jar

closed
nobody
None
5
2008-01-18
2006-12-29
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

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks