Separate the BW Studio files (in local workspace) from the project files (in synced Repo). Syncing both projects and BW Studio files (e.g. .metadata folder) after pulling from repo server (BitBucket), BW will hang after opening
the Workspace as .metadata files are different on different BW Studios. There will be a few errors from Eclipse level in .metadata\.log:
!ENTRY org.eclipse.core.resources 4 2 2015-01-22 06:01:56.045
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.core.resources".
!STACK 0
java.lang.NullPointerException
at com.tibco.xpd.ui.projectexplorer.decorator.XPDProblemDecorator.getResourcesToRefresh(XPDProblemDecorator.java:176)
……
The
second time opening BW Studio will recreate the .metadata folder and BW
will not hang. But this does not work as .metadata will be
synced to repo. We suggest to
separating the BW Studio files (in local Workspace) from the project files
(in synced Repo), and only push and pull the project files.
Detailed example follows.
================
Machine 1
1). Created a local directory WorkRepo1.
2). Link WorkRepo1 to online repository using SourceTree.
3). Created a local directory WSWorkRepo1. This directory is used as a Workspace in BW Studio.
4). Created new project in Studio. Override the default location WSWorkRepo1 to WorkRepo1. This means that the project files will not be in the Workspace directory (WSWorkRepo1) but they will be created in WorkRepo1.
5). Clean and build Workspace and close BW Studio.
6). From SourceTree, committed the changes in WorkRepo1 and push to the online repository.
7). Verified application folders/files in the web repository.
Machine 2 (simulation for 2nd user)
8). Created a local directory WorkRepo2.
9). Link WorkRepo2 to the online repository in SourceTree.
10). Pull the files/folders from the online repository to WorkRepo2.
11). Create the local directory WSWorkRepo2. This directory is used as Workspace in BW Studio.
12). In Workspace, right-click - Import existing projects to Workspace. Select WorkRepo2 as root.
13). Add one HTTPconnection Resource to the project application in BW Studio.
14). Clean and build Workspace and close BW Studio.
15). You can see the HTTP connection resource file under pending list in SourceTree for WorkRepo2.
16). Commit and push this change to the online repository.
Machine 1 (1st person pulling changes follows)
17). Opened WorkRepo1 in sourcetree and pull the files from sourcetree.
18). You can see the HTTP connection resource in the directory in the folder in Windows File Explorer.
19). Open WSWorkRepo1.
20). Unable to find the HTTP connection resource in the Workspace.
21). Go to that particular project and right-click Refresh. Then the HTTP Connection resource will be displayed in Workspace.
================