mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-30 02:07:50 +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
|
```kotlin
|
||||||
tasks {
|
tasks {
|
||||||
runIde {
|
runIde {
|
||||||
argumentProviders.add(CommandLineArgumentProvider {
|
argumentProviders += CommandLineArgumentProvider {
|
||||||
listOf("/path/to/the/project")
|
listOf("/path/to/the/project")
|
||||||
})
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
@ -294,9 +294,9 @@ tasks {
|
|||||||
|
|
||||||
```groovy
|
```groovy
|
||||||
runIde {
|
runIde {
|
||||||
argumentProviders.add {
|
argumentProviders.add({
|
||||||
['/path/to/the/project']
|
['/path/to/the/project']
|
||||||
}
|
} as CommandLineArgumentProvider)
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user