Page 1 of 1

Why the property set in ant build xml is lost

Posted: Tue Aug 27, 2019 4:53 pm
by lhsihan
Have tried the simple demo mentioned in this guide https://www.dita-ot.org/3.3/topics/html ... e-css.html. althoug we defined the property value such like "args.copycss" in build xml like below:

Code: Select all

<?xml version='1.0' encoding='UTF-8'?>

<project>
  <target name="dita2html5-custom-css"
       depends="dita2html5-custom-css.init,
                dita2html5"/>
  <target name="dita2html5-custom-css.init">
    <property name="args.cssroot"
          location="${dita.plugin.com.example.html5-custom-css.dir}/css"/>
    <property name="args.css" value="custom.css"/>
    <property name="args.copycss" value="yes"/>
    <property name="args.csspath" value="css"/>
  </target>
</project>
But when new one transformation scenario with this plugin, the default value of "args.copycss" is still false.
QQ截图20190827215230.png
QQ截图20190827215230.png (23.02 KiB) Viewed 1463 times
Image
Could you please explain more about this? What should I do if I want to default value of some parameters pre-defined? Thanks a lot.

Re: Why the property set in ant build xml is lost

Posted: Wed Aug 28, 2019 9:07 am
by Radu
Hi,

Oxygen will not use the values set for parameters in the build files as defaults for transformation parameters. But the publishing process should use the values you set in the ANT build file.

Regards,
Radu

Re: Why the property set in ant build xml is lost

Posted: Wed Aug 28, 2019 9:21 am
by lhsihan
Thanks Radu.
So what's the publishing process mean? We would like to transform DITA file to HTML5 files, can this be called as publish process?

Re: Why the property set in ant build xml is lost

Posted: Thu Aug 29, 2019 7:43 am
by Radu
Hi,

Yes, sometimes I refer to transformation from DITA to various output formats as "publishing". But it's the same.

Regards,
Radu