Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Copying files from a plug-in subdirectory to a project subdirectory
Copying files from a plug-in subdirectory to a project subdirectory [message #65959] Tue, 24 June 2003 11:02 Go to next message
Eclipse UserFriend
Originally posted by: lebowitz.finaltouch.com

I'm working on a plugin application which will create a new project, a
subdirectory structure within that project, and then populate the various
subdirectories with several pre-written files.

Ideally, I'd like to be able to create a Resources subdirectory within the
plugin subdirectory that will hold these files. What I haven't figured out
is how to get a reference to this Resources subdirectory, i.e. how do I get
a reference to the plugin's own directory so I can copy those resource files
to the appropriate locations within the project?

Thanks,
Rob
Re: Copying files from a plug-in subdirectory to a project subdirectory [message #66362 is a reply to message #65959] Tue, 24 June 2003 19:17 Go to previous message
Eclipse UserFriend
Originally posted by: lebowitz.finaltouch.com

I determined on my own that it is is possible to obtain the URL of the
installation directory for a plug-in using the following bit of code.

URL base = getDescriptor().getInstallURL();
Previous Topic:jdk 1.5, and early release stuff
Next Topic:Mutliple Source Folders
Goto Forum:
  


Current Time: Sat Jul 13 00:23:24 GMT 2024

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

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

Back to the top