Created
September 19, 2014 17:22
-
-
Save danhyun/e420146e876a0d83541a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apply plugin: 'java' | |
apply plugin: 'idea' | |
idea { | |
project.ipr.withXml { provider -> | |
provider.node.component | |
.find { it.@name == 'VcsDirectoryMappings' } | |
.mapping.@vcs = 'Git' | |
} | |
workspace.iws.withXml { provider -> | |
Node node = provider.asNode() | |
Node runManagerConfig = node['component'].find { it.'@name' == 'RunManager' } as Node | |
runManagerConfig.append(new XmlParser().parseText(""" | |
<configuration default="false" name="jetty debug" type="Remote" factoryName="Remote"> | |
<option name="USE_SOCKET_TRANSPORT" value="true" /> | |
<option name="SERVER_MODE" value="false" /> | |
<option name="SHMEM_ADDRESS" value="javadebug" /> | |
<option name="HOST" value="localhost" /> | |
<option name="PORT" value="5005" /> | |
<RunnerSettings RunnerId="Debug"> | |
<option name="DEBUG_PORT" value="5005" /> | |
<option name="TRANSPORT" value="0" /> | |
<option name="LOCAL" value="false" /> | |
</RunnerSettings> | |
<ConfigurationWrapper RunnerId="Debug" /> | |
<method /> | |
</configuration> | |
""")) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment