Permalink
Browse files

Stylistic issue corrected after pull #15

  • Loading branch information...
1 parent 5c6df46 commit 1da2de3df94c3f5f53aef69eef8b5ddefa8b0723 @shafirov shafirov committed Jan 25, 2013
@@ -150,7 +150,7 @@ class Generator(val appConfig : AppConfig, val task : GeneratorTask, val args :
// render the templates
renderTemplate(buildxmlTemplate(), "build.xml")
- renderTemplate(ivyTemplate(this, projectName), "ivy.xml")
+ renderTemplate(ivyTemplate(projectName), "ivy.xml")
renderTemplate(appconfigTemplate(), "config/appconfig.json")
renderTemplate(appconfigDevelopmentTemplate(), "config/appconfig.development.json")
renderTemplate(applicationTemplate(), "src/$appPackagePath/Application.kt")
@@ -6,10 +6,10 @@ import kara.generators.Generator
* Templates for ivy.xml.
*/
-fun ivyTemplate(gen : Generator, projectName : String) : String {
+fun Generator.ivyTemplate(projectName : String) : String {
return """<?xml version="1.0" encoding="UTF-8"?>
<ivy-module version="2.0">
- <info organisation="${gen.appPackage}" module="$projectName"/>
+ <info organisation="${appPackage}" module="$projectName"/>
<dependencies>
</dependencies>
</ivy-module>

0 comments on commit 1da2de3

Please sign in to comment.