mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-27 16:57:49 +08:00
tools_intellij_platform_gradle_plugin_recipes.md: added 'Run the IDE with a default argument provided'
This commit is contained in:
parent
295196c98d
commit
cc66ca6b54
@ -282,9 +282,9 @@ This is also possible when using the [`runIde`](tools_intellij_platform_gradle_p
|
||||
```kotlin
|
||||
tasks {
|
||||
runIde {
|
||||
argumentProviders.add(CommandLineArgumentProvider {
|
||||
argumentProviders += CommandLineArgumentProvider {
|
||||
listOf("/path/to/the/project")
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
@ -294,9 +294,9 @@ tasks {
|
||||
|
||||
```groovy
|
||||
runIde {
|
||||
argumentProviders.add {
|
||||
argumentProviders.add({
|
||||
['/path/to/the/project']
|
||||
}
|
||||
} as CommandLineArgumentProvider)
|
||||
}
|
||||
```
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user