I've used some paths in my plugin which are specific to me ( for example when reading the content of a file to extract informations that I used ) .
I want to know if there will be a problem when deploying the plugin at end , I'm not sure but I think that other users will not be able to detect the file .
How should I rearrange the paths if there is a problem
Paul Webster Messages: 6850 Registered: July 2009 Location: Ottawa
> Hi all !
> I've used some paths in my plugin which are specific to me ( for example
> when reading the content of a file to extract informations that I used ) .
> I want to know if there will be a problem when deploying the plugin at
> end , I'm not sure but I think that other users will not be able to
> detect the file .
Plugins can include files either as resources (the standard java way,
simply files in the source tree that can be loaded from
getResourceAsStream(*)) or simply loaded as files from the bundle (like
most plugin's icons/ directory) using Bundle#getEntry(*).
Both of the above methods work during development and during deployment
(when the plugin is a jar).
another question please that deals also with the paths !
if I checkout a package source from SVN with my code in my plugin I'm obliged to specify a local path where to put the working copy that I created .
What should I do to transforme this location by default to the workspace of the user of my plugin ( the package source should be copied into the user's workspace of eclipse )? is it done automatically ?
my local path is :
File localPath = new File("/home/..../runtime-EclipseApplication/....");