Skip to content
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

Ability to pass system properties to runIdea and test tasks #18

Closed
zolotov opened this issue Oct 22, 2015 · 3 comments
Closed

Ability to pass system properties to runIdea and test tasks #18

zolotov opened this issue Oct 22, 2015 · 3 comments
Assignees
Milestone

Comments

@zolotov
Copy link
Member

zolotov commented Oct 22, 2015

Workaround:

afterEvaluate {
  tasks.getByName('runIdea') {
    systemProperty 'name', 'value'
  }
}
@amolenaar
Copy link

How about jvmArgs?

runIdea {
    jvmArgs += "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5007"
}

(unless there's an alternative to running IDEA in debug mode :) )

@zolotov
Copy link
Member Author

zolotov commented Nov 4, 2015

@amolenaar Eclipse, NetBeans and IDEA support running gradle tasks in debug mode.

E.g.:
screenshot 2015-10-29 01 12 35

Also, since runIdea is just JavaExec task, you can specify jvmArgs in following way:

afterEvaluate {
    tasks.getByName('runIdea') {
        jvmArgs('-myArgs')
    }
}

I don't see any reasons to add some extra syntax sugar for this so far.

@zolotov zolotov closed this as completed Nov 4, 2015
@zolotov zolotov reopened this Nov 4, 2015
@amolenaar
Copy link

Thanks @zolotov, I did not consider this option.

@zolotov zolotov self-assigned this Dec 5, 2015
@zolotov zolotov added this to the 0.0.33 milestone Dec 5, 2015
mfilippov pushed a commit to mfilippov/gradle-intellij-plugin that referenced this issue Mar 29, 2022
Fix parser generation with CLion distribution
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants