aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGalder Zamarreño <galder@zamarreno.com>2013-10-17 20:14:52 +0200
committerGalder Zamarreño <galder@zamarreno.com>2013-10-17 20:14:52 +0200
commit18d333ef0a98280049ae37cfe11aed8cf4e02767 (patch)
treea40ba63706aae0f5a491893234208888fa14c7c0
parent3b7e827c961130168bcdbf30830e00e98c51f378 (diff)
downloadfrege-gradle-plugin-18d333ef0a98280049ae37cfe11aed8cf4e02767.tar.gz
frege-gradle-plugin-18d333ef0a98280049ae37cfe11aed8cf4e02767.tar.bz2
frege-gradle-plugin-18d333ef0a98280049ae37cfe11aed8cf4e02767.zip
Compiles, but no sources
-rw-r--r--build.gradle10
-rw-r--r--buildSrc/src/main/groovy/org/gradle/frege/FregeResult.java45
-rw-r--r--buildSrc/src/main/groovy/org/gradle/frege/FregeTask.groovy3
3 files changed, 12 insertions, 46 deletions
diff --git a/build.gradle b/build.gradle
index bd0f21f..c995453 100644
--- a/build.gradle
+++ b/build.gradle
@@ -8,3 +8,13 @@ buildscript {
apply plugin: FregePlugin
apply plugin: "idea"
+apply plugin: "java"
+
+
+repositories {
+ flatDir name:"frege-lib", dirs:"buildSrc/lib"
+}
+
+dependencies {
+ compile ":frege:3.21.232-g7b05453"
+} \ No newline at end of file
diff --git a/buildSrc/src/main/groovy/org/gradle/frege/FregeResult.java b/buildSrc/src/main/groovy/org/gradle/frege/FregeResult.java
deleted file mode 100644
index 85e6348..0000000
--- a/buildSrc/src/main/groovy/org/gradle/frege/FregeResult.java
+++ /dev/null
@@ -1,45 +0,0 @@
-package org.gradle.frege;
-
-import java.io.Serializable;
-
-/**
- * // TODO: Document this
- *
- * @author Galder Zamarreño
- * @since // TODO
- */
-public class FregeResult implements Serializable {
-
- private final int bugCount;
- private final int missingClassCount;
- private final int errorCount;
- private final Exception exception;
-
- public FregeResult(int bugCount, int missingClassCount, int errorCount) {
- this(bugCount, missingClassCount, errorCount, null);
- }
-
- public FregeResult(int bugCount, int missingClassCount, int errorCount, Exception exception) {
- this.bugCount = bugCount;
- this.missingClassCount = missingClassCount;
- this.errorCount = errorCount;
- this.exception = exception;
- }
-
- public int getBugCount() {
- return bugCount;
- }
-
- public int getMissingClassCount() {
- return missingClassCount;
- }
-
- public int getErrorCount() {
- return errorCount;
- }
-
- public Exception getException() {
- return exception;
- }
-
-}
diff --git a/buildSrc/src/main/groovy/org/gradle/frege/FregeTask.groovy b/buildSrc/src/main/groovy/org/gradle/frege/FregeTask.groovy
index 25452f3..9938c46 100644
--- a/buildSrc/src/main/groovy/org/gradle/frege/FregeTask.groovy
+++ b/buildSrc/src/main/groovy/org/gradle/frege/FregeTask.groovy
@@ -29,7 +29,8 @@ class FregeTask extends DefaultTask {
FileResolver fileResolver = getServices().get(FileResolver.class)
JavaExecAction action = new DefaultJavaExecAction(fileResolver)
action.setMain("frege.compiler.Main")
- action.execute
+ action.setClasspath(project.files(project.configurations.compile))
+ action.execute()
}
} \ No newline at end of file