RTC : Ant Task throwing error while executing teamAccept
All,
I am using RTC and have only one component in my development project. I also have 5 different streams created for this component namely DEV->SIT->UAT->PreProd->Prod.
The flow is also set in the same way described above. Now I am trying to do a build and in my build file I am having a task which brings in all changes from the stream to my development workspace. While doing so I am getting the below error:
Here is the comment which I use to run the ant:
Kindly suggest how to fix this error. Please note that my Build is happening from a workspace which was created from the DEV stream. The DEV stream does not have any incoming flow targets. In that case it should not have any problems in accepting the changesets right ?
I am using RTC and have only one component in my development project. I also have 5 different streams created for this component namely DEV->SIT->UAT->PreProd->Prod.
The flow is also set in the same way described above. Now I am trying to do a build and in my build file I am having a task which brings in all changes from the stream to my development workspace. While doing so I am getting the below error:
372 06/30/10 12:54PM EXEC [teamAccept] com.ibm.team.repository.common.TeamRepositoryException: Component <mycomponent> is accepting changes from multiple flow targets
373 06/30/10 12:54PM EXEC [teamAccept] at com.ibm.team.build.internal.scm.SourceControlUtility.acceptAllIncoming(SourceControlUtility.java:715)
374 06/30/10 12:54PM EXEC [teamAccept] at com.ibm.team.build.internal.scm.SourceControlUtility.acceptAllIncoming(SourceControlUtility.java:606)
375 06/30/10 12:54PM EXEC [teamAccept] at com.ibm.team.build.ant.task.TeamAcceptTask.doExecute(TeamAcceptTask.java:160)
376 06/30/10 12:54PM EXEC [teamAccept] at com.ibm.team.build.ant.task.AbstractTeamBuildTask.execute(AbstractTeamBuildTask.java:433)
377 06/30/10 12:54PM EXEC [teamAccept] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
378 06/30/10 12:54PM EXEC [teamAccept] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
379 06/30/10 12:54PM EXEC [teamAccept] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
380 06/30/10 12:54PM EXEC [teamAccept] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
381 06/30/10 12:54PM EXEC [teamAccept] at java.lang.reflect.Method.invoke(Method.java:597)
382 06/30/10 12:54PM EXEC [teamAccept] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
383 06/30/10 12:54PM EXEC [teamAccept] at org.apache.tools.ant.Task.perform(Task.java:348)
384 06/30/10 12:54PM EXEC [teamAccept] at org.apache.tools.ant.Target.execute(Target.java:390)
385 06/30/10 12:54PM EXEC [teamAccept] at org.apache.tools.ant.Target.performTasks(Target.java:411)
386 06/30/10 12:54PM EXEC [teamAccept] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1397)
387 06/30/10 12:54PM EXEC [teamAccept] at org.apache.tools.ant.Project.executeTarget(Project.java:1366)
388 06/30/10 12:54PM EXEC [teamAccept] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
389 06/30/10 12:54PM EXEC [teamAccept] at org.apache.tools.ant.Project.executeTargets(Project.java:1249)
390 06/30/10 12:54PM EXEC [teamAccept] at org.apache.tools.ant.Main.runBuild(Main.java:801)
391 06/30/10 12:54PM EXEC [teamAccept] at org.apache.tools.ant.Main.startAnt(Main.java:218)
392 06/30/10 12:54PM EXEC [teamAccept] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
393 06/30/10 12:54PM EXEC [teamAccept] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
Here is the comment which I use to run the ant:
"c:\Program Files\Ant"\bin\ant -verbose -lib "C:\RTC-BuildSystemToolkit-2.0.0.2iFix2-Win\jazz\buildsystem\buildtoolkit" -f "C:\RTC-BuildSystemToolkit-2.0.0.2iFix2-Win\jazz\buildsystem\buildtoolkit\ant_rtc_bf_helper.xml" -D"repositoryAddress"="https://<myhostname>:9443/jazz" -D"buildUser"="<myuser>" -D"buildPassword"="<mypassword>" -D"buildWorkspace"="<my_workspace>" -D"buildName"="RTC Ant Task Project" -D"fetchDir"="D:\FullBuildTest" accept
Kindly suggest how to fix this error. Please note that my Build is happening from a workspace which was created from the DEV stream. The DEV stream does not have any incoming flow targets. In that case it should not have any problems in accepting the changesets right ?
2 answers
According to the first "error" the workspace has "Multiple Flows". I would check on that.
If there are more than one Flow Target that's not a good thing. (I know this from personal experience).
-Walter
Here is the comment which I use to run the ant:
[code]"c:\Program Files\Ant"\bin\ant -verbose -lib "C:\RTC-BuildSystemToolkit-2.0.0.2iFix2-Win\jazz\buildsystem\buildtoolkit" -f "C:\RTC-BuildSystemToolkit-2.0.0.2iFix2-Win\jazz\buildsystem\buildtoolkit\ant_rtc_bf_helper.xml" -D"repositoryAddress"="https://<myhostname>:9443/jazz" -D"buildUser"="<myuser>" -D"buildPassword"="<mypassword>" -D"buildWorkspace"="<my_workspace>" -D"buildName"="RTC Ant Task Project" -D"fetchDir"="D:\FullBuildTest" accept[/code]
Kindly suggest how to fix this error. Please note that my Build is happening from a workspace which was created from the DEV stream. The DEV stream does not have any incoming flow targets. In that case it should not have any problems in accepting the changesets right ? :D
372 06/30/10 12:54PM EXEC com.ibm.team.repository.common.TeamRepositoryException: Component <mycomponent> is accepting changes from multiple flow targets
If there are more than one Flow Target that's not a good thing. (I know this from personal experience).
-Walter
All,
I am using RTC and have only one component in my development project. I also have 5 different streams created for this component namely DEV->SIT->UAT->PreProd->Prod.
The flow is also set in the same way described above. Now I am trying to do a build and in my build file I am having a task which brings in all changes from the stream to my development workspace. While doing so I am getting the below error:
[code]372 06/30/10 12:54PM EXEC com.ibm.team.repository.common.TeamRepositoryException: Component <mycomponent> is accepting changes from multiple flow targets
373 06/30/10 12:54PM EXEC at com.ibm.team.build.internal.scm.SourceControlUtility.acceptAllIncoming(SourceControlUtility.java:715)
374 06/30/10 12:54PM EXEC at com.ibm.team.build.internal.scm.SourceControlUtility.acceptAllIncoming(SourceControlUtility.java:606)
375 06/30/10 12:54PM EXEC at com.ibm.team.build.ant.task.TeamAcceptTask.doExecute(TeamAcceptTask.java:160)
376 06/30/10 12:54PM EXEC at com.ibm.team.build.ant.task.AbstractTeamBuildTask.execute(AbstractTeamBuildTask.java:433)
377 06/30/10 12:54PM EXEC at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
378 06/30/10 12:54PM EXEC at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
379 06/30/10 12:54PM EXEC at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
380 06/30/10 12:54PM EXEC at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
381 06/30/10 12:54PM EXEC at java.lang.reflect.Method.invoke(Method.java:597)
382 06/30/10 12:54PM EXEC at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
383 06/30/10 12:54PM EXEC at org.apache.tools.ant.Task.perform(Task.java:348)
384 06/30/10 12:54PM EXEC at org.apache.tools.ant.Target.execute(Target.java:390)
385 06/30/10 12:54PM EXEC at org.apache.tools.ant.Target.performTasks(Target.java:411)
386 06/30/10 12:54PM EXEC at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1397)
387 06/30/10 12:54PM EXEC at org.apache.tools.ant.Project.executeTarget(Project.java:1366)
388 06/30/10 12:54PM EXEC at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
389 06/30/10 12:54PM EXEC at org.apache.tools.ant.Project.executeTargets(Project.java:1249)
390 06/30/10 12:54PM EXEC at org.apache.tools.ant.Main.runBuild(Main.java:801)
391 06/30/10 12:54PM EXEC at org.apache.tools.ant.Main.startAnt(Main.java:218)
392 06/30/10 12:54PM EXEC at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
393 06/30/10 12:54PM EXEC at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)[/code]
Here is the comment which I use to run the ant:
[code]"c:\Program Files\Ant"\bin\ant -verbose -lib "C:\RTC-BuildSystemToolkit-2.0.0.2iFix2-Win\jazz\buildsystem\buildtoolkit" -f "C:\RTC-BuildSystemToolkit-2.0.0.2iFix2-Win\jazz\buildsystem\buildtoolkit\ant_rtc_bf_helper.xml" -D"repositoryAddress"="https://<myhostname>:9443/jazz" -D"buildUser"="<myuser>" -D"buildPassword"="<mypassword>" -D"buildWorkspace"="<my_workspace>" -D"buildName"="RTC Ant Task Project" -D"fetchDir"="D:\FullBuildTest" accept[/code]
Kindly suggest how to fix this error. Please note that my Build is happening from a workspace which was created from the DEV stream. The DEV stream does not have any incoming flow targets. In that case it should not have any problems in accepting the changesets right ? :D
A build workspace treats the flow targets differently than in the IDE. When it accepts changes, it accepts from -all- the flow targets, not just the current one. If you only want to accept from one, remove the other flows.
When accepting from multiple flow targets, you need to ensure that it doesn't accept the same component from multiple targets. That's what's happening in your situation.
You can configured scoped flows in the workspace editor, whereby you specify which component(s) get flowed from each target. In your case, since there's only one component, this probably doesn't apply, so I suggest just removing the flows that don't apply.
Also, any reason you're not just letting JBE do the accept for you?
When accepting from multiple flow targets, you need to ensure that it doesn't accept the same component from multiple targets. That's what's happening in your situation.
You can configured scoped flows in the workspace editor, whereby you specify which component(s) get flowed from each target. In your case, since there's only one component, this probably doesn't apply, so I suggest just removing the flows that don't apply.
Also, any reason you're not just letting JBE do the accept for you?