You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Nico Seessle <Ni...@epost.de> on 2000/11/01 09:47:34 UTC

[PATCH] Cab.java - use libcabinet on Unix to create Cab-Files

Wish from Jan Castermans (jan@beta9.be) (who also provided the binaries to
me since it was not possible to compile the library on RedHat 7).

Just pipes all the files and the name of the cabfile to 'listcab' which is
provided with listcabinet
(http://trill.cis.fordham.edu/~barbacha/cabinet_library/) to create a
cabfile.

Tests have shown that some Windows-Tools have problems with paths containing
a / instead of \ (not showing folders), but cabarc from MS has not shown any
problems on extraction.

Another possibility would be to use com.ms.util.cab-Package but the user
would need to provide the corrent jar-file containing these classes by
hand - should this be included also?

Nico


Re: [PATCH] Cab.java - use libcabinet on Unix to create Cab-Files

Posted by Stefan Bodewig <bo...@bost.de>.
>>>>> "NS" == Nico Seessle <Ni...@epost.de> writes:

 NS> Another possibility would be to use com.ms.util.cab-Package but
 NS> the user would need to provide the corrent jar-file containing
 NS> these classes by hand

 >> What about the license, can I go to Microsoft and download them
 >> freely, place them on my FreeBSD box and play with them?

 NS> these classes are included with the MS VM, [extract and rejar]

 NS> I don't know what licensing issues are coming into place then, I
 NS> don't think anyone will say something if you repackage some
 NS> classes for personal use

Not sure. Are you allowed to extract the talking paperclip from Word
and use it on another box in a non Microsoft context 8-)

 NS> (but we could not distribute them with Ant I guess :-) )

Maybe they are available in a separate package at MS? Anybody else?

 NS> On the other hand it was easier to implement this than to compile
 NS> libcabinet on RH7 :-(

What do you expect from a distribution that ships with a broken
compiler plus a broken C library. Most JDKs don't work on RH 7 either.

Stefan

who still runs a heavily patched RH 6.1 based system.

Re: [PATCH] Cab.java - use libcabinet on Unix to create Cab-Files

Posted by Nico Seessle <Ni...@epost.de>.
----- Original Message -----
From: "Stefan Bodewig" <bo...@bost.de>
To: <an...@jakarta.apache.org>
Sent: Monday, November 06, 2000 3:35 PM
Subject: Re: [PATCH] Cab.java - use libcabinet on Unix to create Cab-Files


> >>>>> "NS" == Nico Seessle <Ni...@epost.de> writes:
>
>  NS> Another possibility would be to use com.ms.util.cab-Package but
>  NS> the user would need to provide the corrent jar-file containing
>  NS> these classes by hand
>
> Danger, non-Microsoft user alert, this questions may be stupid!

Maybe it seemed more complicated than it was meant :-)

> Why would one need to pass the JAR file by hand? Wouldn't it be enough
> to place the classes in the CLASSPATH?
>
> Furthermore, are these classes pure Java or do they require native
> code?

They seem to be pure java (I succesfully tested it on RedHat 7.0 :-) )

> What about the license, can I go to Microsoft and download them
> freely, place them on my FreeBSD box and play with them?

That was what I meant with "the user would need to provide the corrent
jar-file containing these classes by hand" - these classes are included with
the MS VM, you can create a files C:\WinNT\java\classes\classes.zip from the
internal magic package-store (Package-Manager) MS is using, extract the
classes from there, put them in a new JAR and put this on your CLASSPATH.
Not the simpliest thing to do :-) I don't know what licensing issues are
coming into place then, I don't think anyone will say something if you
repackage some classes for personal use (but we could not distribute them
with Ant I guess :-) )

On the other hand it was easier to implement this than to compile libcabinet
on RH7 :-(

Nico



Re: [PATCH] Cab.java - use libcabinet on Unix to create Cab-Files

Posted by Stefan Bodewig <bo...@bost.de>.
>>>>> "NS" == Nico Seessle <Ni...@epost.de> writes:

 NS> Another possibility would be to use com.ms.util.cab-Package but
 NS> the user would need to provide the corrent jar-file containing
 NS> these classes by hand

Danger, non-Microsoft user alert, this questions may be stupid!

Why would one need to pass the JAR file by hand? Wouldn't it be enough
to place the classes in the CLASSPATH? 

Furthermore, are these classes pure Java or do they require native
code? 

What about the license, can I go to Microsoft and download them
freely, place them on my FreeBSD box and play with them?

Stefan