我正在尝试通过Jenkins工作进行Sass编译,但我收到以下错误。
gem list | grep -i sass
时,我可以看到该版本。如何解决问题
执行失败:java.io.IOException:无法运行程序“sass”:java.io.IOException:error = 2,没有这样的文件或目录
<target name="build-sass-to-css">
<echo message="Compiling scss files to css..." />
<!-- create the css destination dir if it doesn't already exist -->
<mkdir dir="${destCssDir}/responsive"/>
<mkdir dir="${destNonMinCssDir}"/>
<echo message="Running sass executable against sass files and compiling to CSS directory [${destCssDir}/responsive] " />
<!-- run sass executable -->
<parallel threadCount="2">
<apply executable="sass" dest="${destCssDir}/responsive" verbose="true" force="true" failonerror="true">
<arg value="--style"/>
<arg value="compressed"/>
<arg value="--sourcemap=none"/>
<srcfile />
<targetfile />
<fileset dir="${srcSassDir}" includes="**/*.scss,**/*.sass" excludes="**/_*"/>
<mapper type="glob" from="*.scss" to="*.css"/>
</apply>
<apply executable="sass" dest="${destNonMinCssDir}" verbose="true" force="true" failonerror="true">
<srcfile />
<targetfile />
<fileset dir="${srcSassDir}" includes="**/*.scss,**/*.sass" excludes="**/_*"/>
<mapper type="glob" from="*.scss" to="*.css"/>
</apply>