ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 20360] New: - Unable to find root folder When Using a Label
Date Fri, 30 May 2003 16:13:05 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20360>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20360

Unable to find root folder When Using a Label

           Summary: Unable to find root folder When Using a Label
           Product: Ant
           Version: 1.5.3
          Platform: All
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Optional Tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: brian.brooks@metavante.com


In our environment, we have multiple labels.  I'm working on a a release 
process and I'm switching between labels.  I've written an stcheckout similar to

    <stcheckout
      username="myuserid" password="mypassword"
      URL                    = "thor:49201/ps/c1_prod-02-branch_maint"
      rootStarteamFolder     = "/charterone/com"
      rootlocalfolder        = "${basedir}"
      label                  = "c1ret_tr8"
      deleteuncontrolled     = "false"      
      userepositorytimestamp = "true" 
    />

For label c1ret_tr16 I have files in starteam /charterone/com but in c1ret_tr8 
I don't.  Stcheckout causes the build to fail whevenever I execute this task 
with c1ret_tr8.  The output for this failure is

C:\temp\ant1>ant -debug >c:\temp\ant2.txt

BUILD FAILED
file:C:/temp/ant1/build.xml:14: Unable to find root folder /charterone/com in re
pository at thor:49201/ps/c1_prod-02-branch_maint
        at org.apache.tools.ant.taskdefs.optional.starteam.TreeBasedTask.execute
(TreeBasedTask.java:560)
        at org.apache.tools.ant.Task.perform(Task.java:341)
        at org.apache.tools.ant.Target.execute(Target.java:309)
        at org.apache.tools.ant.Target.performTasks(Target.java:336)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
        at org.apache.tools.ant.Main.runBuild(Main.java:609)
        at org.apache.tools.ant.Main.start(Main.java:196)
        at org.apache.tools.ant.Main.main(Main.java:235)
--- Nested Exception ---
Unable to find root folder /charterone/com in repository at thor:49201/ps/c1_pro
d-02-branch_maint
        at org.apache.tools.ant.taskdefs.optional.starteam.TreeBasedTask.configu
reRootStarteamFolder(TreeBasedTask.java:481)
        at org.apache.tools.ant.taskdefs.optional.starteam.TreeBasedTask.execute
(TreeBasedTask.java:545)
        at org.apache.tools.ant.Task.perform(Task.java:341)
        at org.apache.tools.ant.Target.execute(Target.java:309)
        at org.apache.tools.ant.Target.performTasks(Target.java:336)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
        at org.apache.tools.ant.Main.runBuild(Main.java:609)
        at org.apache.tools.ant.Main.start(Main.java:196)
        at org.apache.tools.ant.Main.main(Main.java:235)

Total time: 6 seconds
C:\temp\ant1>

The only way I have to work around this issue is to change the 
rootStarteamFolder to a less specific /charterone like so

    <stcheckout
      username="BBrooks" password="mcsp7wgw"
      URL                    = "thor:49201/ps/c1_prod-02-branch_maint"
      rootStarteamFolder     = "/charterone"
      rootlocalfolder        = "${basedir}"
      label                  = "c1ret_tr8"
      deleteuncontrolled     = "false"      
      userepositorytimestamp = "true" 
    />

However, this causes the average checkout time to increase by 8 minutes!!!  

Stcheckout should handle this situation more gracefully.  The build should not 
fail when no files are found for a particular label.  Only a warning message or 
at least parameterize the behavior similar to the <jar> task's attribute 
whenempty.

Here's the full ant -debug ...
Apache Ant version 1.5.3 compiled on April 16 2003
Buildfile: build.xml
Detected Java version: 1.3 in: j:\jre
Detected OS: Windows 2000
 +User task: propertyfile     
org.apache.tools.ant.taskdefs.optional.PropertyFile
 +User task: vsscheckin     
org.apache.tools.ant.taskdefs.optional.vss.MSVSSCHECKIN
 +User task: sql     org.apache.tools.ant.taskdefs.SQLExec
 +User task: cvspass     org.apache.tools.ant.taskdefs.CVSPass
 +User task: p4reopen     
org.apache.tools.ant.taskdefs.optional.perforce.P4Reopen
 +User task: csc     org.apache.tools.ant.taskdefs.optional.dotnet.CSharp
 +User task: dirname     org.apache.tools.ant.taskdefs.Dirname
 +User task: wlrun     org.apache.tools.ant.taskdefs.optional.ejb.WLRun
 +User task: p4label     org.apache.tools.ant.taskdefs.optional.perforce.P4Label
 +User task: p4revert     
org.apache.tools.ant.taskdefs.optional.perforce.P4Revert
 +User task: replaceregexp     
org.apache.tools.ant.taskdefs.optional.ReplaceRegExp
 +User task: get     org.apache.tools.ant.taskdefs.Get
 +User task: jjtree     org.apache.tools.ant.taskdefs.optional.javacc.JJTree
 +User task: sleep     org.apache.tools.ant.taskdefs.Sleep
 +User task: jarlib-display     
org.apache.tools.ant.taskdefs.optional.extension.JarLibDisplayTask
 +User task: dependset     org.apache.tools.ant.taskdefs.DependSet
 +User task: zip     org.apache.tools.ant.taskdefs.Zip
 +User task: patch     org.apache.tools.ant.taskdefs.Patch
 +User task: jspc     org.apache.tools.ant.taskdefs.optional.jsp.JspC
 +User task: style     org.apache.tools.ant.taskdefs.XSLTProcess
 +User task: test     org.apache.tools.ant.taskdefs.optional.Test
 +User task: tstamp     org.apache.tools.ant.taskdefs.Tstamp
 +User task: unwar     org.apache.tools.ant.taskdefs.Expand
 +User task: vsshistory     
org.apache.tools.ant.taskdefs.optional.vss.MSVSSHISTORY
 +User task: icontract     org.apache.tools.ant.taskdefs.optional.IContract
 +User task: cvschangelog     org.apache.tools.ant.taskdefs.cvslib.ChangeLogTask
 +User task: p4submit     
org.apache.tools.ant.taskdefs.optional.perforce.P4Submit
 +User task: ccmcheckin     
org.apache.tools.ant.taskdefs.optional.ccm.CCMCheckin
 +User task: p4change     
org.apache.tools.ant.taskdefs.optional.perforce.P4Change
 +User task: bzip2     org.apache.tools.ant.taskdefs.BZip2
 +User task: p4delete     
org.apache.tools.ant.taskdefs.optional.perforce.P4Delete
 +User task: vssadd     org.apache.tools.ant.taskdefs.optional.vss.MSVSSADD
 +User task: javadoc     org.apache.tools.ant.taskdefs.Javadoc
 +User task: translate     org.apache.tools.ant.taskdefs.optional.i18n.Translate
 +User task: signjar     org.apache.tools.ant.taskdefs.SignJar
 +User task: vajload     
org.apache.tools.ant.taskdefs.optional.ide.VAJLoadProjects
 +User task: jarlib-available     
org.apache.tools.ant.taskdefs.optional.extension.JarLibAvailableTask
 +User task: WsdlToDotnet     
org.apache.tools.ant.taskdefs.optional.dotnet.WsdlToDotnet
 +User task: buildnumber     org.apache.tools.ant.taskdefs.BuildNumber
 +User task: jpcovmerge     
org.apache.tools.ant.taskdefs.optional.sitraka.CovMerge
 +User task: ejbjar     org.apache.tools.ant.taskdefs.optional.ejb.EjbJar
 +User task: war     org.apache.tools.ant.taskdefs.War
 +User task: stlist     
org.apache.tools.ant.taskdefs.optional.starteam.StarTeamList
 +User task: rename     org.apache.tools.ant.taskdefs.Rename
 +User task: sequential     org.apache.tools.ant.taskdefs.Sequential
 +User task: serverdeploy     
org.apache.tools.ant.taskdefs.optional.j2ee.ServerDeploy
 +User task: property     org.apache.tools.ant.taskdefs.Property
 +User task: move     org.apache.tools.ant.taskdefs.Move
 +User task: copydir     org.apache.tools.ant.taskdefs.Copydir
 +User task: cccheckin     
org.apache.tools.ant.taskdefs.optional.clearcase.CCCheckin
 +User task: wljspc     org.apache.tools.ant.taskdefs.optional.jsp.WLJspc
 +User task: fixcrlf     org.apache.tools.ant.taskdefs.FixCRLF
Could not load a dependent class (com/oroinc/net/SocketClient) for task telnet
 +User task: sosget     org.apache.tools.ant.taskdefs.optional.sos.SOSGet
 +User task: pathconvert     org.apache.tools.ant.taskdefs.PathConvert
 +User task: record     org.apache.tools.ant.taskdefs.Recorder
 +User task: p4sync     org.apache.tools.ant.taskdefs.optional.perforce.P4Sync
 +User task: exec     org.apache.tools.ant.taskdefs.ExecTask
 +User task: p4edit     org.apache.tools.ant.taskdefs.optional.perforce.P4Edit
 +User task: manifest     org.apache.tools.ant.taskdefs.ManifestTask
 +User task: maudit     org.apache.tools.ant.taskdefs.optional.metamata.MAudit
 +User task: antlr     org.apache.tools.ant.taskdefs.optional.ANTLR
 +User task: netrexxc     org.apache.tools.ant.taskdefs.optional.NetRexxC
Could not load a dependent class (com/oroinc/net/ftp/FTP) for task ftp
 +User task: jpcovreport     
org.apache.tools.ant.taskdefs.optional.sitraka.CovReport
 +User task: execon     org.apache.tools.ant.taskdefs.ExecuteOn
 +User task: ccmcheckout     
org.apache.tools.ant.taskdefs.optional.ccm.CCMCheckout
 +User task: ant     org.apache.tools.ant.taskdefs.Ant
 +User task: xmlvalidate     
org.apache.tools.ant.taskdefs.optional.XMLValidateTask
 +User task: xslt     org.apache.tools.ant.taskdefs.XSLTProcess
 +User task: iplanet-ejbc     
org.apache.tools.ant.taskdefs.optional.ejb.IPlanetEjbcTask
 +User task: ccmcheckintask     
org.apache.tools.ant.taskdefs.optional.ccm.CCMCheckinDefault
 +User task: gzip     org.apache.tools.ant.taskdefs.GZip
 +User task: native2ascii     
org.apache.tools.ant.taskdefs.optional.Native2Ascii
 +User task: starteam     
org.apache.tools.ant.taskdefs.optional.scm.AntStarTeamCheckOut
 +User task: ear     org.apache.tools.ant.taskdefs.Ear
 +User task: input     org.apache.tools.ant.taskdefs.Input
 +User task: rmic     org.apache.tools.ant.taskdefs.Rmic
 +User task: checksum     org.apache.tools.ant.taskdefs.Checksum
 +User task: mail     org.apache.tools.ant.taskdefs.email.EmailTask
 +User task: loadfile     org.apache.tools.ant.taskdefs.LoadFile
 +User task: vsscheckout     
org.apache.tools.ant.taskdefs.optional.vss.MSVSSCHECKOUT
 +User task: stylebook     org.apache.tools.ant.taskdefs.optional.StyleBook
 +User task: soscheckin     
org.apache.tools.ant.taskdefs.optional.sos.SOSCheckin
 +User task: mimemail     org.apache.tools.ant.taskdefs.optional.net.MimeMail
 +User task: stlabel     
org.apache.tools.ant.taskdefs.optional.starteam.StarTeamLabel
 +User task: gunzip     org.apache.tools.ant.taskdefs.GUnzip
 +User task: concat     org.apache.tools.ant.taskdefs.Concat
 +User task: cab     org.apache.tools.ant.taskdefs.optional.Cab
 +User task: touch     org.apache.tools.ant.taskdefs.Touch
 +User task: parallel     org.apache.tools.ant.taskdefs.Parallel
 +User task: splash     org.apache.tools.ant.taskdefs.optional.splash.SplashTask
 +User task: antcall     org.apache.tools.ant.taskdefs.CallTarget
 +User task: cccheckout     
org.apache.tools.ant.taskdefs.optional.clearcase.CCCheckout
 +User task: typedef     org.apache.tools.ant.taskdefs.Typedef
 +User task: p4have     org.apache.tools.ant.taskdefs.optional.perforce.P4Have
 +User task: filter     org.apache.tools.ant.taskdefs.Filter
 +User task: xmlproperty     org.apache.tools.ant.taskdefs.XmlProperty
Could not load a dependent class (jdepend/xmlui/JDepend) for task jdepend
 +User task: copy     org.apache.tools.ant.taskdefs.Copy
 +User task: antstructure     org.apache.tools.ant.taskdefs.AntStructure
Could not load a dependent class (com/ibm/bsf/BSFException) for task script
 +User task: ccmcreatetask     
org.apache.tools.ant.taskdefs.optional.ccm.CCMCreateTask
 +User task: rpm     org.apache.tools.ant.taskdefs.optional.Rpm
 +User task: delete     org.apache.tools.ant.taskdefs.Delete
 +User task: replace     org.apache.tools.ant.taskdefs.Replace
 +User task: mmetrics     
org.apache.tools.ant.taskdefs.optional.metamata.MMetrics
 +User task: waitfor     org.apache.tools.ant.taskdefs.WaitFor
 +User task: untar     org.apache.tools.ant.taskdefs.Untar
 +User task: loadproperties     org.apache.tools.ant.taskdefs.LoadProperties
 +User task: available     org.apache.tools.ant.taskdefs.Available
 +User task: echoproperties     
org.apache.tools.ant.taskdefs.optional.EchoProperties
Could not load a dependent class (junit/framework/TestListener) for task junit
 +User task: stcheckin     
org.apache.tools.ant.taskdefs.optional.starteam.StarTeamCheckin
 +User task: vajexport     org.apache.tools.ant.taskdefs.optional.ide.VAJExport
 +User task: stcheckout     
org.apache.tools.ant.taskdefs.optional.starteam.StarTeamCheckout
 +User task: bunzip2     org.apache.tools.ant.taskdefs.BUnzip2
 +User task: copyfile     org.apache.tools.ant.taskdefs.Copyfile
 +User task: vsscreate     
org.apache.tools.ant.taskdefs.optional.vss.MSVSSCREATE
 +User task: ejbc     org.apache.tools.ant.taskdefs.optional.ejb.Ejbc
 +User task: unjar     org.apache.tools.ant.taskdefs.Expand
 +User task: wsdltodotnet     
org.apache.tools.ant.taskdefs.optional.dotnet.WsdlToDotnet
 +User task: mkdir     org.apache.tools.ant.taskdefs.Mkdir
 +User task: condition     org.apache.tools.ant.taskdefs.ConditionTask
 +User task: cvs     org.apache.tools.ant.taskdefs.Cvs
 +User task: tempfile     org.apache.tools.ant.taskdefs.TempFile
 +User task: junitreport     
org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator
 +User task: taskdef     org.apache.tools.ant.taskdefs.Taskdef
 +User task: echo     org.apache.tools.ant.taskdefs.Echo
 +User task: ccupdate     
org.apache.tools.ant.taskdefs.optional.clearcase.CCUpdate
 +User task: java     org.apache.tools.ant.taskdefs.Java
 +User task: renameext     
org.apache.tools.ant.taskdefs.optional.RenameExtensions
 +User task: vsslabel     org.apache.tools.ant.taskdefs.optional.vss.MSVSSLABEL
 +User task: basename     org.apache.tools.ant.taskdefs.Basename
 +User task: javadoc2     org.apache.tools.ant.taskdefs.Javadoc
 +User task: vsscp     org.apache.tools.ant.taskdefs.optional.vss.MSVSSCP
 +User task: tar     org.apache.tools.ant.taskdefs.Tar
 +User task: vajimport     org.apache.tools.ant.taskdefs.optional.ide.VAJImport
 +User task: setproxy     org.apache.tools.ant.taskdefs.optional.net.SetProxy
 +User task: wlstop     org.apache.tools.ant.taskdefs.optional.ejb.WLStop
 +User task: p4counter     
org.apache.tools.ant.taskdefs.optional.perforce.P4Counter
 +User task: ilasm     org.apache.tools.ant.taskdefs.optional.dotnet.Ilasm
 +User task: soscheckout     
org.apache.tools.ant.taskdefs.optional.sos.SOSCheckout
 +User task: apply     org.apache.tools.ant.taskdefs.Transform
 +User task: ccuncheckout     
org.apache.tools.ant.taskdefs.optional.clearcase.CCUnCheckout
 +User task: jarlib-resolve     
org.apache.tools.ant.taskdefs.optional.extension.JarLibResolveTask
 +User task: jlink     org.apache.tools.ant.taskdefs.optional.jlink.JlinkTask
 +User task: cvstagdiff     org.apache.tools.ant.taskdefs.cvslib.CvsTagDiff
 +User task: javacc     org.apache.tools.ant.taskdefs.optional.javacc.JavaCC
 +User task: chmod     org.apache.tools.ant.taskdefs.Chmod
 +User task: pvcs     org.apache.tools.ant.taskdefs.optional.pvcs.Pvcs
 +User task: jarlib-manifest     
org.apache.tools.ant.taskdefs.optional.extension.JarLibManifestTask
 +User task: jar     org.apache.tools.ant.taskdefs.Jar
 +User task: sound     org.apache.tools.ant.taskdefs.optional.sound.SoundTask
 +User task: mparse     org.apache.tools.ant.taskdefs.optional.metamata.MParse
 +User task: blgenclient     
org.apache.tools.ant.taskdefs.optional.ejb.BorlandGenerateClient
 +User task: uptodate     org.apache.tools.ant.taskdefs.UpToDate
 +User task: genkey     org.apache.tools.ant.taskdefs.GenerateKey
 +User task: javah     org.apache.tools.ant.taskdefs.optional.Javah
 +User task: ccmreconfigure     
org.apache.tools.ant.taskdefs.optional.ccm.CCMReconfigure
 +User task: fail     org.apache.tools.ant.taskdefs.Exit
 +User task: unzip     org.apache.tools.ant.taskdefs.Expand
 +User task: javac     org.apache.tools.ant.taskdefs.Javac
 +User task: p4add     org.apache.tools.ant.taskdefs.optional.perforce.P4Add
 +User task: jpcoverage     
org.apache.tools.ant.taskdefs.optional.sitraka.Coverage
 +User task: soslabel     org.apache.tools.ant.taskdefs.optional.sos.SOSLabel
 +User task: depend     org.apache.tools.ant.taskdefs.optional.depend.Depend
 +User task: vssget     org.apache.tools.ant.taskdefs.optional.vss.MSVSSGET
 +User task: deltree     org.apache.tools.ant.taskdefs.Deltree
 +User task: ddcreator     org.apache.tools.ant.taskdefs.optional.ejb.DDCreator
 +User datatype: patternset     org.apache.tools.ant.types.PatternSet
 +User datatype: filterset     org.apache.tools.ant.types.FilterSet
 +User datatype: libfileset     
org.apache.tools.ant.taskdefs.optional.extension.LibFileSet
 +User datatype: filterreader     org.apache.tools.ant.types.AntFilterReader
 +User datatype: extension     
org.apache.tools.ant.taskdefs.optional.extension.ExtensionAdapter
 +User datatype: fileset     org.apache.tools.ant.types.FileSet
 +User datatype: dirset     org.apache.tools.ant.types.DirSet
 +User datatype: filelist     org.apache.tools.ant.types.FileList
 +User datatype: filterchain     org.apache.tools.ant.types.FilterChain
 +User datatype: path     org.apache.tools.ant.types.Path
 +User datatype: classfileset     
org.apache.tools.ant.types.optional.depend.ClassfileSet
 +User datatype: description     org.apache.tools.ant.types.Description
 +User datatype: xmlcatalog     org.apache.tools.ant.types.XMLCatalog
 +User datatype: selector     
org.apache.tools.ant.types.selectors.SelectSelector
 +User datatype: mapper     org.apache.tools.ant.types.Mapper
 +User datatype: substitution     org.apache.tools.ant.types.Substitution
 +User datatype: extensionSet     
org.apache.tools.ant.taskdefs.optional.extension.ExtensionSet
 +User datatype: regexp     org.apache.tools.ant.types.RegularExpression
Setting ro project property: ant.version -> Apache Ant version 1.5.3 compiled 
on April 16 2003
Setting ro project property: ant.file -> C:\temp\ant1\build.xml
parsing buildfile build.xml with URI = file:C:/temp/ant1/build.xml
Setting ro project property: ant.project.name -> test-ant
Adding reference: test-ant -> org.apache.tools.ant.Project@19d0a1
Project base dir set to: C:\temp\ant1
 +Target: test1
   +Task: stcheckout
Build sequence for target `test1' is [test1]
Complete build sequence is [test1]

test1:
[stcheckout] StarTeam version: StarGate SDK 5.1.2, Build 264
[stcheckout] checking label c1ret_tr16
[stcheckout] checking label c1biz_tr17
[stcheckout] checking label c1ret_tr17
[stcheckout] checking label c1ret_tr16v
[stcheckout] checking label c1ret_tr14
[stcheckout] checking label c1ret_tr13
[stcheckout] checking label c1ret_tr12
[stcheckout] checking label c1_host
[stcheckout] checking label c1ret_base_1_1_sync-needed
[stcheckout] checking label c1biz_base_1_1
[stcheckout] checking label c1biz_tr9
[stcheckout] checking label c1ret_tr10
[stcheckout] checking label c1biz_tr10
[stcheckout] checking label c1ret_tr9
[stcheckout] checking label TR0000009_BIZ
[stcheckout] checking label TR0000009_RET
[stcheckout] checking label c1ret_tr8
[stcheckout] using label c1ret_tr8
BUILD FAILED
file:C:/temp/ant1/build.xml:14: Unable to find root folder /charterone/com in re
pository at thor:49201/ps/c1_prod-02-branch_maint
        at org.apache.tools.ant.taskdefs.optional.starteam.TreeBasedTask.execute
(TreeBasedTask.java:560)
        at org.apache.tools.ant.Task.perform(Task.java:341)
        at org.apache.tools.ant.Target.execute(Target.java:309)
        at org.apache.tools.ant.Target.performTasks(Target.java:336)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
        at org.apache.tools.ant.Main.runBuild(Main.java:609)
        at org.apache.tools.ant.Main.start(Main.java:196)
        at org.apache.tools.ant.Main.main(Main.java:235)
--- Nested Exception ---
Unable to find root folder /charterone/com in repository at thor:49201/ps/c1_pro
d-02-branch_maint
        at org.apache.tools.ant.taskdefs.optional.starteam.TreeBasedTask.configu
reRootStarteamFolder(TreeBasedTask.java:481)
        at org.apache.tools.ant.taskdefs.optional.starteam.TreeBasedTask.execute
(TreeBasedTask.java:545)
        at org.apache.tools.ant.Task.perform(Task.java:341)
        at org.apache.tools.ant.Target.execute(Target.java:309)
        at org.apache.tools.ant.Target.performTasks(Target.java:336)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
        at org.apache.tools.ant.Main.runBuild(Main.java:609)
        at org.apache.tools.ant.Main.start(Main.java:196)
        at org.apache.tools.ant.Main.main(Main.java:235)

Total time: 6 seconds

Mime
View raw message