Commit df6a8e2d authored by mchazalviel's avatar mchazalviel

First commit

parent 2057676a
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
<project name="bootstrap-impl">
<!--
This macrodef regenerates the bootstrap.js class system metadata, which includes
relative file paths, class names, alternate class names, and class alias data
-->
<macrodef name="x-bootstrap">
<attribute name="file"/>
<attribute name="basedir"/>
<attribute name="coreFilesFile" default="@{file}"/>
<attribute name="classMetadataFile" default="@{file}"/>
<attribute name="overridesFile" default="@{file}"/>
<attribute name="includeBoot" default="true"/>
<attribute name="includeManifest" default="false"/>
<attribute name="includeCoreFiles" default="false"/>
<attribute name="includeMetadata" default="true"/>
<attribute name="includeOverrides" default="true"/>
<attribute name="appendCoreFiles" default="true"/>
<attribute name="appendClassMetadata" default="true"/>
<attribute name="appendOverrides" default="true"/>
<attribute name="manifestTpl" default="var Ext = Ext || '{' '}'; Ext.manifest = {0};"/>
<attribute name="coreFilesJsonpTpl" default="Ext.Boot.loadSync"/>
<attribute name="loaderConfigJsonpTpl" default="Ext.Loader.addClassPathMappings"/>
<attribute name="overrideTpl" default='Ext.Loader.loadScriptsSync'/>
<attribute name="overrideTplType" default="jsonp"/>
<attribute name="overrideExcludeTags" default="package-core,package-sencha-core,package-${framework.name},package-${toolkit.name}"/>
<text name="launchcode" optional="true"/>
<sequential>
<local name="temp.file"/>
<tempfile property="temp.file"
deleteonexit="true"
createfile="true"/>
<echo file="${temp.file}">@{launchcode}</echo>
<x-compile refid="${compiler.ref.id}">
<![CDATA[
bootstrap
-baseDir=@{basedir}
-file=@{file}
-coreFilesFile=@{coreFilesFile}
-classMetadataFile=@{classMetadataFile}
-overridesFile=@{overridesFile}
-includeBoot=@{includeBoot}
-includeManifest=@{includeManifest}
-includeCoreFiles=@{includeCoreFiles}
-includeMetadata=@{includeMetadata}
-includeOverrides=@{includeOverrides}
-appendCoreFiles=@{appendCoreFiles}
-appendClassMetadata=@{appendClassMetadata}
-appendOverrides=@{appendOverrides}
-manifestTpl=@{manifestTpl}
-coreFilesJsonpTpl=@{coreFilesJsonpTpl}
-loaderConfigJsonpTpl=@{loaderConfigJsonpTpl}
-overrideTpl=@{overrideTpl}
-overrideType=@{overrideTplType}
-overrideExcludeTags=@{overrideExcludeTags}
-launchContentFile=${temp.file}
]]>
</x-compile>
<delete file="${temp.file}"/>
</sequential>
</macrodef>
</project>
\ No newline at end of file
This diff is collapsed.
# =============================================================================
# This file provides an override point for default variables defined in these
# lower priority files:
#
# - ext.properties
# - *.defaults.properties
# - defaults.properties
#
# To override a property based on build.environment instead add properties to
# one of these higher priority files:
#
# - production.properties
# - testing.properties
# - native.properties
# - package.properties
#
# IMPORTANT - Sencha Cmd will merge your changes with its own during upgrades.
# To avoid potential merge conflicts avoid making large, sweeping changes to
# this file.
# =============================================================================
This diff is collapsed.
<?xml version="1.0" encoding="UTF-8"?>
<project name="Cordova" default="cordova-help">
<!--Legacy properties file support-->
<property file="${app.dir}/cordova.local.properties"/>
<!--Init for All Cordova Task-->
<target name="-before-cordova-init"/>
<target name="-cordova-init">
<if>
<x-is-true value="app.cordova.config.verbose"/>
<then>
<property name="cordova.cli.options" value="-d"/>
</then>
<else>
<property name="cordova.cli.options" value=""/>
</else>
</if>
</target>
<target name="-after-cordova-init"/>
<target name="cordova-init"
depends="-init, -before-cordova-init, -cordova-init, -after-cordova-init"/>
<target name="cordova-help"/>
<!-- Create Cordova Application-->
<target name="cordova-create" depends="cordova-init">
<if>
<not>
<available file="${app.cordova.config.path}" type="dir"/>
</not>
<then>
<cordova-echo message="Creating Cordova Application with ID &quot;${app.cordova.config.id}&quot; and Name &quot;${app.cordova.config.name}&quot;"/>
<x-shell reloadprofile="true" dir="${app.dir}">
cordova ${cordova.cli.options} create "${app.cordova.config.path}" ${app.cordova.config.id} "${app.cordova.config.name}"
</x-shell>
</then>
</if>
</target>
<!-- Prepares application for all platforms -->
<target name="-before-cordova-prepare"/>
<target name="-cordova-prepare" if="args.prepare">
<cordova-echo message="Attempting Cordova Prepare for platforms &quot;${cordova.platforms.clean}&quot;"/>
<x-shell reloadprofile="true" dir="${app.cordova.config.path}">
cordova ${cordova.cli.options} prepare ${cordova.platforms.clean}
</x-shell>
</target>
<target name="-after-cordova-prepare"/>
<target name="cordova-prepare" depends="cordova-init, -before-cordova-prepare, -cordova-prepare, -after-cordova-prepare"/>
<!-- Emulates application on all platforms -->
<target name="-before-cordova-emulate"/>
<target name="-cordova-emulate" if="args.emulate" depends="cordova-platform-add">
<cordova-echo message="Attempting Cordova Emulate for platforms &quot;${cordova.platforms.clean}&quot;"/>
<x-shell reloadprofile="true" dir="${app.cordova.config.path}">
cordova ${cordova.cli.options} emulate ${cordova.platforms.clean} --target=${app.cordova.config.target}
</x-shell>
</target>
<target name="-after-cordova-emulate"/>
<target name="cordova-emulate" depends="cordova-init, -before-cordova-emulate, -cordova-emulate, -after-cordova-emulate"/>
<!-- Runs application on device for all platforms -->
<target name="-before-cordova-run"/>
<target name="-cordova-run" if="args.autorun" depends="cordova-platform-add">
<cordova-echo message="Attempting Cordova Run for platforms &quot;${cordova.platforms.clean}&quot;"/>
<x-shell reloadprofile="true" dir="${app.cordova.config.path}">
cordova ${cordova.cli.options} run ${cordova.platforms.clean} --target=${app.cordova.config.target}
</x-shell>
</target>
<target name="-after-cordova-run"/>
<target name="cordova-run" depends="cordova-init, -before-cordova-run, -cordova-run, -after-cordova-run"/>
<!-- Builds application for all platforms -->
<target name="-before-cordova-build"/>
<target name="-cordova-build" depends="cordova-platform-add">
<cordova-echo message="Attempting Cordova Build for platforms &quot;${cordova.platforms.clean}&quot;"/>
<x-shell reloadprofile="true" dir="${app.cordova.config.path}">
cordova ${cordova.cli.options} build ${cordova.platforms.clean}
</x-shell>
</target>
<target name="-after-cordova-build"/>
<target name="cordova-build" depends="cordova-init, -before-cordova-build, -cordova-build, -after-cordova-build"/>
<!-- Adds all missing Platforms from properties file to the project-->
<target name="-before-cordova-platform-add"/>
<target name="-cordova-platform-add">
<fail status="0" message="No platforms were specified, add a platform to ${build.name}'s -> cordova -> config -> platforms property in app.json">
<condition>
<or>
<not>
<isset property="cordova.platforms"/>
</not>
<contains string="${cordova.platforms}" substring="$"/>
</or>
</condition>
</fail>
<script language="javascript">
var platforms = project.getProperty("cordova.platforms");
if (!platforms) {
platforms = ""
}
platforms = platforms.replace("/,/g", " ");
project.setProperty("cordova.platforms.clean", platforms);
</script>
<x-shell reloadprofile="true" dir="${app.cordova.config.path}" outputproperty="cordova.platforms.list">
cordova ${cordova.cli.options} platform list
</x-shell>
<script language="javascript">
var target_platforms = project.getProperty("cordova.platforms.clean").split(" ");
var existing_platforms = project.getProperty("cordova.platforms.list");
var available = existing_platforms.indexOf("Available");
if (available >= 0) {
existing_platforms = existing_platforms.substring(0, available);
}
var missing_platforms = [], platformIndex, platform;
for (platformIndex in target_platforms) {
platform = target_platforms[platformIndex];
if(existing_platforms.indexOf(platform) === -1){
missing_platforms.push(platform);
}
}
if(missing_platforms.length > 0) {
self.log("Cordova: Missing platforms " + missing_platforms.toString() + ". Attempting add.");
project.setProperty("cordova.platforms.missing", missing_platforms.join(" "));
} else if(existing_platforms.length() >0){
self.log("Cordova: All requested platforms exist");
} else {
self.log("Cordova: No platforms exist");
}
</script>
<if>
<isset property="cordova.platforms.missing"/>
<then>
<cordova-echo message="Cordova is adding platforms &quot;${cordova.platforms.missing}&quot;"/>
<x-shell reloadprofile="true" dir="${app.cordova.config.path}">
cordova ${cordova.cli.options} platform add ${cordova.platforms.missing}
</x-shell>
</then>
</if>
</target>
<target name="-after-cordova-platform-add"/>
<target name="cordova-platform-add" depends="cordova-init, -before-cordova-platform-add, -cordova-platform-add, -after-cordova-platform-add"/>
<target name="-before-cordova-init-native-package"/>
<target name="-cordova-init-native-package" depends="cordova-create"/>
<target name="-after-cordova-init-native-package"/>
<target name="cordova-init-native-package" depends="cordova-init, -before-cordova-init-native-package, -cordova-init-native-package, -after-cordova-init-native-package"/>
<target name="-before-cordova-native-package"/>
<target name="-cordova-native-package" depends="cordova-platform-add, cordova-build, cordova-prepare, cordova-emulate, cordova-run"/>
<target name="-after-cordova-native-package"/>
<target name="cordova-native-package" depends="cordova-init, -before-cordova-native-package, -cordova-native-package, -after-cordova-native-package"/>
<macrodef name="cordova-echo">
<text name="text" optional="true"/>
<attribute name="message" default=""/>
<attribute name="level" default="info"/>
<sequential>
<if>
<equals arg1="@{message}" arg2=""/>
<then>
<x-echo message="[Cordova] @{text}" level="@{level}"/>
</then>
<else>
<x-echo message="[Cordova] @{message}" level="@{level}"/>
</else>
</if>
</sequential>
</macrodef>
</project>
\ No newline at end of file
#
# Copyright (c) 2012-2014. Sencha Inc.
#
# Legacy support here for old build workflow.
cordova.platforms=${app.cordova.config.platforms}
\ No newline at end of file
This diff is collapsed.
# =============================================================================
# This file defines default property values that apply to the "development" build
# environment.
#
# Please use testing.properties to customize these properties unless you want
# your customizations to be for all environments. In that case, you can instead
# override these properties in build.properties.
#
# The properties defined in this file take priority over defaults.properties
# but are lower priority than build.properties which in turn is lower priority
# than development.properties.
#
# IMPORTANT - This file should not be modified by an app as it is overwritten
# during each app upgrade.
# =============================================================================
build.options.logger=yes
build.options.debug=true
build.css.compress=false
build.include.all.scss=true
# By default we don't need to build an "all.js" file, or a new markup page or
# slice images for IE8/9. These can be added to "development.properties" and
# set to 0 to enable them if needed.
skip.page=1
skip.js=1
skip.slice=1
# =============================================================================
# This file provides an override point for default variables defined in
# testing.defaults.properties. These properties are only imported when building
# for the "development" environment.
#
# Properties defined in this file take priority over build.properties but are
# only loaded for "development" builds.
# =============================================================================
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
# =============================================================================
# This file defines default property values that apply to the "native" build
# environment.
#
# Please use native.properties to customize these properties unless you want
# your customizations to be for all environments. In that case, you can instead
# override these properties in build.properties.
#
# The properties defined in this file take priority over defaults.properties
# but are lower priority than build.properties which in turn is lower priority
# than native.properties.
#
# IMPORTANT - This file should not be modified by an app as it is overwritten
# during each app upgrade.
# =============================================================================
build.options.logger=no
build.options.debug=false
# enable yui compression
build.compression.yui=1
enable.standalone.manifest=true
app.microloader.name=testing.js
skip.native-package=false
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment