Skip to content

Commit

Permalink
Use $ as default WORKING_DIRECTORY for JUnit run/debug defaults, so t…
Browse files Browse the repository at this point in the history
…hat the file path within the sub projects can be unified
  • Loading branch information
elvis-liu committed Jan 25, 2013
1 parent a200c17 commit a2e074e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ allprojects {
apply plugin: 'signing'
}

project(':') {
idea.workspace.iws.withXml { provider ->
def junitDefaults = provider.node.component.find { it.@name == 'RunManager' }.configuration.find { it.@type == 'JUnit' }
junitDefaults.option.find { it.@name == 'WORKING_DIRECTORY' }.@value = '$MODULE_DIR$'
}
}

subprojects {
apply plugin: 'java'
group = 'com.github.dreamhead'
Expand Down

0 comments on commit a2e074e

Please sign in to comment.