Import and Export of projects [message #260533] |
Wed, 10 June 2009 03:39  |
Eclipse User |
|
|
|
Hello,
I'm this year's GSoC student... n in need of some help. As a part of
my project I need to import and export projects as ZIP files. I've looked
into several wizard's source and here's a code snippet I wrote for
exporting an existing project in ZIP format.
ArchiveFileExportOperation export=new ArchiveFileExportOperation(
uploadPage.getAssignmentResource(),
uploadPage.getAssignmentName());
export.setUseCompression(true);
export.setCreateLeadupStructure(true);
export.run(null);
But this api, along with few other, always gives me a "Discouraged access
... The type ArchiveFileExportOperation is not accessible due to
restriction on class ... " warning, and nothing happens. Is there any
workaround for this ?
Thanks
Souvik
|
|
|
Re: Import and Export of projects [message #260555 is a reply to message #260533] |
Thu, 11 June 2009 05:39  |
Eclipse User |
|
|
|
Souvik Roy wrote:
> Hello,
> I'm this year's GSoC student... n in need of some help. As a part
> of my project I need to import and export projects as ZIP files. I've
> looked into several wizard's source and here's a code snippet I wrote
> for exporting an existing project in ZIP format.
>
> ArchiveFileExportOperation export=new ArchiveFileExportOperation(
> uploadPage.getAssignmentResource(),
> uploadPage.getAssignmentName());
> export.setUseCompression(true);
> export.setCreateLeadupStructure(true);
> export.run(null);
>
> But this api,
It's not an API. APIs are not in internal packages.
> along with few other, always gives me a "Discouraged access .. The
> type ArchiveFileExportOperation is not accessible due to restriction
> on class ... " warning, and nothing happens. Is there any workaround
> for this ?
See org.eclipse.jdt.ui.jarpackager.JarWriter3.
Dani
>
> Thanks
> Souvik
|
|
|
Powered by
FUDForum. Page generated in 0.04075 seconds