https://issues.apache.org/bugzilla/show_bug.cgi?id=46326
--- Comment #32 from Kevin Ketchum <[email protected]> 2009-10-13 11:24:29 UTC --- Tested nearly all of the stcheckout flags/parameters. Here is a list of issues I have found: 1. Force option works differently from current stcheckout. Force on new ant does checkout all files. - though note the issue above Buildfile: stCheckout.stcheckout.3.xml starteam-test: [echo] Try pointing to a disk path that doesn't exist on PC - it should be created automatically. [stcheckout] Recursive Checkout from: CM - Archive\Release Notes\ [stcheckout] Checking out to(default): C:\Data\ant bco checkout testing\run_out\Release Notes [stcheckout] StarTeam Log On provider being used is org.apache.tools.ant.taskdefs.optional.starteam.StarTeamDefaultLogOn [stcheckout] Unlocked Files will be marked as Read Only if this option has been checked in the Project properties. [stcheckout] Items will be checked out with no change in lock status. [stcheckout] Items will be checked out with the current timestamp. [stcheckout] Items will be checked out regardless of repository status. [stcheckout] Local items not found in the repository will be deleted. [stcheckout] Items will be checked out using the local machine's EOL convention [stcheckout] Directories will be created wherever they exist in the repository, even if empty. [stcheckout] Checked out CM - Archive\Release Notes\test.file 1.0 --> C:\ant_testing\Release Notes\test.file [stcheckout] Checked out CM - Archive\Release Notes\ReleaseNotes-20-0-15-0.doc 1.3 --> C:\ant_testing\Release Notes\ReleaseNotes-20-0-15-0.doc [stcheckout] Total files failed check out: 0 …. [stcheckout] Total time (ms): 6016 BUILD SUCCESSFUL Total time: 16 seconds Force on current ant doesn't checkout all files, only those that are modified, merge, etc Buildfile: stCheckout.stcheckout.3.xml starteam-test: [echo] Try pointing to a disk path that doesn't exist on PC - it should be created automatically. [stcheckout] Recursive Checkout from: CM - Archive\Release Notes\ [stcheckout] Checking out to(default): C:\Data\ant bco checkout testing\run_out\Release Notes [stcheckout] Items will be checked out with no change in lock status. [stcheckout] Items will be checked out with the current timestamp. [stcheckout] Items will be checked out regardless of repository status. [stcheckout] Local items not found in the repository will be deleted. [stcheckout] Items will be checked out using the local machine's EOL convention [stcheckout] Directories will be created wherever they exist in the repository, even if empty. [stcheckout] Checking out: CM - Archive\Release Notes\ReleaseNotes-20-0-15-0.doc --> C:\ant_testing\Release Notes\ReleaseNotes-20-0-15-0.doc [stcheckout] Skipping: CM - Archive\Release Notes\ReleaseNotes-20-0-27-0.doc - status: Current [stcheckout] Skipping: CM - Archive\Release Notes\ReleaseNotes-20-0-25-0.doc - status: Current BUILD SUCCESSFUL Total time: 11 seconds 2. Checkout path is wrong in header description: The 'Checking out to' path shown is different that then actual checked out path - also, please put a space between 'to' and '(' in the 'Checking out' line In the lines shown below beginning with *, this is demonstrated: starteam-test: [echo] Try pointing to a disk path that doesn't exist on PC - it should be created automatically. [stcheckout] Recursive Checkout from: CM - Archive\Release Notes\ *[stcheckout] Checking out to(default): C:\Data\ant bco checkout testing\run_out\Release Notes [stcheckout] StarTeam Log On provider being used is org.apache.tools.ant.taskdefs.optional.starteam.StarTeamDefaultLogOn [stcheckout] Unlocked Files will be marked as Read Only if this option has been checked in the Project properties. [stcheckout] Items will be checked out with no change in lock status. [stcheckout] Items will be checked out with the current timestamp. [stcheckout] Items will be checked out in accordance with repository status. [stcheckout] Local items not found in the repository will be deleted. [stcheckout] Items will be checked out using the local machine's EOL convention [stcheckout] Directories will be created wherever they exist in the repository, even if empty. *[stcheckout] SKIP Checked out of CM - Archive\Release Notes\ReleaseNotes-20-0-15-0.doc 1.3 --> C:\ant_testing\Release Notes\ReleaseNotes-20-0-15-0.doc 3. Createworkingdirs doesn't appear to work Here is the script I called, pointing to an emptry folder and subfolder: <?xml version="1.0" encoding="UTF-8"?> <project name="bootstrap" default="starteam-test" basedir="."> <target name="starteam-test"> <!--C:\build_tools\apache-ant-1.7.0\bin\ant--> <echo message="Test createworkingdirs=true - by including obscure file and doing recursive checkout - delete checkout directory first"/> <stcheckout servername="starteamapp" serverport="49260" projectname="TestArea" viewname="ant_test" rootstarteamfolder="empty folder" username="testuser4" password="StarTeam1" createworkingdirs="true" includes="*" recursive="true" /> </target> </project> It didn't create the folders [echo] Test createworkingdirs=true - by including obscure file and doing recursive checkout - delete checkout directory first [stcheckout] Recursive Checkout from: CM - Archive\empty folder\ [stcheckout] Checking out to(default): C:\Data\ant bco checkout testing\run_out\empty folder [stcheckout] StarTeam Log On provider being used is org.apache.tools.ant.taskdefs.optional.starteam.StarTeamDefaultLogOn [stcheckout] Unlocked Files will be marked as Read Only if this option has been checked in the Project properties. [stcheckout] Items will be checked out with no change in lock status. [stcheckout] Items will be checked out with the current timestamp. [stcheckout] Items will be checked out in accordance with repository status. [stcheckout] Local items not found in the repository will be deleted. [stcheckout] Items will be checked out using the local machine's EOL convention [stcheckout] Directories will be created wherever they exist in the repository, even if empty. [stcheckout] Total files failed check out: 0 … [stcheckout] Total time (ms): 0 If I run the analogous command from BCO, the folders are created bco -p "testuser4:starte...@starteamapp:49260/testArea/ant_test/empty folder/" -is -vb -o -cwf StarTeam BulkCheckOut Utility version 10.4.1 Copyright (c) 2004-2008 Borland Software Corporation. All rights reserved. Logged-on as user: testuser4 Using project: TestArea Using view: ant_test Working folder created: C:\ant_testing\empty folder\ Working folder created: C:\ant_testing\empty folder\empty subfolder\ Examining folder: CM - Archive\empty folder\ Examining folder: CM - Archive\empty folder\empty subfolder\ No files to check-out. No files found matching pattern '*' Return code: 102 4. Should includes and excludes be case sensitive? Perhaps a 'casesensitive' flag should be added (like the FileSet option in Ant). 5. Label checkout only checks out older version if force=true. The problem here is that force=true also checks every other file. Label checkout should checkout previous versions without having to set force=true. This works the same as BCO, but BCO provides the -filter option, which would allow you to omit the 'current files NOTE: Force option works differently from current stcheckout version - it seems to apply the filter automatically and not checkout current files 6. Promotion State checkout only checks out older version if force=true. The problem here is that force=true also checks every other file. Promotion State checkout should checkout previous versions without having to set force=true. This works the same as BCO, but BCO provides the -filter option, which would allow you to omit the 'current files IMO - the promotion state should be displayed in the output. - the label that is assigned to the promotion state could be displayed as well. 7. Promotion State providing bogus value doesn't fail. Some sort of checkout still happens starteam-test: [echo] Test promotionState=Bogus - test should fail [stcheckout] Recursive Checkout from: CM - Archive\Release Notes\ [stcheckout] Checking out to(default): C:\Data\ant bco checkout testing\run_out\Release Notes [stcheckout] StarTeam Log On provider being used is org.apache.tools.ant.taskdefs.optional.starteam.StarTeamDefaultLogOn [stcheckout] Unlocked Files will be marked as Read Only if this option has been checked in the Project properties. [stcheckout] Items will be checked out with no change in lock status. [stcheckout] Items will be checked out with the current timestamp. [stcheckout] Items will be checked out in accordance with repository status. [stcheckout] Local items not found in the repository will be deleted. [stcheckout] Items will be checked out using the local machine's EOL convention [stcheckout] Directories will be created wherever they exist in the repository, even if empty. [stcheckout] SKIP Checked out of CM - Archive\Release Notes\ReleaseNotes-20-0-15-0.doc 1.3 --> C:\ant_testing\Release Notes\ReleaseNotes-20-0-15-0.doc [stcheckout] SKIP Checked out of CM - Archive\Release Notes\ReleaseNotes-20-0-20-0.doc 1.0 --> C:\ant_testing\Release Notes\ReleaseNotes-20-0-20-0.doc [stcheckout] Total files failed check out: 0 … [stcheckout] Total time (ms): 0 8. Test asofdate with incorrect date format - used bogus date/time of 2009-19-25T8:16:13 (month = 19) Instead of telling me date is not a valid date, I got this error: Unable to find root folder Release Notes in repository at starteamapp:49260/TestArea/ant_test as of specified date 2009-19-25T8:16:13 9. Test convertEOL=false option failed I think.. I have a file with non-recoginized EOLs (created with VI on linux and scp'd to PC then checked into StarTeam. When I check it out without defining convertEOL or setting convertEOL=true it converts the EOL (as expected) Items will be checked out using the local machine's EOL convention However, with I check it out with convertEOL=false, it converts EOL too. Here is the line in the ant checkout that indicates what it should do: Items will be checked out without changing the EOL convention used on the server Another point - I do NOT have the 'Automatic EOL conversion for check-out operations checked. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.
