UNPKG

extjs-gpl

Version:

GPL licensed version of Sencha Ext JS

111 lines (107 loc) 4.46 kB
<project name="x-js-impl"> <!-- this target extracts split mode information from the compiler's app processor to determine various pieces of information --> <target name="-detect-app-build-properties" depends="-init-app-js-files"> <x-load-app-builder-properties refid="${compiler.ref.id}" splitModePropName="enable.split.mode" pageModePropName="app.page.mode" hasJsSdkPropName="app.has.js.sdk" hasCssSdkPropName="app.has.css.sdk"/> </target> <!-- this is the standard js compile target that builds the output js file(s) --> <target name="-compile-js" depends="-detect-app-build-properties"> <if> <x-is-true value="${enable.split.mode}"/> <then> <property name="app.output.framework.include" value="package-sencha-core,framework,toolkit,package-core"/> <x-compile refid="${compiler.ref.id}"> <![CDATA[ # build a separate sdk-only js file restore page and ${build.optimize} and exclude -all and include -tag=${app.output.framework.include} and save allframework and intersect -set=page,allframework and save frameworkdeps and include -tag=Ext.cmd.derive and concat -remove-text-references=${build.remove.references} -optimize-string-references=${build.optimize.string.references} -remove-requirement-nodes=${build.remove.requirement.nodes} ${build.compression} -out=${build.framework.file} ${build.concat.options} # now build the all-classes file, without # the framework code included and restore page and exclude -set=frameworkdeps and exclude -tag=Ext.cmd.derive,derive and concat -remove-text-references=${build.remove.references} -optimize-string-references=${build.optimize.string.references} -remove-requirement-nodes=${build.remove.requirement.nodes} ${build.compression} -out=${build.classes.file} ${build.concat.options} ]]> </x-compile> </then> <else> <x-compile refid="${compiler.ref.id}"> <![CDATA[ # build an all-classes.js file that contains # all code needed by the app restore page and ${build.optimize} and concat -remove-text-references=${build.remove.references} -optimize-string-references=${build.optimize.string.references} -remove-requirement-nodes=${build.remove.requirement.nodes} ${build.compression} -out=${build.classes.file} ${build.concat.options} ]]> </x-compile> </else> </if> </target> <!-- Build javascript --> <target name="-before-js"/> <target name="-js" depends="-compile-js"/> <target name="-after-js"/> </project>