diff options
author | Alexey Ushakov <Alexey.Ushakov@jetbrains.com> | 2016-10-25 18:18:45 +0300 |
---|---|---|
committer | Alexey Ushakov <Alexey.Ushakov@jetbrains.com> | 2016-10-25 18:18:45 +0300 |
commit | 8344d55ac5755f11e68546e4cfd82651dfaa849e (patch) | |
tree | d420027da65ab5261fd6fdcdf5d9f57074b90961 | |
parent | a395be0938f5338ea2e8a83dcc7062fdfdfeaca6 (diff) | |
download | jdk8u-jb8u112-b494.tar.gz |
Initial gradle project (OSX)jb8u112-b494jb8u112-b493jb8u112-b491
-rw-r--r-- | idea/java/.idea/runConfigurations/make_clean.xml | 13 | ||||
-rw-r--r-- | idea/java/.idea/runConfigurations/make_images.xml | 13 | ||||
-rw-r--r-- | idea/java/build.gradle | 24 |
3 files changed, 50 insertions, 0 deletions
diff --git a/idea/java/.idea/runConfigurations/make_clean.xml b/idea/java/.idea/runConfigurations/make_clean.xml new file mode 100644 index 0000000..27af19b --- /dev/null +++ b/idea/java/.idea/runConfigurations/make_clean.xml @@ -0,0 +1,13 @@ +<component name="ProjectRunConfigurationManager"> + <configuration default="false" name="make clean" type="GroovyScriptRunConfiguration" factoryName="Groovy"> + <module name="java" /> + <setting name="path" value="file://$PROJECT_DIR$/build.gradle" /> + <setting name="vmparams" value="" /> + <setting name="params" value="-q clean" /> + <setting name="workDir" value="file://$PROJECT_DIR$" /> + <setting name="debug" value="false" /> + <method> + <option name="Make" enabled="false" /> + </method> + </configuration> +</component>
\ No newline at end of file diff --git a/idea/java/.idea/runConfigurations/make_images.xml b/idea/java/.idea/runConfigurations/make_images.xml new file mode 100644 index 0000000..0b1cd45 --- /dev/null +++ b/idea/java/.idea/runConfigurations/make_images.xml @@ -0,0 +1,13 @@ +<component name="ProjectRunConfigurationManager"> + <configuration default="false" name="make images" type="GroovyScriptRunConfiguration" factoryName="Groovy"> + <module name="java" /> + <setting name="path" value="file://$PROJECT_DIR$/build.gradle" /> + <setting name="vmparams" value="" /> + <setting name="params" value="-q images" /> + <setting name="workDir" value="file://$PROJECT_DIR$" /> + <setting name="debug" value="false" /> + <method> + <option name="Make" enabled="false" /> + </method> + </configuration> +</component>
\ No newline at end of file diff --git a/idea/java/build.gradle b/idea/java/build.gradle new file mode 100644 index 0000000..1f2ee1a --- /dev/null +++ b/idea/java/build.gradle @@ -0,0 +1,24 @@ +import static java.lang.System.out +import static java.lang.System.err + +def makeCmd = "make -C " + + project.buildscript.sourceFile.parentFile.parentFile.parentFile + + " COMPILER_WARNINGS_FATAL=false" + +defaultTasks 'images' + +task images << { + println makeCmd + " images" + def proc = makeCmd.execute() + proc.consumeProcessOutput(out, err) + proc.waitFor() + assert proc.exitValue() == 0 +} + +task clean << { + println makeCmd + " clean" + def proc = makeCmd.execute() + proc.consumeProcessOutput(out, err) + proc.waitFor() + assert proc.exitValue() == 0 +}
\ No newline at end of file |