
| Key: |
CCNET-1208
|
| Type: |
Bug
|
| Status: |
Open
|
| Priority: |
Major
|
| Assignee: |
Unassigned
|
| Reporter: |
Kevin Boistis
|
| Votes: |
0
|
| Watchers: |
2
|
|
If you were logged in you would be able to see more operations.
|
|
|
|
|
| Component/s: |
Source Control
|
| Affects Version/s: |
None
|
| Fix Version/s: |
None
|
|
|
Original Estimate:
|
Unknown
|
Remaining Estimate:
|
Unknown
|
Time Spent:
|
Unknown
|
|
|
In file ProcessP4Initializer.cs the CheckViewIsValid method should allow for other endings besides "/...". For one of my project the solution file was at the root and need the ability to use //BusinessIntelligence/_Main/Client.* as part of my source control view.
I updated the code with this:
private void CheckViewIsValid(string view)
{
if (!(view.StartsWith("//") || view.StartsWith(@"""//")))
throw new CruiseControlException(string.Format(@"[{0}] is not a valid view - it should start with '//'", view));
if (!((view.StartsWith(@"""") && view.EndsWith(@"""")) || (!view.StartsWith(@"""") && !view.EndsWith(@""""))))
{
throw new CruiseControlException(string.Format(@"[{0}] is not a valid view - it should start and end with quotes or not use quotes", view));
}
}
|
|
Description
|
In file ProcessP4Initializer.cs the CheckViewIsValid method should allow for other endings besides "/...". For one of my project the solution file was at the root and need the ability to use //BusinessIntelligence/_Main/Client.* as part of my source control view.
I updated the code with this:
private void CheckViewIsValid(string view)
{
if (!(view.StartsWith("//") || view.StartsWith(@"""//")))
throw new CruiseControlException(string.Format(@"[{0}] is not a valid view - it should start with '//'", view));
if (!((view.StartsWith(@"""") && view.EndsWith(@"""")) || (!view.StartsWith(@"""") && !view.EndsWith(@""""))))
{
throw new CruiseControlException(string.Format(@"[{0}] is not a valid view - it should start and end with quotes or not use quotes", view));
}
} |
Show » |
| There are no comments yet on this issue.
|
|