Bit of java help

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Bit of java help

samhamilton
Hi,

A while back I had a module coded that uploads products to TheFind.com much like the Google Base application - I would like to give the code back to the project but I think that the jar to make the CSV file (javacsv.jar) is GNU Library or LGPL.

I don't understand java enough to swap out the jar and replace it with something Apache license compatible so if anyone fancies helping out so we can get this code into the project I would be very grateful.

I have stuck the code here - https://github.com/samhamilton/ofbiz-thefind

Thanks in advance.
Sam


Reply | Threaded
Open this post in threaded view
|

Re: Bit of java help

BJ Freeman
ofbiz already had csv support.
it is a simple thing.
look at
component://product/widget/facility/FacilityScreens.xml#InventoryItemTotalsExport

there are a couple of other examples
the Datafile module also deals with csv.

Sam Hamilton sent the following on 7/2/2011 10:01 PM:

> Hi,
>
> A while back I had a module coded that uploads products to TheFind.com much like the Google Base application - I would like to give the code back to the project but I think that the jar to make the CSV file (javacsv.jar) is GNU Library or LGPL.
>
> I don't understand java enough to swap out the jar and replace it with something Apache license compatible so if anyone fancies helping out so we can get this code into the project I would be very grateful.
>
> I have stuck the code here - https://github.com/samhamilton/ofbiz-thefind
>
> Thanks in advance.
> Sam
>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Bit of java help

David E. Jones-2
In reply to this post by samhamilton

As BJ mentioned there are some techniques in OFBiz already for this. My favorite is using the form widget and the CSV output it supports (pretty easy to configure the columns, can also be used for visual display/etc). A plain FTL template also works well (especially with the <#t> and <#lt> tags to trim whitespace).

-David


On Jul 2, 2011, at 11:01 PM, Sam Hamilton wrote:

> Hi,
>
> A while back I had a module coded that uploads products to TheFind.com much like the Google Base application - I would like to give the code back to the project but I think that the jar to make the CSV file (javacsv.jar) is GNU Library or LGPL.
>
> I don't understand java enough to swap out the jar and replace it with something Apache license compatible so if anyone fancies helping out so we can get this code into the project I would be very grateful.
>
> I have stuck the code here - https://github.com/samhamilton/ofbiz-thefind
>
> Thanks in advance.
> Sam
>
>