<< Back to previous view

[QB-1058] CLONE -useragent\bin\config.bat not runnable except after chdir to useragent\bin directory
Created: 26/Sep/11  Updated: 27/Dec/12

Status: Resolved
Project: QuickBuild
Component/s: None
Affects Version/s: 3.1.50
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Don Ross Assigned To: Unassigned
Resolution: Fixed Votes: 0
Remaining Estimate: Unknown Time Spent: Unknown
Original Estimate: Unknown


 Description   
I am able to run C:\QuickBuild\useragent\bin\agent start/stop without first being in the C:\QuickBuild\useragent\\bin folder.
However, when I try to run C:\QuickBuild\useragent\bin\config.bat, I get this error:

Exception in thread "main" java.lang.RuntimeException: java.io.FileNotFoundExcep
tion: D:\resource\release (The system cannot find the path specified)
        at com.pmease.quickbuild.bootstrap.BootstrapUtils.wrapAsUnchecked(Bootst
rapUtils.java:50)
        at com.pmease.quickbuild.bootstrap.BootstrapUtils.loadProps(BootstrapUti
ls.java:347)
        at com.pmease.quickbuild.bootstrap.Config.main(Config.java:26)
Caused by: java.io.FileNotFoundException: D:\resource\release (The system cannot
 find the path specified)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(Unknown Source)
        at com.pmease.quickbuild.bootstrap.BootstrapUtils.loadProps(BootstrapUti
ls.java:343)
        ... 1 more

I can see in the script that you are trying to make this possible, but the _REALPATH is apparently missing from some internal reference.
By adding this line to just before the java line in the script, I can get it to work from anywhere:

pushd %_REALPATH%


 Comments   
Comment by Don Ross [ 26/Sep/11 09:02 PM ]
Can we fix this in 4.0 as well?
Generated at Sat May 04 07:39:21 UTC 2024 using JIRA 189.