ObjectWeb Consortium
Search ObjectWeb Mail Archive: 

Advanced Search - Powered by Google


Mail Archive Home | enhydra List | April 2004 Index

<--  Date Index  --> <--  Thread Index  -->

Re: [enhydra] XMLC compilation with ANT


Since You didn't gave some more specific informations about concrete problem I will have to sopouse  that Your xmlc task looks, something, like this

 

    <xmlc srcdir="${xmlcresources.dir}"
        sourceout="${dir.xmlc}"
        packagename="${project.package}.presentation"
        options="options.xmlc"
        compile="true"
        includes="**/*.html">
        <arg value="-d" />
        <arg value="${dir.classes}" />
    </xmlc>

 

If attribute "compile" is set on true then "xmlc" generation process will be executed every time. If You set compile attribute value to false target will generate java source files that will not be compiled (except if You include them in Your own compilation process).

 

My suggestion (for quick solution) would be to change "xmlc" target to

 

<xmlc srcdir="${xmlcresources.dir}"
      sourceout="${dir.src}"
      packagename="${project.package}.presentation"
      options="options.xmlc"
      includes="**/*.html">
  </xmlc>

 

Where ${dir.src} is directory where Your source files are stored (source directory of "javac" compilation target).

 

NOTE: Attribute "compile" by default is set to false and these will generate java source files in Your source directory which will remain there until You delete it manually or override them with new ones ("xmlc" target will generate them only for changed "html" files). These java files will be (since they are stored in "source" directory) compiled along with the rest of Your code. 

 

Best Regards,

        Slobodan Vujasinovic

     Enhydra Development Team



<--  Date Index  --> <--  Thread Index  -->

Reply via email to:

Powered by MHonArc.

Copyright © 1999-2005, ObjectWeb Consortium | contact | webmaster.