Why the property set in ant build xml is lost

lhsihan
Posts: 26
Joined: Thu Aug 15, 2019 5:31 pm

Why the property set in ant build xml is lost

Post by lhsihan » Tue Aug 27, 2019 4:53 pm

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 157 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.

Radu
Posts: 6507
Joined: Fri Jul 09, 2004 5:18 pm

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

Post by Radu » Wed Aug 28, 2019 9:07 am

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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

lhsihan
Posts: 26
Joined: Thu Aug 15, 2019 5:31 pm

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

Post by lhsihan » Wed Aug 28, 2019 9:21 am

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?

Radu
Posts: 6507
Joined: Fri Jul 09, 2004 5:18 pm

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

Post by Radu » Thu Aug 29, 2019 7:43 am

Hi,

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

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

Post Reply