-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
429d632
commit bc8c7ed
Showing
8 changed files
with
64 additions
and
28 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ | |
*.iws | ||
build | ||
.gradle | ||
gradle |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#Mon Sep 19 12:25:31 IST 2016 | ||
#Mon Sep 26 13:02:16 IST 2016 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-2.9-all.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-2.9-bin.zip |
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
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
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
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
27 changes: 27 additions & 0 deletions
27
src/main/groovy/com/zeroplay/elm/tasks/ElmReactorTask.groovy
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package com.zeroplay.elm.tasks | ||
|
||
import org.gradle.api.tasks.TaskAction | ||
|
||
/** | ||
* Created by kirankumarbs on 9/26/2016. | ||
*/ | ||
class ElmReactorTask { | ||
|
||
@TaskAction | ||
def setUp(){ | ||
startElmReactor(); | ||
} | ||
|
||
def startElmReactor(){ | ||
ProcessBuilder pBuilder = new ProcessBuilder(Arrays.asList("elm","reactor","install",elmPackage,"--yes")); | ||
pBuilder.redirectErrorStream(true); | ||
|
||
//remove this line also | ||
def line | ||
def reader = new BufferedReader(new InputStreamReader(pBuilder.start().getInputStream())) | ||
|
||
while((line = reader.readLine()) != null ){ | ||
println(line); | ||
} | ||
} | ||
} |