enable gdsl file by marking 'scripts' folder as source root

This commit is contained in:
nik
2011-03-11 18:13:08 +03:00
parent 96b7ae64fa
commit 079f9bd60a
2 changed files with 4 additions and 2 deletions

View File

@@ -2,7 +2,9 @@
<module relativePaths="true" type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$" />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/scripts" isTestSource="false" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" scope="PROVIDED" name="Groovy" level="project" />

View File

@@ -1,7 +1,7 @@
def ctx = context(scope: scriptScope(), filetypes : ["gant"])
contributor ([ctx], {
method name:"loadProject", type:"void", params:[]
method name:"loadProject", type:"void", params:[:]
method name:"isDefined", type:"boolean", params:[key:"String"]
method name:"requireProperty", type:"String", params:[key:"String"]
method name:"requireProperty", type:"String", params:[key:"String", defaultValue:"String"]