Overriding maven configuration with file/document based configuration?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Overriding maven configuration with file/document based configuration?

Gregor
Hi all,

We are using maven plugin to configure our document rendering. We have a use case, that we'd like to change location of imagesDir

So, our maven configuration looks like this:

                        <configuration>
                            <backend>html5</backend>
                            ...
                            <attributes>
                                <imagesDir>../${images.dir}</imagesDir>
                                <icons>font</icons>
...                            </attributes>
                        </configuration>

In the document in which we'd like to change imagesdir location we have:

:imagesdir: ./images/

What are we doing wrong?
Or it is  not supported to override maven plugin settings with local variables?

Thanks.
Reply | Threaded
Open this post in threaded view
|

Re: Overriding maven configuration with file/document based configuration?

mojavelinux
Administrator
To make an attribute overridable, you must add @ to the end of the value.

<imagesDir>../${images.dir}@</imagesDir>

Cheers,

-Dan

On Fri, Aug 11, 2017 at 1:14 AM, Gregor [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Hi all,

We are using maven plugin to configure our document rendering. We have a use case, that we'd like to change location of imagesDir

So, our maven configuration looks like this:

                        <configuration>
                            <backend>html5</backend>
                            ...
                            <attributes>
                                <imagesDir>../${images.dir}</imagesDir>
                                <icons>font</icons>
...                            </attributes>
                        </configuration>

In the document in which we'd like to change imagesdir location we have:

:imagesdir: ./images/

What are we doing wrong?
Or it is  not supported to override maven plugin settings with local variables?

Thanks.



If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Overriding-maven-configuration-with-file-document-based-configuration-tp5826.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--
Dan Allen | @mojavelinux | https://twitter.com/mojavelinux
Reply | Threaded
Open this post in threaded view
|

Re: Overriding maven configuration with file/document based configuration?

Gregor
Perfect,

that worked!.

Thanks.