Skip to content

Bug fix to avoid H2 Warnings - application.yml replaced with plugin.y… #32

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ grailsPublish {

title = "Grails Export Plugin"
desc = "This plugin offers export functionality supporting different formats e.g. CSV, Excel, Open Document Spreadsheet, PDF and XML and can be extended to add additional formats."
websiteUrl = 'https://github.com/gpc/export'
vcsUrl = 'https://github.com/gpc/export'
issueTrackerUrl = 'https://github.com/gpc/export'

developers = [ graemerocher: 'Graeme Rocher',
puneetbehl: 'Puneet Behl',
Expand Down
118 changes: 0 additions & 118 deletions grails-app/conf/application.yml

This file was deleted.

7 changes: 7 additions & 0 deletions grails-app/conf/plugin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
exporters:
excelExporter: grails.plugins.export.exporter.DefaultExcelExporter
csvExporter: grails.plugins.export.exporter.DefaultCSVExporter
xmlExporter: grails.plugins.export.exporter.DefaultXMLExporter
pdfExporter: grails.plugins.export.exporter.DefaultPDFExporter
odsExporter: grails.plugins.export.exporter.DefaultODSExporter
rtfExporter: grails.plugins.export.exporter.DefaultRTFExporter
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ class DefaultExcelExporter extends AbstractExporter {

def limitPerSheet = data.size() > maxPerSheet ? maxPerSheet : data.size()
def sheetsCount = Math.ceil(data.size()/limitPerSheet)
log.debug "limitPerSheet:$limitPerSheet ::: sheetsCount:$sheetsCount"
//log.debug "limitPerSheet:$limitPerSheet ::: sheetsCount:$sheetsCount"
return [sheetsCount, limitPerSheet]
}

Expand Down