Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 433875

Summary: [server] need a tool to create a serverworkspace for migration tests
Product: [ECD] Orion Reporter: Anthony Hunter <ahunter.eclipse>
Component: ServerAssignee: Anthony Hunter <ahunter.eclipse>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 6.0   
Target Milestone: 6.0 M2   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Anthony Hunter CLA 2014-04-30 12:53:20 EDT
When testing the migration from the legacy metadata storage to the first version of the simple metadata storage, we only needed a few files to be able to create a test server workspace.

We need something similar to test the migration to version two of the simple metadata storage.
Comment 1 Anthony Hunter CLA 2014-04-30 13:00:15 EDT
I have created the utility to reverse engineer version one of the simple metadata storage to be used for migration tests. 

I was able to get Ken to run on orion.eclipse.org:
% cd serverworkspace
% find . -type d > directories.txt
% find . -type d > files.txt

You then copy directories.txt, files.txt and simple_metadata_creator.sh into a folder and run:
% ./simple_metadata_creator.sh

This creates the framework of the serverworkspace. You then run the SimpleMetaDataCreatorV1 class:
SimpleMetaDataCreatorV1 /opt/workspaces/serverworkspace

This will fill in basic metadata based on the files that exist. You can then start the server using this server workspace, login and see the projects. Then run the migration to test everything looks good.

This is delivered with commit:
http://git.eclipse.org/c/orion/org.eclipse.orion.server.git/commit/?id=12d4b098a89e9c03d5fc5286af7c8e88ba872ca6
Comment 2 Anthony Hunter CLA 2014-04-30 15:09:21 EDT
I left an error "The 'javacProjectSettings' build entry should be set when there are project specific compiler settings" with the last set of changes.

I have fixed with commit
http://git.eclipse.org/c/orion/org.eclipse.orion.server.git/commit/?id=3cbbe4b613ca6880f0c06743a1669e1883869fcc
Comment 3 Anthony Hunter CLA 2014-09-22 16:40:29 EDT
Since the SimpleMetaDataCreatorV1 class is obsolete now that we do not support version one or two anymore, I have removed SimpleMetaDataCreatorV1 during Orion 7.0 with commit:
http://git.eclipse.org/c/orion/org.eclipse.orion.server.git/commit/?id=f547908d0fd81d5139a8ade8ec665bf7bbb337a5