Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Programmatically backup workspace
Programmatically backup workspace [message #197926] Mon, 05 March 2007 21:50 Go to next message
Eclipse UserFriend
Originally posted by: bensonc.ca.ibm.com

Hi,

I am currently implementing a JUnit framework, one of the features
required is that if a test case fail or encounter errors, it will backup
the whole workspace programmatically and continue on with the next test
case. The backup workspace has to be able to relaunch again after the run
to perform futher investigation. Any suggestion of how to do this stably?

Thank you very much
NewComer
Benson
Re: Programmatically backup workspace [message #198181 is a reply to message #197926] Wed, 07 March 2007 08:05 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: nugaee.SPAMtlen.pl

Benson wrote:
> Hi,
> I am currently implementing a JUnit framework, one of the features
> required is that if a test case fail or encounter errors, it will backup
> the whole workspace programmatically and continue on with the next test
> case. The backup workspace has to be able to relaunch again after the
> run to perform futher investigation. Any suggestion of how to do this
> stably?
>
> Thank you very much
> NewComer
> Benson
>
bunch of hints :

you can use IWorkspace#copy method (to understand how it works please
read IResource#copy description)

you will also probably need
http://help.eclipse.org/help32/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/resAdv_concurrency.htm

hope this helps

bartek michalik
Re: Programmatically backup workspace [message #198264 is a reply to message #198181] Wed, 07 March 2007 15:52 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: bensonc.ca.ibm.com

Hi,

I realize that IWorkspace#copy take IPath as the destination, does that
mean i cannot copy my workspce to my file system (outside of my
workspace)? Otherwise can you provide me more hits of how to do this?

Thank you very much
Benson
Re: Programmatically backup workspace [message #198340 is a reply to message #198264] Wed, 07 March 2007 20:24 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: nugaee.SPAMtlen.pl

Benson wrote:
> Hi,
> I realize that IWorkspace#copy take IPath as the destination, does that
> mean i cannot copy my workspce to my file system (outside of my
> workspace)? Otherwise can you provide me more hits of how to do this?
>
> Thank you very much
> Benson
>
take a look on a Path class it can be build on any file system path

hope this helps

bartek michalik
Re: Programmatically backup workspace [message #198587 is a reply to message #198340] Thu, 08 March 2007 15:54 Go to previous message
Eclipse UserFriend
Originally posted by: bensonc.ca.ibm.com

Hi,

i have done some tracing through the debugger and found out that

IResource.copy calls Resource.copy which eventually calls
LocationValidator.validatePath(IPath, int, boolean)

in the comment of this method it say "Validates that the given workspace
path is valid for the given type."

This method will return an Invalid status even if i supply a Path
"C:\workspace".

does the IResource.copy really will allows me to copy file in my workspace
to my file system? it seems like the IPath for IResource.copy must take a
workspace path.

Thank you very much
Benson
Previous Topic:How do I remove plugins and features
Next Topic:Starting the debugger as root without starting Eclipse as root
Goto Forum:
  


Current Time: Fri Nov 08 23:55:18 GMT 2024

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

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

Back to the top