gradle / gradle-jdocbook

A Gradle plugin for jdocbook
13 stars 14 forks source link

Project properties not applied for single book #17

Open hferentschik opened 10 years ago

hferentschik commented 10 years ago

In a single book setup w/o using nested configurations per book, the project properties don't get applied. In the setup below, the build directory 'target' is ignored and will always be 'build':

project.buildDir = 'target' 
// ... 
jdocbook {
    masterSourceDocumentName = 'master.xml'

    format('html_single') {
        //...
    }

    format('html') {
        //...
    }

    dependencies {   
        // ...
    }
}

This works:

project.buildDir = 'target'   
//...
jdocbook {
    manual {
        masterSourceDocumentName = 'master.xml'
    }

    format('html_single') {
        //...
    }

    format('html') {
        //...
    }

    dependencies {   
        // ...
    }

    manual {
        masterSourceDocumentName = 'master.xml'
    }
}