Bug 46554

Summary: [PATCH] Build poi-examples.jar along with the other .jar files
Product: POI Reporter: Georger Araujo <georger_br>
Component: POI OverallAssignee: POI Developers List <dev>
Severity: minor    
Priority: P2    
Version: 3.5-dev   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Attachments: Build poi-examples.jar along with the other .jar files

Description Georger Araujo 2009-01-17 09:04:12 UTC
Created attachment 23139 [details]
Build poi-examples.jar along with the other .jar files

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,

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 :)