| << Back to previous view |
[QB-970] useragent\bin\config.bat not runnable except after chdir to useragent\bin directory
|
|
| Status: | Resolved |
| Project: | QuickBuild |
| Component/s: | None |
| Affects Version/s: | 3.1.50 |
| Fix Version/s: | 3.1.51, 4.0.20 |
| 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 Robin Shen [ 02/Jul/11 12:10 AM ] |
| We will get this addressed in next patch release. Thanks for the findings. |
| Comment by Don Ross [ 31/Aug/11 01:44 PM ] |
| Can you apply this fix to 4.0 as well? |