on 2018 Jan 22 10:42 AM
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">
<sequential>
<myaddon_compileuisrc_executor/>
</sequential>
</macrodef>
<macrodef name="myaddon_lesscss">
<sequential>
<copy todir="${ext.myaddon.path}/acceleratoraddon/web/webroot/_ui/responsive/common/">
<fileset dir="${ext.myaddon.path}/acceleratoraddon/web/webroot/WEB-INF/_ui-src/responsive/"
includes="/*"/>
<regexpmapper from="/(.*)" handledirsep="yes" to="/\1"/>
</copy>
<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"/>
</fileset>
<arg value="-jar"/>
<arg path="${tool.rhino}"/>
<arg value="-f"/>
<arg path="${tool.less}"/>
<arg path="${tool.lessc}"/>
<srcfile/>
<!-- Output the compiled css file with corresponding name -->
<regexpmapper from="(.*)/less/(.*)\.less$$" handledirsep="yes"
to="${ext.myaddon.mapperToPath}/acceleratoraddon/web/webroot/_ui/responsive/common/css/\2.css"/>
<targetfile/>
</apply>
</sequential>
</macrodef>
<macrodef name="myaddon_compileuisrc_executor">
<sequential>
<myaddon_lesscss/>
</sequential>
</macrodef>
</project>
Anybody got a point why the file isn't created?
Kind regards
User | Count |
---|---|
32 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.