Hi Michele,

That happens because the initial purpose of the Package service is to
access OOo packages formats, and META-INF/manifest.xml is part of this
format. If a pure zip-file access is requested then either the special
UCP should be used or the Package service must be initialized in a
special way. Since your code already uses the Package service the second
way seems to be the best one:
- please just add to the sequence of "Any" that is provided on Package
service initialization an additional entry representing object of type
"::com::sun::star::beans::NamedValue"; the "Name" member must be
initialized with the string "PackageFormat" and the "Value" must contain
"Any" representing boolean value "false".

Hope that helps.

Regards,
Mikhail.

Michele Zarri wrote:
> Hello there,
> 
>  
> 
> I already posted this message in the users mailing list, but I was
> advised that this list was more appropriate for this kind of questions,
> so here we go.
> 
>  
> 
> I have written a macro that at a certain point in time zips some files
> using the service com.sun.star.packages.Package.
> 
>  
> 
> The problem I am having is that when the zip archive is created
> (independently from the type of the file I am trying to zip) it contains
> on top of the file zipped a directory called META-INF as well as a file
> called mimetype.
> 
>  
> 
> Is there any way to ask the UNO service not to generate these files (it
> kind of annoys my colleagues how also generate zip archives in the same
> folder? If it is not possible I am afraid I will have to do without the
> handy UNO service and go for some command line messages.
> 
>  
> 
>  
> 
> Best Regards,
> 
>  
> 
> Michele
> 
>  
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to