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-
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-