Sencha CMD Ant集成用于自定义Web应用程序

时间:2014-11-21 17:47:56

标签: sencha-cmd

我们正在尝试将Sencha CMD集成到我们的自定义应用程序ant脚本(build.xml)中,以便缩小js文件。您能否告诉我们js文件的分类需要遵循的步骤。如果您可以提供示例文件来实现此目的,那将非常有用。我们根据手册尝试了以下步骤,只包含导致错误“init-sencha-cmd”的sencha.jar: [taskdef]无法从资源com / sencha / ant / antlib.xml加载定义。“

我已将目标“init-sencha-cmd”添加为目标“build”的依赖项和属性build.dir(basedir =“。”在xml的开头配置)

<target name="build" depends="init, dependencies, pre-compile, compile, post-compile,init-sencha-cmd" description="Builds the project." /> 
<property name="build.dir" location="${basedir}"/> 

<target name="init-antcontrib"> 
<taskdef resource="net/sf/antcontrib/antlib.xml"> 
<classpath> 
<pathelement location="${Bundles.WebCharts.lib}/ant-contrib-1.0b3.jar"/> 
</classpath> 
</taskdef> 
</target> 

<target name="init-sencha-cmd" depends="init-antcontrib"> 
<taskdef resource="com/sencha/ant/antlib.xml" classpath="/Users/hatamm/bin/Sencha/Cmd/5.0.3.324/sencha.jar"/> 
</target> 

0 个答案:

没有答案