https://issues.apache.org/bugzilla/show_bug.cgi?id=46326
--- Comment #34 from Kevin Ketchum <[email protected]> 2009-10-14 09:54:59 UTC --- I have tested nearly all of the stcheckin flags/parameters. Here is a list of issues I have found (I have a couple more tests to run after adduncontrolled parameter works): 1. The checkin task is nearly always showing that 'Items will be checked in regardless of repository status only if locked.' See the line beginning with * below - I have not set the project option of 'Require exclusive lock when files are checked in' though it seems to think so. Buildfile: stcheckin.stcheckin.6.xml starteam-test: [echo] Check in a file that doesn't currently exist - adduncontrolled=true should work [stcheckin] Non-recursive Checkin from (default): C:\Data\ant bco checkout testing\run_out\checkin [stcheckin] Checking in to: CM - Archive\checkin\ [stcheckin] Includes specified: newfileaddtest.txt [stcheckin] Items will be checked in with no change in lock status. *[stcheckin] Items will be checked in regardless of repository status only if locked. [stcheckin] Excluding CM - Archive\checkin\checkin_good.txt BUILD SUCCESSFUL 2. Check in to a good location in StarTeam using user w/o access rights to checkin files StackTrace shouldn't be shown Buildfile: stcheckin.stcheckin.3.xml starteam-test: [echo] Check in to a good location in StarTeam using user w/o access rights to checkin files [stcheckin] Non-recursive Checkin from (default): C:\Data\ant bco checkout testing\run_out\checkin [stcheckin] Checking in to: CM - Archive\checkin\ [stcheckin] Includes specified: checkin_good.txt [stcheckin] Items will be checked in with no change in lock status. [stcheckin] Items will be checked in regardless of repository status only if locked. [stcheckin] Checking in: C:\ant_testing\checkin\checkin_good.txt --> CM - Archive\checkin\checkin_good.txt BUILD FAILED You do not have access rights to perform this operation. If you need access, contact your administrator. at com.starbase.starteam.ServerException.wrap(Unknown Source) at com.starbase.starteam.Server.wrap(Unknown Source) at com.starbase.starteam.File.checkin(Unknown Source) at org.apache.tools.ant.taskdefs.optional.starteam.StarTeamCheckin.processFile(StarTeamCheckin.java:308) at org.apache.tools.ant.taskdefs.optional.starteam.StarTeamCheckin.visit(StarTeamCheckin.java:233) at org.apache.tools.ant.taskdefs.optional.starteam.TreeBasedTask.execute(TreeBasedTask.java:725) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:357) at org.apache.tools.ant.Target.performTasks(Target.java:385) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337) at org.apache.tools.ant.Project.executeTarget(Project.java:1306) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) at org.apache.tools.ant.Project.executeTargets(Project.java:1189) at org.apache.tools.ant.Main.runBuild(Main.java:758) at org.apache.tools.ant.Main.startAnt(Main.java:217) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104) Total time: 15 seconds 3. Check in a file that doesn't currently exist in StarTeam - adduncontrolled=true should add the file - but file was not added. FYI: The current version of Ant behaves the same way Here are the ant log file contents: Buildfile: stcheckin.stcheckin.7.xml starteam-test: [echo] Check in a file that doesn't currently exist - adduncontrolled=true should work [stcheckin] Non-recursive Checkin from (default): C:\Data\ant bco checkout testing\run_out\checkin [stcheckin] Checking in to: CM - Archive\checkin\ [stcheckin] Includes specified: newfileaddtest.txt [stcheckin] Items will be checked in with no change in lock status. [stcheckin] Items will be checked in regardless of repository status only if locked. [stcheckin] Excluding CM - Archive\checkin\checkin_good.txt [stcheckin] Excluding CM - Archive\checkin\checkin_good1.txt [stcheckin] Excluding CM - Archive\checkin\checkin_good2.txt BUILD SUCCESSFUL Total time: 14 seconds Here is the ant script <?xml version="1.0" encoding="UTF-8"?> <project name="bootstrap" default="starteam-test" basedir="."> <target name="starteam-test"> <echo message="Check in a file that doesn't currently exist - adduncontrolled=true should work "/> <!--C:\build_tools\apache-ant-1.7.0\bin\ant--> <stcheckin servername="starteamapp" serverport="49260" projectname="testArea" viewname="ant_test" rootstarteamfolder="checkin" username="testuser4" password="StarTeam1" comment="ant test" adduncontrolled="true" includes="newfileaddtest.txt" /> </target> </project> -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.
