Skip to content
This repository has been archived by the owner on Apr 2, 2021. It is now read-only.

Commit

Permalink
Added support for configuring gwt source packages using vaadin.gwt.so…
Browse files Browse the repository at this point in the history
…urcePaths. Default source paths are client and shared. #23
  • Loading branch information
johndevs committed Mar 2, 2013
1 parent b8fdaf2 commit 63831fa
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/groovy/fi/jasoft/plugin/TemplateUtil.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,17 @@ class TemplateUtil {

String moduleXML = project.vaadin.widgetset.tokenize('.').last()+".gwt.xml"

String sourcePaths = ""
for(String path : project.vaadin.gwt.sourcePaths){
sourcePaths+="\t<source path=\"${path}\" />\n"
}

def substitutions = [:]
substitutions['%INHERITS%'] = inherits
substitutions['%WIDGETSET%'] = project.vaadin.widgetset
substitutions['%SUPERDEVMODE%'] = String.valueOf(project.vaadin.devmode.superDevMode)
substitutions['%USERAGENT%'] = project.vaadin.gwt.userAgent
substitutions['%SOURCE%'] = sourcePaths

String name, pkg, filename
if(project.vaadin.widgetsetGenerator == null){
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ class VaadinPluginExtension{
String[] jvmArgs = null
String version = "2.3.0"
String extraArgs
String[] sourcePaths = ['client', 'shared']
}

// DevMode
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/templates/Widgetset.xml.template
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@
%WIDGETSET_GENERATOR%
%SASS_LINKER%
%STYLESHEETS%
%SOURCE%
</module>

0 comments on commit 63831fa

Please sign in to comment.