Skip to content
This repository was archived by the owner on Oct 20, 2023. It is now read-only.
This repository was archived by the owner on Oct 20, 2023. It is now read-only.

Plugin does not build in the project build directory #4

@brettcave

Description

@brettcave

Gwt2PluginConvention has a hard coded string for the gwt output directory, with no means of overriding the output directory.

The following modifications will also allow defining the gwt war and build directories from within the project build file (by defining gwtBuildDir and gwtWarDir), while it is still in the convention

--- src/main/groovy/com/markuskobler/gradle/plugin/gwt/Gwt2PluginConvention.groovy.orig       2010-11-11 18:46:21.000000000 +0200
+++ src/main/groovy/com/markuskobler/gradle/plugin/gwt/Gwt2PluginConvention.groovy   2011-02-11 12:28:10.847757336 +0200
@@ -32,19 +32,19 @@
     List gwtStartupUrls
 
     // XXX remove from convention...
-    String gwtBuildDirName = "build/gwt/out"
-    String gwtWarDirName   = "build/gwt/war"
+    String gwtBuildDir = "build/gwt/out"
+    String gwtWarDir   = "build/gwt/war"
 
     Gwt2PluginConvention(project) {
         this.project = project
     }
 
     File getGwtBuildDir() {
-        project.file(gwtBuildDirName)
+        project.file(gwtBuildDir)
     }
 
     File getGwtWarDir() {
-        project.file(gwtWarDirName)
+        project.file(gwtWarDir)
     }
 
     void setGwtModules(List modules) {
@@ -63,4 +63,12 @@
         gwtStartupUrls = [url]
     }
 
+    void setGwtBuildDir(String buildDir) {
+        gwtBuildDir = buildDir
+    }
+
+    void setGwtWarDir(String warDir) {
+        gwtWarDir = warDir
+    }
+
 }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions