Sharing project file on Win XP and Mac OS X

Hi, I am using oXygen on several platforms for now, mainly on a Mac OS X laptop and a Windows XP desktop. The project I am working on is on a Subversion repository, where I put the oXygen XPR project file. It seems oXygen behaves differently on Mac OS X and Windows XP, regarding using a relative name for files to associate them to a scenario. When I associate a scenario to a file on Mac OS X, the name of the file is recorded (in the XPR file) as relative to the project directory. When I update my project and open it on Windows, then click on the "Apply Transformation Scenario" action, oXygen does ask me for a scenario, and create a new association in the XPR file between the scenario and this file (using an absolute URI of the form file:/C:/path/to/file.xml.) I tried to use ${pdu} in front of the file name, but with no more success. This problem is quite annoying for collaboration work. Would you have a solution? Can I provide more information? Regards, -- Florent Georges http://www.fgeorges.org/

Hello Florent, When the transformation scenarios are stored at project level the name of the file from the association [transformed file - scenario] is saved with a relative path. If the file is not located in the folder of the project file or a subfolder of that folder then the path saved in the association will be something like ../../other_folder/file.xml. Please make sure that this relative path exists also on the other machine (the Windows machine in your case) when it is resolved relative to the location of the project file. Other problem could be that the project was already opened in Oxygen on the other machine (the Windows machine) when you updated the project file from the SVN repository. The project should be refreshed automatically in the Project view when it is changed on disk by other application (the SVN client in your case) and we will fix that in a future version. If this happens in your case please reopen the project file that was updated from SVN by going to menu Project -> Reopen Project as a workaround until we fix the problem. Regards, Sorin Florent Georges wrote:
Hi,
I am using oXygen on several platforms for now, mainly on a Mac OS X laptop and a Windows XP desktop. The project I am working on is on a Subversion repository, where I put the oXygen XPR project file.
It seems oXygen behaves differently on Mac OS X and Windows XP, regarding using a relative name for files to associate them to a scenario. When I associate a scenario to a file on Mac OS X, the name of the file is recorded (in the XPR file) as relative to the project directory. When I update my project and open it on Windows, then click on the "Apply Transformation Scenario" action, oXygen does ask me for a scenario, and create a new association in the XPR file between the scenario and this file (using an absolute URI of the form file:/C:/path/to/file.xml.)
I tried to use ${pdu} in front of the file name, but with no more success. This problem is quite annoying for collaboration work. Would you have a solution? Can I provide more information?
Regards,

Sorin Ristache wrote: Thanks Sorin.
When the transformation scenarios are stored at project level the name of the file from the association [transformed file - scenario] is saved with a relative path. If the file is not located in the folder of the project file or a subfolder of that folder then the path saved in the association will be something like ../../other_folder/file.xml. Please make sure that this relative path exists also on the other machine (the Windows machine in your case) when it is resolved relative to the location of the project file.
Other problem could be that the project was already opened in Oxygen on the other machine (the Windows machine) when you updated the project file from the SVN repository. The project should be refreshed automatically in the Project view when it is changed on disk by other application (the SVN client in your case) and we will fix that in a future version. If this happens in your case please reopen the project file that was updated from SVN by going to menu Project -> Reopen Project as a workaround until we fix the problem.
Unfortunately, I think I meet the conditions. At least, here are the relevant info if I am right... 1/ I always use project scenarii. In the dialog "Configure Transformation Scenario", "Project Scenarios" is ticked, as opposed to "Global Scenarios". scenarios.load.from.project is set to true also, in the XPR file. 2/ All files are descendants of the project directory. 3/ This entire project directory is within the Subversion repository, so all the files (within the directory) are the same both sides. 4/ I never use both machines at same time, and always shut oXygen down when I leave one place for the other. 5/ I always update the working copy of the repository before launching oXygen. Really, I am not looking for troubles, so I always work like that :-) So I checked there is a scenarioAssociation element in the XPR file for the file I'd like to test, with its correct name (as a relative path.) Then I try the "Apply Transformation Scenario" action, but it launches the scenarii selection dialog box. If I select a scenario and save the project, I can see in the XPR a new scenarioAssociation with the same file, but with an absolute path (like file:/C:/...) I run oXygen 10.1 both sides, build 2009022414. Is there anything I missed? Thanks for your help, -- Florent Georges http://www.fgeorges.org/

Hello Florent, A file should be added in an Oxygen project file with an absolute path only if the project file and the file associated with the scenario do not have a common parent folder. I do not understand why the file is added with an absolute path in the project file if it is located in a subfolder of the project folder. Can you send us the project file and let us know the absolute path of the project file on your Windows machine and the path of the file added in the project with an absolute path? Regards, Sorin Florent Georges wrote:
So I checked there is a scenarioAssociation element in the XPR file for the file I'd like to test, with its correct name (as a relative path.) Then I try the "Apply Transformation Scenario" action, but it launches the scenarii selection dialog box. If I select a scenario and save the project, I can see in the XPR a new scenarioAssociation with the same file, but with an absolute path (like file:/C:/...)
I run oXygen 10.1 both sides, build 2009022414.

Sorin Ristache wrote:
Can you send us the project file
Of course, I send it in private. Thanks for looking at that. -- Florent Georges http://www.fgeorges.org/
participants (2)
-
Florent Georges
-
Sorin Ristache