Skip to Content
Former Member
Jan 22, 2018 at 10:42 AM

Compile with buildcallbacks.xml


Hello there,

I want to improve my buildcallbacks.xml file from an addon. The Problem is, that I need to trigger the process, while the ant clean all clears the storefront, so that the styles from the addon are generated before the styles are copied to the storefront. I found the pnd copied from an existing process but the css file isn't created.

the XML file looks like this:

     <macrodef name="myaddon_after_build">
     <macrodef name="myaddon_lesscss">
             <copy todir="${ext.myaddon.path}/acceleratoraddon/web/webroot/_ui/responsive/common/">
                 <fileset dir="${ext.myaddon.path}/acceleratoraddon/web/webroot/WEB-INF/_ui-src/responsive/"
                 <regexpmapper from="/(.*)" handledirsep="yes" to="/\1"/>
             <apply dir="${ext.myaddon.path}/acceleratoraddon/web/webroot/WEB-INF/_ui-src/responsive/"
                    executable="java" failonerror="true" force="true" parallel="false">
                 <!-- Give the input bundle of less files-->
                 <fileset dir="${ext.myaddon.path}/acceleratoraddon/web/webroot/WEB-INF/_ui-src/responsive/">
                     <include name="**/myaddon.less"/>
                 <arg value="-jar"/>
                 <arg path="${tool.rhino}"/>
                 <arg value="-f"/>
                 <arg path="${tool.less}"/>
                 <arg path="${tool.lessc}"/>
                 <!-- Output the compiled css file with corresponding name -->
                 <regexpmapper from="(.*)/less/(.*)\.less$$" handledirsep="yes"
     <macrodef name="myaddon_compileuisrc_executor">

Anybody got a point why the file isn't created?

Kind regards