Документация по созданию отчетов перенесена в проект reports

This commit is contained in:
Mariya Sukhova 2012-08-02 13:13:10 +00:00
parent d8b8d848b8
commit b2bce6c745

View File

@ -468,13 +468,6 @@ task transformManual(type: TransformDocbook) {
classpath = configurations.buildDoc
}
task transformReporting(type: TransformDocbook) {
sourceDir = new File(docSrcDir, 'reporting/ru')
sourceFile = new File(sourceDir, 'reporting.xml')
destFile = new File(docTmpDir, 'reporting/ru/reporting.xml')
classpath = configurations.buildDoc
}
task transformSecurity(type: TransformDocbook) {
sourceDir = new File(docSrcDir, 'security/ru')
sourceFile = new File(sourceDir, 'security.xml')
@ -489,13 +482,6 @@ task transformPlatform(type: TransformDocbook) {
classpath = configurations.buildDoc
}
task transformReportingEng(type: TransformDocbook) {
sourceDir = new File(docSrcDir, 'reporting/eng')
sourceFile = new File(sourceDir, 'reporting.xml')
destFile = new File(docTmpDir, 'reporting/eng/reporting.xml')
classpath = configurations.buildDoc
}
task buildManualHtml(type: Docbook2Xhtml, dependsOn: transformManual) {
source transformManual.destFile
destDir = new File(docDstDir, 'manual/ru/html')
@ -522,19 +508,6 @@ task buildSecurityHtml(type: Docbook2Xhtml, dependsOn: transformSecurity) {
}
}
task buildReportingXhtml(type: Docbook2Xhtml, dependsOn: transformReporting) {
source transformReporting.destFile
destFile = new File(docTmpDir, 'reporting-pdf/reporting-pdf.html')
stylesheetName = 'pdf.xsl'
resources = fileTree(new File(docSrcDir, 'reporting/ru')) {
include 'img/*.png'
include 'img/*.jpg'
}
resources += fileTree(docCssDir) {
include '*.css'
}
}
task buildPlatformXhtml(type: Docbook2Xhtml, dependsOn: transformPlatform) {
source transformPlatform.destFile
destFile = new File(docTmpDir, 'platform/ru/html')
@ -550,34 +523,6 @@ task buildPlatformXhtml(type: Docbook2Xhtml, dependsOn: transformPlatform) {
}
}
task buildReportingXhtmlEng(type: Docbook2Xhtml, dependsOn: transformReportingEng) {
source transformReportingEng.destFile
destFile = new File(docTmpDir, 'reporting-pdf/reporting-pdf.html')
stylesheetName = 'pdf.xsl'
resources = fileTree(new File(docSrcDir, 'reporting/eng')) {
include 'img/*.png'
include 'img/*.jpg'
}
resources += fileTree(docCssDir) {
include '*.css'
}
}
task buildReportingPdf(type: Xhtml2Pdf, dependsOn: buildReportingXhtml) {
inputs.dir docCssDir
sourceFile = buildReportingXhtml.destFile
destFile = new File(docDstDir, 'reporting/ru/pdf/reporting.pdf')
classpath = configurations.buildDoc
fonts = zipTree(configurations.docFonts.singleFile)
}
task buildReportingPdfEng(type: Xhtml2Pdf, dependsOn: buildReportingXhtmlEng) {
inputs.dir docCssDir
sourceFile = buildReportingXhtmlEng.destFile
destFile = new File(docDstDir, 'reporting/eng/pdf/reporting.pdf')
classpath = configurations.buildDoc
fonts = zipTree(configurations.docFonts.singleFile)
}
task buildManualSingleHtml(type: Docbook2Xhtml, dependsOn: transformManual) {
source transformManual.destFile
destFile = new File(docDstDir, 'manual/ru/html-single/manual.html')
@ -619,35 +564,9 @@ task buildSecuritySingleHtml(type: Docbook2Xhtml, dependsOn: transformSecurity)
}
}
task buildReportingSingleHtml(type: Docbook2Xhtml, dependsOn: transformReporting) {
source transformReporting.destFile
destFile = new File(docDstDir, 'reporting/ru/html-single/reporting.html')
stylesheetName = 'html-single.xsl'
resources = fileTree(new File(docSrcDir, 'reporting/ru')) {
include 'img/**/*.png'
include 'img/**/*.jpg'
}
resources += fileTree(docCssDir) {
include '*.css'
}
}
task buildReportingSingleHtmlEng(type: Docbook2Xhtml, dependsOn: transformReportingEng) {
source transformReportingEng.destFile
destFile = new File(docDstDir, 'reporting/eng/html-single/reporting.html')
stylesheetName = 'html-single.xsl'
resources = fileTree(new File(docSrcDir, 'reporting/eng')) {
include 'img/**/*.png'
include 'img/**/*.jpg'
}
resources += fileTree(docCssDir) {
include '*.css'
}
}
task buildDoc(type: Zip, description: 'Build documentation',
//dependsOn: [buildPlatformSingleHtml]) {
dependsOn: [buildManualSingleHtml,buildPlatformSingleHtml,buildSecuritySingleHtml, buildReportingSingleHtml,buildReportingSingleHtmlEng, buildReportingPdf,buildReportingPdfEng]) {
dependsOn: [buildManualSingleHtml,buildPlatformSingleHtml,buildSecuritySingleHtml]) {
from 'build/doc'
destinationDir = file('build/distributions')
baseName = 'cuba-doc'