[oXygen-user] Using my own Ant build file in a DITA scenario

Oxygen XML Editor Support support at oxygenxml.com
Thu Mar 8 08:42:47 CST 2012


Hi Florent,

I tried your approach of having a build file like:

>  <project basedir="." name="test" default="init">
>   <import file="../projects/eXml/frameworks/dita/DITA-OT/build.xml"/>
>   <property name="some.ot.prop" value="..."/>
>  </project>

I created an ANT scenario in Oxygen for it and after I added some 
necessary parameters to the scenario + libraries I managed to produce 
PDF also following this approach.

The "dita.plugin.org.dita.pdf2.dir" is defined in the main DITA OT 
build.xml:

> OXYGEN_INSTALL_DIR/frameworks/dita/DITA-OT/build.xml

So there is no reason why it should not be found. In my test build.xml I 
set the default target to the one which is the default also for the DITA OT.

Regards,
Radu

Radu Coravu
<oXygen/>  XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com

On 3/8/2012 3:41 PM, Florent Georges wrote:
>    Hi,
>
>    I tried to use a custom Ant build file for one of my DITA scenarios.
> Within that script, I import the Ant script from DITA OT in the oXygen
> distribution, and I set a value for a specific property:
>
>      <project basedir="." name="...">
>         <import file="/.../frameworks/dita/DITA-OT/demo/fo/build.xml"/>
>         <property name="some.ot.prop" value="..."/>
>      </project>
>
>    The problem is that the build.xml in oXygen distro contains import
> instructions with properties:
>
>      <import file="${dita.plugin.org.dita.pdf2.dir}/build_fop.xml"/>
>      <import file="${dita.plugin.org.dita.pdf2.dir}/build_axf.xml"/>
>      <import file="${dita.plugin.org.dita.pdf2.dir}/build_xep.xml"/>
>
> and when I run the transform scenario, Ant complains that it cannot
> find the file /.../fo/${dita.plugin.org.dita.pdf2.dir}/build_fop.xml
> (see? the property has not been expanded).  The error is:
>
>      BUILD FAILED
>      /.../my-build.xml:3: The following error occurred while executing this line:
>      /.../fo/build.xml:29: Cannot find /.../fo/${dita.plugin.org.dita.pdf2.dir}/build_fop.xml imported from /.../fo/build.xml
>
>    What did I miss?  How can I make sure the same properties are loaded
> in both cases?  Is there any built-in mechanism in oXygen to overload
> Ant properties without setting my own build file?
>
>    Regards,
>
> --
> Florent Georges
> http://fgeorges.org/
> http://h2oconsulting.be/
> _______________________________________________
> oXygen-user mailing list
> oXygen-user at oxygenxml.com
> http://www.oxygenxml.com/mailman/listinfo/oxygen-user
>


More information about the oXygen-user mailing list