[eclipse] Data file for plugin at installation time

T

the.dodger

Hi all.

I'm developing a plugin for eclipse. It keeps data in its working
directory under the workspace .metadata\.plugins subdirectory. As
example, it uses the file:

<workspace>\.metadata\.plugins\com.test.example\data.dat

Inside the plugin, I can write and read the file using the function:

private File getDataFile(){
IPath path = ExamplePlugin.getDefault().getStateLocation();
path = path.append("data.dat");
return path.toFile();
}

All of this works fine.


Now, I'm developing a local eclipse-site for the installation of the
plugin. And I need copy a first "data.dat" file into the path
"<workspace>\.metadata\.plugins\com.test.example\" at installation
time. Is it possible? How can I copy a file in the working directory at
the installation?

Help me, please, I'm stuck with this :(

Thxs in advance

-dodger-
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top