mirror of
https://github.com/gradle/gradle-build-action.git
synced 2024-12-24 11:36:18 +08:00
Update comment for accuracy
This commit is contained in:
parent
6cc033f2b3
commit
cde0632795
@ -179,7 +179,7 @@ export class GradleStateCache {
|
||||
}
|
||||
|
||||
private readResourceAsString(resource: string): string {
|
||||
// Resolving relative to __dirname will force the compiler to inline the content in the distribution
|
||||
// Resolving relative to __dirname will allow node to find the resource at runtime
|
||||
const absolutePath = path.resolve(__dirname, '..', '..', 'src', 'resources', resource)
|
||||
return fs.readFileSync(absolutePath, 'utf8')
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user