You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a developer using Gradle Runner Kit, I want an accurate error message when the task path is not absolute so I can find the API usage issue easily.
An even better solution would be to make it a compiler error; however, I don't think that would be possible. We could use something like BuildResult#task(String firstTaskPathSegment, String... otherTaskPathSegment), ex: result.task('UpToDateCheck', 'AppDebug'). However, I prefer something else to this. We could model the TaskPath to something like TaskPath.absolute(String path) where the path specified implicitly starts with :. Or at least something that signals to the user the path is absolute (not relative). We should probably start with an internal model and simply convert the specified taskPath into the model, which should take care of the exception handling.
Acceptance Criteria
Given a relative task path MyProject:myTask, when calling BuildResult#task an exception should be thrown explaining the specified path is relative (in Gradle terms), and it needs to be absolute.
The text was updated successfully, but these errors were encountered:
As a developer using Gradle Runner Kit, I want an accurate error message when the task path is not absolute so I can find the API usage issue easily.
An even better solution would be to make it a compiler error; however, I don't think that would be possible. We could use something like
BuildResult#task(String firstTaskPathSegment, String... otherTaskPathSegment)
, ex:result.task('UpToDateCheck', 'AppDebug')
. However, I prefer something else to this. We could model theTaskPath
to something likeTaskPath.absolute(String path)
where the path specified implicitly starts with:
. Or at least something that signals to the user the path is absolute (not relative). We should probably start with an internal model and simply convert the specifiedtaskPath
into the model, which should take care of the exception handling.Acceptance Criteria
MyProject:myTask
, when callingBuildResult#task
an exception should be thrown explaining the specified path is relative (in Gradle terms), and it needs to be absolute.The text was updated successfully, but these errors were encountered: