Skip to content
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.

Commit

Permalink
#102 fixed template file location
Browse files Browse the repository at this point in the history
  • Loading branch information
Falk Sippach authored and ascheman committed Feb 22, 2020
1 parent 3027c3d commit 8164519
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import org.dukecon.model.CoreImages
import org.dukecon.model.Styles
import org.dukecon.server.conference.ConferencesConfiguration
import org.dukecon.server.conference.SpeakerImageService
import org.dukecon.server.convert.impl.StylesCssResource
import org.dukecon.server.repositories.ConferenceDataExtractor
import org.dukecon.server.repositories.RawDataMapper
import org.dukecon.server.repositories.RawDataResources
Expand Down Expand Up @@ -78,9 +77,8 @@ class GenerateDukecon {

private static String generateStylesCssContent(ConferencesConfiguration.Conference conference) {
Styles styles = new Styles(conference.getStyles())

def templateEngine = new SimpleTemplateEngine()
def template = templateEngine.createTemplate(new File('C:\\03-projects\\dukecon\\dukecon_server_stable\\converters\\src\\main\\resources\\templates\\styles.gtl').text);
def template = templateEngine.createTemplate(this.class.getResource('/templates/styles.gtl').newReader());
return template.make([styles: styles])
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package org.dukecon.server.convert.impl

import groovy.text.SimpleTemplateEngine
import groovy.text.TemplateEngine
import org.dukecon.server.conference.ConferencesConfiguration
import org.dukecon.server.convert.ResourceFileProvider

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,6 @@ class GenerateDukeconTest {
public void testMain() {
GenerateDukecon.main(['conferences-javaland.yml'] as String[])
}


}

0 comments on commit 8164519

Please sign in to comment.