Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Import and Export of projects
Import and Export of projects [message #260533] Wed, 10 June 2009 07:39 Go to next message
Souvik Roy is currently offline Souvik RoyFriend
Messages: 9
Registered: July 2009
Junior Member
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 09:39 Go to previous message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
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
Previous Topic:Using AST to modify source
Next Topic:PackageFragmentRoot not returning the correct JavaProject
Goto Forum:
  


Current Time: Thu Nov 21 11:32:20 GMT 2024

Powered by FUDForum. Page generated in 0.02756 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top