Java API Extending - problem committing new change set, exception 'Parent ... has multiple children with name ...'.
One answer
I have been looking into the SCM API recently. Please have a look at http://thescmlounge.blogspot.de/2013/08/getting-your-stuff-using-rtc-sdk-to-zip.html as well.
The problem you are having is, I believe, you are creating folders and files again and again that already exist. This causes the message. The way I solved this (I am working on uncompressing directly into SCM) was, to try to find the IFolder and IFileItems in the SCM system. If I could find one, I reused it, if not, I created the object. This way I am able to also update files.
Comments
You also want to compare the old content of a file with the new content you created, and only setcontent(), if there are differences. There is API for that that is easy to find.
If you want to only share a few revisions of your eclipse projects, a manual way would be as follows:
- Import the projects (oldest baseline) into Eclipse.
- Share the projects to their respective components in Jazz SCM.
- Baseline
- Deliver
-
Delete the projects in Eclipse (also delete from disk)
-
Start all over with 1 with the next higher baseline from your projects.
Hi Ralph,
You should be able to debug Illegal argument exceptions easy enough. I have not the time to get your snippet running in my environment. See http://rsjazz.wordpress.com/2013/03/20/understanding-and-using-the-rtc-java-client-api/ for how to debug your code.
Why is your commit before you actually change the content?
Hi Ralph,
Hi Ralph,
I'd make sure to test if your user has permissions to access the data in Eclipse before trying to create automation. This makes sure you have the correct permissions and read access.
Permissions allow everyone access. Wkspc, cmpnt, strm were accessed by 'test' for the initial deliver. 'vPbUZqbY7OMeYf5ruYxLYEbJOi7ko3ewxIaWNquf0vM' is the storedContent stringHash. Error below?