-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Support 'buildTarget/outputPaths' request #39
Conversation
Signed-off-by: Sheng Chen <[email protected]>
server/src/main/java/com/microsoft/java/bs/core/internal/services/BuildTargetService.java
Outdated
Show resolved
Hide resolved
server/src/main/java/com/microsoft/java/bs/core/internal/services/BuildTargetService.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Sheng Chen <[email protected]>
Signed-off-by: Sheng Chen <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Commented regarding URI manipulation.
File sourceOutputDir = sourceSet.getSourceOutputDir(); | ||
if (sourceOutputDir != null) { | ||
outputPaths.add(new OutputPathItem( | ||
sourceOutputDir.toURI().toString() + "?kind=source", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggest using URIBuilder to add query paramaters.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tracked by #52
File resourceOutputDir = sourceSet.getResourceOutputDir(); | ||
if (resourceOutputDir != null) { | ||
outputPaths.add(new OutputPathItem( | ||
resourceOutputDir.toURI().toString() + "?kind=resource", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here.
https://build-server-protocol.github.io/docs/specification/#buildtargetoutputpaths-request