Bug 46554 - [PATCH] Build poi-examples.jar along with the other .jar files
Summary: [PATCH] Build poi-examples.jar along with the other .jar files
Status: RESOLVED FIXED
Alias: None
Product: POI
Classification: Unclassified
Component: POI Overall (show other bugs)
Version: 3.5-dev
Hardware: PC Windows XP
: P2 minor (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-17 09:04 UTC by Georger Araujo
Modified: 2009-05-17 11:39 UTC (History)
0 users



Attachments
Build poi-examples.jar along with the other .jar files (1.13 KB, patch)
2009-01-17 09:04 UTC, Georger Araujo
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Georger Araujo 2009-01-17 09:04:12 UTC
Created attachment 23139 [details]
Build poi-examples.jar along with the other .jar files

Hi,
When building the latest POI from SVN (20090107), I noticed that

ant compile

will compile the classes in the build/examples-classes directory, but

ant jar

will NOT build poi-examples-3.5-beta5-20090117.jar in the build/dist directory.

This was an issue to me, because I wanted to run org.apache.poi.hssf.eventusermodel.examples.XLS2CSVmra from the command line. I modified build.xml and built the jar myself.

I have attached a patch that fixes this issue. Regards,

Georger
Comment 1 Nick Burch 2009-05-17 11:39:19 UTC
The example jar isn't built by default, as most people wouldn't want it, since they'll be editing the examples for their needs

I've added a new target, jar-examples, which will build a jar of the examples. In the event that you don't need to change any of the examples, and just want to run with them, then please use this :)