You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by er...@apache.org on 2014/08/06 13:24:45 UTC

[01/10] git commit: [flex-asjs] [refs/heads/develop] - Moved VF2JS JS framework so it doesn't interfere with possible FlexJS overlay on same SDK.

Repository: flex-asjs
Updated Branches:
  refs/heads/develop 985f982f4 -> 9f50bab0d


Moved VF2JS JS framework so it doesn't interfere with possible FlexJS overlay on same SDK.

Signed-off-by: Erik de Bruin <er...@ixsoftware.nl>


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/c2ed61e8
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/c2ed61e8
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/c2ed61e8

Branch: refs/heads/develop
Commit: c2ed61e8c4f25240d3b6d32df3bc513099519791
Parents: 985f982
Author: Erik de Bruin <er...@ixsoftware.nl>
Authored: Tue Aug 5 11:54:04 2014 +0200
Committer: Erik de Bruin <er...@ixsoftware.nl>
Committed: Tue Aug 5 11:54:04 2014 +0200

----------------------------------------------------------------------
 .../js/src/org/apache/flex/utils/Language.js    | 186 -------------------
 .../js/src/vf2js_mx/components/Button.js        |  24 ---
 .../js/src/vf2js_s/components/Application.js    |  30 ---
 .../js/src/vf2js_s/components/Button.css        |  17 --
 .../js/src/vf2js_s/components/Button.js         | 163 ----------------
 .../js/src/vf2js_s/components/ButtonRenderer.js |  92 ---------
 vf2js/frameworks/js/tests.html                  |  35 ----
 .../vf2js/src/org/apache/flex/utils/Language.js | 186 +++++++++++++++++++
 .../js/vf2js/src/vf2js_mx/components/Button.js  |  24 +++
 .../vf2js/src/vf2js_s/components/Application.js |  30 +++
 .../js/vf2js/src/vf2js_s/components/Button.css  |  17 ++
 .../js/vf2js/src/vf2js_s/components/Button.js   | 163 ++++++++++++++++
 .../src/vf2js_s/components/ButtonRenderer.js    |  92 +++++++++
 vf2js/frameworks/js/vf2js/tests.html            |  35 ++++
 14 files changed, 547 insertions(+), 547 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/c2ed61e8/vf2js/frameworks/js/src/org/apache/flex/utils/Language.js
----------------------------------------------------------------------
diff --git a/vf2js/frameworks/js/src/org/apache/flex/utils/Language.js b/vf2js/frameworks/js/src/org/apache/flex/utils/Language.js
deleted file mode 100644
index 619edb1..0000000
--- a/vf2js/frameworks/js/src/org/apache/flex/utils/Language.js
+++ /dev/null
@@ -1,186 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-goog.provide('org.apache.flex.utils.Language');
-
-
-
-/**
- * @constructor
- */
-org.apache.flex.utils.Language = function() {
-};
-
-
-/**
- * Metadata
- *
- * @type {Object.<string, Array.<Object>>}
- */
-org.apache.flex.utils.Language.prototype.FLEXJS_CLASS_INFO =
-    { names: [{ name: 'Language',
-                qName: 'org.apache.flex.utils.Language'}] };
-
-
-/**
- * as()
- *
- * @expose
- * @param {?} leftOperand The lefthand operand of the
- *                        binary as operator in AS3.
- * @param {?} rightOperand The righthand operand of the
- *                         binary operator in AS3.
- * @param {?=} opt_coercion The cast is a coercion,
- *                          throw expception if it fails.
- * @return {?} Returns the lefthand operand if it is of the
- *             type of the righthand operand, otherwise null.
- */
-org.apache.flex.utils.Language.as = function(leftOperand, rightOperand, opt_coercion) {
-  var error, itIs, message;
-
-  opt_coercion = (opt_coercion !== undefined) ? opt_coercion : false;
-
-  itIs = org.apache.flex.utils.Language.is(leftOperand, rightOperand);
-
-  if (!itIs && opt_coercion) {
-    message = 'Type Coercion failed';
-    if (TypeError) {
-      error = new TypeError(message);
-    } else {
-      error = new Error(message);
-    }
-    throw error;
-  }
-
-  return (itIs) ? leftOperand : null;
-};
-
-
-/**
- * int()
- *
- * @expose
- * @param {?} value The value to be cast.
- * @return {number}
- */
-org.apache.flex.utils.Language._int = function(value) {
-  return value >> 0;
-};
-
-
-/**
- * is()
- *
- * @expose
- * @param {?} leftOperand The lefthand operand of the
- *     binary as operator in AS3.
- * @param {?} rightOperand The righthand operand of the
- *     binary operator in AS3.
- * @return {boolean}
- */
-org.apache.flex.utils.Language.is = function(leftOperand, rightOperand) {
-  var checkInterfaces, superClass;
-
-  // (erikdebruin) we intentionally DON'T do null checks on the
-  //               [class].FLEXJS_CLASS_INFO property, as it MUST be
-  //               declared for every FLEXJS JS (framework) class
-
-  if (leftOperand && !rightOperand) {
-    return false;
-  }
-
-  checkInterfaces = function(left) {
-    var i, interfaces;
-
-    interfaces = left.FLEXJS_CLASS_INFO.interfaces;
-    for (i = interfaces.length - 1; i > -1; i--) {
-      if (interfaces[i] === rightOperand) {
-        return true;
-      }
-
-      if (interfaces[i].prototype.FLEXJS_CLASS_INFO.interfaces) {
-        return checkInterfaces(new interfaces[i]());
-      }
-    }
-
-    return false;
-  };
-
-  if ((rightOperand === String && typeof leftOperand === 'string') ||
-      (leftOperand instanceof /** @type {Object} */(rightOperand))) {
-    return true;
-  }
-  if ((rightOperand === Number && typeof leftOperand === 'number') ||
-    (leftOperand instanceof /** @type {Object} */(rightOperand))) {
-    return true;
-  }
-
-  if (leftOperand.FLEXJS_CLASS_INFO.interfaces) {
-    if (checkInterfaces(leftOperand)) {
-      return true;
-    }
-  }
-
-  superClass = leftOperand.constructor.superClass_;
-  if (superClass) {
-    while (superClass && superClass.FLEXJS_CLASS_INFO) {
-      if (superClass.FLEXJS_CLASS_INFO.interfaces) {
-        if (checkInterfaces(superClass)) {
-          return true;
-        }
-      }
-      superClass = superClass.constructor.superClass_;
-    }
-  }
-
-  return false;
-};
-
-
-/**
- * trace()
- *
- * @expose
- * @param {string=} opt_value The message to be written to the console.
- */
-org.apache.flex.utils.Language.trace = function(opt_value) {
-  var theConsole;
-
-  opt_value = (opt_value !== undefined) ? opt_value : '';
-
-  theConsole = goog.global.console;
-
-  if (theConsole === undefined && window.console !== undefined)
-    theConsole = window.console;
-
-  try {
-    if (theConsole && theConsole.log) {
-      theConsole.log(opt_value);
-    }
-  } catch (e) {
-    // ignore; at least we tried ;-)
-  }
-};
-
-
-/**
- * uint()
- *
- * @expose
- * @param {?} value The value to be cast.
- * @return {number}
- */
-org.apache.flex.utils.Language.uint = function(value) {
-  return value >>> 0;
-};

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/c2ed61e8/vf2js/frameworks/js/src/vf2js_mx/components/Button.js
----------------------------------------------------------------------
diff --git a/vf2js/frameworks/js/src/vf2js_mx/components/Button.js b/vf2js/frameworks/js/src/vf2js_mx/components/Button.js
deleted file mode 100644
index 6e984b8..0000000
--- a/vf2js/frameworks/js/src/vf2js_mx/components/Button.js
+++ /dev/null
@@ -1,24 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the 'License');
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an 'AS IS' BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-'use strict';
-
-goog.provide('vf2js_mx.components.Button');
-
-
-
-/**
- * @constructor
- */
-vf2js_mx.components.Button = function() {};
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/c2ed61e8/vf2js/frameworks/js/src/vf2js_s/components/Application.js
----------------------------------------------------------------------
diff --git a/vf2js/frameworks/js/src/vf2js_s/components/Application.js b/vf2js/frameworks/js/src/vf2js_s/components/Application.js
deleted file mode 100644
index 247b13c..0000000
--- a/vf2js/frameworks/js/src/vf2js_s/components/Application.js
+++ /dev/null
@@ -1,30 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the 'License');
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an 'AS IS' BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
- * @fileoverview 'Spark' Application class.
- *
- * @author erikdebruin@apache.org (Erik de Bruin)
- */
-
-'use strict';
-
-goog.provide('vf2js_s.components.Application');
-
-
-
-/**
- * @constructor
- */
-vf2js_s.components.Application = function() {};

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/c2ed61e8/vf2js/frameworks/js/src/vf2js_s/components/Button.css
----------------------------------------------------------------------
diff --git a/vf2js/frameworks/js/src/vf2js_s/components/Button.css b/vf2js/frameworks/js/src/vf2js_s/components/Button.css
deleted file mode 100644
index 4d05b32..0000000
--- a/vf2js/frameworks/js/src/vf2js_s/components/Button.css
+++ /dev/null
@@ -1,17 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the 'License');
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an 'AS IS' BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-.vf2js_s-components-buttonrenderer {
-  color: red;
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/c2ed61e8/vf2js/frameworks/js/src/vf2js_s/components/Button.js
----------------------------------------------------------------------
diff --git a/vf2js/frameworks/js/src/vf2js_s/components/Button.js b/vf2js/frameworks/js/src/vf2js_s/components/Button.js
deleted file mode 100644
index a0beed4..0000000
--- a/vf2js/frameworks/js/src/vf2js_s/components/Button.js
+++ /dev/null
@@ -1,163 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the 'License');
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an 'AS IS' BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
- * @fileoverview A 'Spark' button component.
- *
- * @author erikdebruin@apache.org (Erik de Bruin)
- */
-
-'use strict';
-
-goog.provide('vf2js_s.components.Button');
-
-goog.require('goog.ui.Control');
-goog.require('vf2js_s.components.ButtonRenderer');
-
-
-
-/**
- * @constructor
- * 
- * @extends {goog.ui.Control}
- */
-vf2js_s.components.Button = function() {
-  vf2js_s.components.Button.base(this, 'constructor');
-};
-goog.inherits(vf2js_s.components.Button, goog.ui.Control);
-
-
-//------------------------------------------------------------------------------
-//
-//  Enums
-//
-//------------------------------------------------------------------------------
-
-
-/**
- * IdFragment
- *
- * @enum {string}
- */
-vf2js_s.components.Button.IdFragment = {
-  BUTTON: 'button'
-};
-
-
-//------------------------------------------------------------------------------
-//
-//  Properties
-//
-//------------------------------------------------------------------------------
-
-
-//--------------------------------------
-//  id
-//--------------------------------------
-
-/**
- * @type {string}
- */
-vf2js_s.components.Button.prototype.id;
-
-
-//--------------------------------------
-//  label
-//--------------------------------------
-
-/**
- * @private
- * 
- * @type {string}
- */
-vf2js_s.components.Button.prototype.label_;
-
-/**
- * @type {string}
- */
-vf2js_s.components.Button.prototype.label;
-
-Object.defineProperty(vf2js_s.components.Button.prototype, 'label', {
-  get: function () {
-    return this.label_;
-  },
-  set: function (value) {
-    var /** @type {Element} */ element;
-    
-    this.label_ = value;
-    
-    element = this.getElement();
-    if (element) {
-      element.firstChild.value = this.label_;
-    }
-  }
-});
-
-
-//------------------------------------------------------------------------------
-//
-//  Methods
-//
-//------------------------------------------------------------------------------
-
-
-/**
- * enterDocument
- * 
- * @inheritDoc
- */
-vf2js_s.components.Button.prototype.enterDocument = function() {
-  vf2js_s.components.Button.base(this, 'enterDocument');
-  
-  this.setId(this.id);
-  
-  this.label = this.label_;
-  
-  // - add handlers using 'this.getHandler()'
-};
-
-
-/**
- * exitDocument
- * 
- * @inheritDoc
- */
-vf2js_s.components.Button.prototype.exitDocument = function() {
-  vf2js_s.components.Button.base(this, 'exitDocument');
-  
-  // - remove handlers that are not attached with 'this.getHandler()'
-};
-
-
-/**
- * disposeInternal
- * 
- * @inheritDoc
- */
-vf2js_s.components.Button.prototype.disposeInternal = function() {
-  vf2js_s.components.Button.base(this, 'disposeInternal');
-  
-  //
-};
-
-
-//------------------------------------------------------------------------------
-//
-//  Metadata
-//
-//------------------------------------------------------------------------------
-
-
-goog.ui.registry.setDefaultRenderer(vf2js_s.components.Button,
-    vf2js_s.components.ButtonRenderer);

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/c2ed61e8/vf2js/frameworks/js/src/vf2js_s/components/ButtonRenderer.js
----------------------------------------------------------------------
diff --git a/vf2js/frameworks/js/src/vf2js_s/components/ButtonRenderer.js b/vf2js/frameworks/js/src/vf2js_s/components/ButtonRenderer.js
deleted file mode 100644
index 009e9b3..0000000
--- a/vf2js/frameworks/js/src/vf2js_s/components/ButtonRenderer.js
+++ /dev/null
@@ -1,92 +0,0 @@
-/**
- * Licensed under the Apache License, Version 2.0 (the 'License');
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an 'AS IS' BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
- * @fileoverview The renderer for 'Spark' button components.
- *
- * @author erikdebruin@apache.org (Erik de Bruin)
- */
-
-'use strict';
-
-goog.provide('vf2js_s.components.ButtonRenderer');
-
-goog.require('goog.ui.ControlRenderer');
-
-
-
-/**
- * @constructor
- *
- * @extends {goog.ui.ControlRenderer}
- */
-vf2js_s.components.ButtonRenderer = function() {
-  vf2js_s.components.ButtonRenderer.base(this, 'constructor');
-};
-goog.inherits(vf2js_s.components.ButtonRenderer, goog.ui.ControlRenderer);
-goog.addSingletonGetter(vf2js_s.components.ButtonRenderer);
-
-
-//------------------------------------------------------------------------------
-//
-// Static Constants
-//
-//------------------------------------------------------------------------------
-
-
-/**
- * CSS_CLASS
- * 
- * @const
- * 
- * @type {string}
- */
-vf2js_s.components.ButtonRenderer.CSS_CLASS =
-    'vf2js_s-components-buttonrenderer';
-
-
-//------------------------------------------------------------------------------
-//
-//  Methods
-//
-//------------------------------------------------------------------------------
-
-
-/**
- * getCssClass
- * 
- * @inheritDoc
- */
-vf2js_s.components.ButtonRenderer.prototype.getCssClass = function () {
-  return vf2js_s.components.ButtonRenderer.CSS_CLASS;
-};
-
-
-/**
- * createDom
- * 
- * @inheritDoc
- */
-vf2js_s.components.ButtonRenderer.prototype.createDom = function (button) {
-  var /** @type {?Element} */ element;
-  
-  element = vf2js_s.components.ButtonRenderer.base(this, 'createDom', button);
-  
-  element.appendChild(
-      goog.dom.createDom('input', { 'type': 'button' }));
-
-  button.setElementInternal(element);
-  
-  return element;
-};

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/c2ed61e8/vf2js/frameworks/js/tests.html
----------------------------------------------------------------------
diff --git a/vf2js/frameworks/js/tests.html b/vf2js/frameworks/js/tests.html
deleted file mode 100644
index 9bdcb83..0000000
--- a/vf2js/frameworks/js/tests.html
+++ /dev/null
@@ -1,35 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-
-	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-  <meta http-equiv="X-UA-Compatible" content="IE=edge" >
-  
-  <script src="/Users/erik/Documents/ApacheFlex/dependencies/GoogleClosure/library/closure/goog/base.js"></script>
-
-  <script src="/Users/erik/Documents/eclipse (kepler)/.metadata/.closure/Users/erik/Documents/ApacheFlex/dependencies/GoogleClosure/library.js"></script>
-
-  <script src="/Users/erik/Documents/eclipse (kepler)/.metadata/.closure/Users/erik/Documents/ApacheFlex/git/flex-asjs/frameworks/js/VF2JS/src.js"></script>
-
-  <script>
-    goog.require('vf2js_s.components.Button');
-  </script>
-
-</head>
-<body onload="init();">
-
-  <script>
-    
-    function init() {
-      var /** @type {vf2js_s.components.Button} */ button;
-    
-      button = new vf2js_s.components.Button();
-      button.id = 'myBtn';
-      button.label = 'helloWorld';
-      button.render();
-    }
-    
-  </script>
-
-</body>
-</html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/c2ed61e8/vf2js/frameworks/js/vf2js/src/org/apache/flex/utils/Language.js
----------------------------------------------------------------------
diff --git a/vf2js/frameworks/js/vf2js/src/org/apache/flex/utils/Language.js b/vf2js/frameworks/js/vf2js/src/org/apache/flex/utils/Language.js
new file mode 100644
index 0000000..619edb1
--- /dev/null
+++ b/vf2js/frameworks/js/vf2js/src/org/apache/flex/utils/Language.js
@@ -0,0 +1,186 @@
+/**
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+goog.provide('org.apache.flex.utils.Language');
+
+
+
+/**
+ * @constructor
+ */
+org.apache.flex.utils.Language = function() {
+};
+
+
+/**
+ * Metadata
+ *
+ * @type {Object.<string, Array.<Object>>}
+ */
+org.apache.flex.utils.Language.prototype.FLEXJS_CLASS_INFO =
+    { names: [{ name: 'Language',
+                qName: 'org.apache.flex.utils.Language'}] };
+
+
+/**
+ * as()
+ *
+ * @expose
+ * @param {?} leftOperand The lefthand operand of the
+ *                        binary as operator in AS3.
+ * @param {?} rightOperand The righthand operand of the
+ *                         binary operator in AS3.
+ * @param {?=} opt_coercion The cast is a coercion,
+ *                          throw expception if it fails.
+ * @return {?} Returns the lefthand operand if it is of the
+ *             type of the righthand operand, otherwise null.
+ */
+org.apache.flex.utils.Language.as = function(leftOperand, rightOperand, opt_coercion) {
+  var error, itIs, message;
+
+  opt_coercion = (opt_coercion !== undefined) ? opt_coercion : false;
+
+  itIs = org.apache.flex.utils.Language.is(leftOperand, rightOperand);
+
+  if (!itIs && opt_coercion) {
+    message = 'Type Coercion failed';
+    if (TypeError) {
+      error = new TypeError(message);
+    } else {
+      error = new Error(message);
+    }
+    throw error;
+  }
+
+  return (itIs) ? leftOperand : null;
+};
+
+
+/**
+ * int()
+ *
+ * @expose
+ * @param {?} value The value to be cast.
+ * @return {number}
+ */
+org.apache.flex.utils.Language._int = function(value) {
+  return value >> 0;
+};
+
+
+/**
+ * is()
+ *
+ * @expose
+ * @param {?} leftOperand The lefthand operand of the
+ *     binary as operator in AS3.
+ * @param {?} rightOperand The righthand operand of the
+ *     binary operator in AS3.
+ * @return {boolean}
+ */
+org.apache.flex.utils.Language.is = function(leftOperand, rightOperand) {
+  var checkInterfaces, superClass;
+
+  // (erikdebruin) we intentionally DON'T do null checks on the
+  //               [class].FLEXJS_CLASS_INFO property, as it MUST be
+  //               declared for every FLEXJS JS (framework) class
+
+  if (leftOperand && !rightOperand) {
+    return false;
+  }
+
+  checkInterfaces = function(left) {
+    var i, interfaces;
+
+    interfaces = left.FLEXJS_CLASS_INFO.interfaces;
+    for (i = interfaces.length - 1; i > -1; i--) {
+      if (interfaces[i] === rightOperand) {
+        return true;
+      }
+
+      if (interfaces[i].prototype.FLEXJS_CLASS_INFO.interfaces) {
+        return checkInterfaces(new interfaces[i]());
+      }
+    }
+
+    return false;
+  };
+
+  if ((rightOperand === String && typeof leftOperand === 'string') ||
+      (leftOperand instanceof /** @type {Object} */(rightOperand))) {
+    return true;
+  }
+  if ((rightOperand === Number && typeof leftOperand === 'number') ||
+    (leftOperand instanceof /** @type {Object} */(rightOperand))) {
+    return true;
+  }
+
+  if (leftOperand.FLEXJS_CLASS_INFO.interfaces) {
+    if (checkInterfaces(leftOperand)) {
+      return true;
+    }
+  }
+
+  superClass = leftOperand.constructor.superClass_;
+  if (superClass) {
+    while (superClass && superClass.FLEXJS_CLASS_INFO) {
+      if (superClass.FLEXJS_CLASS_INFO.interfaces) {
+        if (checkInterfaces(superClass)) {
+          return true;
+        }
+      }
+      superClass = superClass.constructor.superClass_;
+    }
+  }
+
+  return false;
+};
+
+
+/**
+ * trace()
+ *
+ * @expose
+ * @param {string=} opt_value The message to be written to the console.
+ */
+org.apache.flex.utils.Language.trace = function(opt_value) {
+  var theConsole;
+
+  opt_value = (opt_value !== undefined) ? opt_value : '';
+
+  theConsole = goog.global.console;
+
+  if (theConsole === undefined && window.console !== undefined)
+    theConsole = window.console;
+
+  try {
+    if (theConsole && theConsole.log) {
+      theConsole.log(opt_value);
+    }
+  } catch (e) {
+    // ignore; at least we tried ;-)
+  }
+};
+
+
+/**
+ * uint()
+ *
+ * @expose
+ * @param {?} value The value to be cast.
+ * @return {number}
+ */
+org.apache.flex.utils.Language.uint = function(value) {
+  return value >>> 0;
+};

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/c2ed61e8/vf2js/frameworks/js/vf2js/src/vf2js_mx/components/Button.js
----------------------------------------------------------------------
diff --git a/vf2js/frameworks/js/vf2js/src/vf2js_mx/components/Button.js b/vf2js/frameworks/js/vf2js/src/vf2js_mx/components/Button.js
new file mode 100644
index 0000000..6e984b8
--- /dev/null
+++ b/vf2js/frameworks/js/vf2js/src/vf2js_mx/components/Button.js
@@ -0,0 +1,24 @@
+/**
+ * Licensed under the Apache License, Version 2.0 (the 'License');
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+'use strict';
+
+goog.provide('vf2js_mx.components.Button');
+
+
+
+/**
+ * @constructor
+ */
+vf2js_mx.components.Button = function() {};
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/c2ed61e8/vf2js/frameworks/js/vf2js/src/vf2js_s/components/Application.js
----------------------------------------------------------------------
diff --git a/vf2js/frameworks/js/vf2js/src/vf2js_s/components/Application.js b/vf2js/frameworks/js/vf2js/src/vf2js_s/components/Application.js
new file mode 100644
index 0000000..247b13c
--- /dev/null
+++ b/vf2js/frameworks/js/vf2js/src/vf2js_s/components/Application.js
@@ -0,0 +1,30 @@
+/**
+ * Licensed under the Apache License, Version 2.0 (the 'License');
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * @fileoverview 'Spark' Application class.
+ *
+ * @author erikdebruin@apache.org (Erik de Bruin)
+ */
+
+'use strict';
+
+goog.provide('vf2js_s.components.Application');
+
+
+
+/**
+ * @constructor
+ */
+vf2js_s.components.Application = function() {};

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/c2ed61e8/vf2js/frameworks/js/vf2js/src/vf2js_s/components/Button.css
----------------------------------------------------------------------
diff --git a/vf2js/frameworks/js/vf2js/src/vf2js_s/components/Button.css b/vf2js/frameworks/js/vf2js/src/vf2js_s/components/Button.css
new file mode 100644
index 0000000..4d05b32
--- /dev/null
+++ b/vf2js/frameworks/js/vf2js/src/vf2js_s/components/Button.css
@@ -0,0 +1,17 @@
+/**
+ * Licensed under the Apache License, Version 2.0 (the 'License');
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+.vf2js_s-components-buttonrenderer {
+  color: red;
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/c2ed61e8/vf2js/frameworks/js/vf2js/src/vf2js_s/components/Button.js
----------------------------------------------------------------------
diff --git a/vf2js/frameworks/js/vf2js/src/vf2js_s/components/Button.js b/vf2js/frameworks/js/vf2js/src/vf2js_s/components/Button.js
new file mode 100644
index 0000000..a0beed4
--- /dev/null
+++ b/vf2js/frameworks/js/vf2js/src/vf2js_s/components/Button.js
@@ -0,0 +1,163 @@
+/**
+ * Licensed under the Apache License, Version 2.0 (the 'License');
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * @fileoverview A 'Spark' button component.
+ *
+ * @author erikdebruin@apache.org (Erik de Bruin)
+ */
+
+'use strict';
+
+goog.provide('vf2js_s.components.Button');
+
+goog.require('goog.ui.Control');
+goog.require('vf2js_s.components.ButtonRenderer');
+
+
+
+/**
+ * @constructor
+ * 
+ * @extends {goog.ui.Control}
+ */
+vf2js_s.components.Button = function() {
+  vf2js_s.components.Button.base(this, 'constructor');
+};
+goog.inherits(vf2js_s.components.Button, goog.ui.Control);
+
+
+//------------------------------------------------------------------------------
+//
+//  Enums
+//
+//------------------------------------------------------------------------------
+
+
+/**
+ * IdFragment
+ *
+ * @enum {string}
+ */
+vf2js_s.components.Button.IdFragment = {
+  BUTTON: 'button'
+};
+
+
+//------------------------------------------------------------------------------
+//
+//  Properties
+//
+//------------------------------------------------------------------------------
+
+
+//--------------------------------------
+//  id
+//--------------------------------------
+
+/**
+ * @type {string}
+ */
+vf2js_s.components.Button.prototype.id;
+
+
+//--------------------------------------
+//  label
+//--------------------------------------
+
+/**
+ * @private
+ * 
+ * @type {string}
+ */
+vf2js_s.components.Button.prototype.label_;
+
+/**
+ * @type {string}
+ */
+vf2js_s.components.Button.prototype.label;
+
+Object.defineProperty(vf2js_s.components.Button.prototype, 'label', {
+  get: function () {
+    return this.label_;
+  },
+  set: function (value) {
+    var /** @type {Element} */ element;
+    
+    this.label_ = value;
+    
+    element = this.getElement();
+    if (element) {
+      element.firstChild.value = this.label_;
+    }
+  }
+});
+
+
+//------------------------------------------------------------------------------
+//
+//  Methods
+//
+//------------------------------------------------------------------------------
+
+
+/**
+ * enterDocument
+ * 
+ * @inheritDoc
+ */
+vf2js_s.components.Button.prototype.enterDocument = function() {
+  vf2js_s.components.Button.base(this, 'enterDocument');
+  
+  this.setId(this.id);
+  
+  this.label = this.label_;
+  
+  // - add handlers using 'this.getHandler()'
+};
+
+
+/**
+ * exitDocument
+ * 
+ * @inheritDoc
+ */
+vf2js_s.components.Button.prototype.exitDocument = function() {
+  vf2js_s.components.Button.base(this, 'exitDocument');
+  
+  // - remove handlers that are not attached with 'this.getHandler()'
+};
+
+
+/**
+ * disposeInternal
+ * 
+ * @inheritDoc
+ */
+vf2js_s.components.Button.prototype.disposeInternal = function() {
+  vf2js_s.components.Button.base(this, 'disposeInternal');
+  
+  //
+};
+
+
+//------------------------------------------------------------------------------
+//
+//  Metadata
+//
+//------------------------------------------------------------------------------
+
+
+goog.ui.registry.setDefaultRenderer(vf2js_s.components.Button,
+    vf2js_s.components.ButtonRenderer);

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/c2ed61e8/vf2js/frameworks/js/vf2js/src/vf2js_s/components/ButtonRenderer.js
----------------------------------------------------------------------
diff --git a/vf2js/frameworks/js/vf2js/src/vf2js_s/components/ButtonRenderer.js b/vf2js/frameworks/js/vf2js/src/vf2js_s/components/ButtonRenderer.js
new file mode 100644
index 0000000..009e9b3
--- /dev/null
+++ b/vf2js/frameworks/js/vf2js/src/vf2js_s/components/ButtonRenderer.js
@@ -0,0 +1,92 @@
+/**
+ * Licensed under the Apache License, Version 2.0 (the 'License');
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * @fileoverview The renderer for 'Spark' button components.
+ *
+ * @author erikdebruin@apache.org (Erik de Bruin)
+ */
+
+'use strict';
+
+goog.provide('vf2js_s.components.ButtonRenderer');
+
+goog.require('goog.ui.ControlRenderer');
+
+
+
+/**
+ * @constructor
+ *
+ * @extends {goog.ui.ControlRenderer}
+ */
+vf2js_s.components.ButtonRenderer = function() {
+  vf2js_s.components.ButtonRenderer.base(this, 'constructor');
+};
+goog.inherits(vf2js_s.components.ButtonRenderer, goog.ui.ControlRenderer);
+goog.addSingletonGetter(vf2js_s.components.ButtonRenderer);
+
+
+//------------------------------------------------------------------------------
+//
+// Static Constants
+//
+//------------------------------------------------------------------------------
+
+
+/**
+ * CSS_CLASS
+ * 
+ * @const
+ * 
+ * @type {string}
+ */
+vf2js_s.components.ButtonRenderer.CSS_CLASS =
+    'vf2js_s-components-buttonrenderer';
+
+
+//------------------------------------------------------------------------------
+//
+//  Methods
+//
+//------------------------------------------------------------------------------
+
+
+/**
+ * getCssClass
+ * 
+ * @inheritDoc
+ */
+vf2js_s.components.ButtonRenderer.prototype.getCssClass = function () {
+  return vf2js_s.components.ButtonRenderer.CSS_CLASS;
+};
+
+
+/**
+ * createDom
+ * 
+ * @inheritDoc
+ */
+vf2js_s.components.ButtonRenderer.prototype.createDom = function (button) {
+  var /** @type {?Element} */ element;
+  
+  element = vf2js_s.components.ButtonRenderer.base(this, 'createDom', button);
+  
+  element.appendChild(
+      goog.dom.createDom('input', { 'type': 'button' }));
+
+  button.setElementInternal(element);
+  
+  return element;
+};

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/c2ed61e8/vf2js/frameworks/js/vf2js/tests.html
----------------------------------------------------------------------
diff --git a/vf2js/frameworks/js/vf2js/tests.html b/vf2js/frameworks/js/vf2js/tests.html
new file mode 100644
index 0000000..9bdcb83
--- /dev/null
+++ b/vf2js/frameworks/js/vf2js/tests.html
@@ -0,0 +1,35 @@
+<!DOCTYPE html>
+<html>
+<head>
+
+	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+  <meta http-equiv="X-UA-Compatible" content="IE=edge" >
+  
+  <script src="/Users/erik/Documents/ApacheFlex/dependencies/GoogleClosure/library/closure/goog/base.js"></script>
+
+  <script src="/Users/erik/Documents/eclipse (kepler)/.metadata/.closure/Users/erik/Documents/ApacheFlex/dependencies/GoogleClosure/library.js"></script>
+
+  <script src="/Users/erik/Documents/eclipse (kepler)/.metadata/.closure/Users/erik/Documents/ApacheFlex/git/flex-asjs/frameworks/js/VF2JS/src.js"></script>
+
+  <script>
+    goog.require('vf2js_s.components.Button');
+  </script>
+
+</head>
+<body onload="init();">
+
+  <script>
+    
+    function init() {
+      var /** @type {vf2js_s.components.Button} */ button;
+    
+      button = new vf2js_s.components.Button();
+      button.id = 'myBtn';
+      button.label = 'helloWorld';
+      button.render();
+    }
+    
+  </script>
+
+</body>
+</html>
\ No newline at end of file


[09/10] git commit: [flex-asjs] [refs/heads/develop] - Simplified and clarified launch config tokens.

Posted by er...@apache.org.
Simplified and clarified launch config tokens.

Signed-off-by: Erik de Bruin <er...@ixsoftware.nl>


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/6c2ecb49
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/6c2ecb49
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/6c2ecb49

Branch: refs/heads/develop
Commit: 6c2ecb49688a0ff10110b31bf1fcf3502ee76cdd
Parents: abcec37
Author: Erik de Bruin <er...@ixsoftware.nl>
Authored: Wed Aug 6 13:23:39 2014 +0200
Committer: Erik de Bruin <er...@ixsoftware.nl>
Committed: Wed Aug 6 13:23:39 2014 +0200

----------------------------------------------------------------------
 .../ide/flashbuilder/launch/VF2JS (Debug and Release Build).launch | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6c2ecb49/vf2js/ide/flashbuilder/launch/VF2JS (Debug and Release Build).launch
----------------------------------------------------------------------
diff --git a/vf2js/ide/flashbuilder/launch/VF2JS (Debug and Release Build).launch b/vf2js/ide/flashbuilder/launch/VF2JS (Debug and Release Build).launch
index ed4b96e..f860979 100644
--- a/vf2js/ide/flashbuilder/launch/VF2JS (Debug and Release Build).launch	
+++ b/vf2js/ide/flashbuilder/launch/VF2JS (Debug and Release Build).launch	
@@ -23,6 +23,6 @@
 <listEntry value='org.eclipse.ui.externaltools.launchGroup'/>
 </listAttribute>
 <stringAttribute key='org.eclipse.ui.externaltools.ATTR_LAUNCH_CONFIGURATION_BUILD_SCOPE' value='${project}'/>
-<stringAttribute key='org.eclipse.ui.externaltools.ATTR_LOCATION' value='$FLEX_HOME/js/vf2js/falconjx/bin/$MXMLC'/>
+<stringAttribute key='org.eclipse.ui.externaltools.ATTR_LOCATION' value='$flex_sdk_loc/js/vf2js/falconjx/bin/mxmlc'/>
 <stringAttribute key='org.eclipse.ui.externaltools.ATTR_TOOL_ARGUMENTS' value='-fb &quot;${project_loc}&quot;'/>
 </launchConfiguration>


[04/10] git commit: [flex-asjs] [refs/heads/develop] - No need for this (for now).

Posted by er...@apache.org.
No need for this (for now).

Signed-off-by: Erik de Bruin <er...@ixsoftware.nl>


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/bed53a6b
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/bed53a6b
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/bed53a6b

Branch: refs/heads/develop
Commit: bed53a6b4bd05319d2bfb17b1cabbc5e8f6b53ac
Parents: 5f1ebcf
Author: Erik de Bruin <er...@ixsoftware.nl>
Authored: Tue Aug 5 15:16:51 2014 +0200
Committer: Erik de Bruin <er...@ixsoftware.nl>
Committed: Tue Aug 5 15:16:51 2014 +0200

----------------------------------------------------------------------
 vf2js/build.properties | 71 ---------------------------------------------
 1 file changed, 71 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/bed53a6b/vf2js/build.properties
----------------------------------------------------------------------
diff --git a/vf2js/build.properties b/vf2js/build.properties
deleted file mode 100644
index 95a063a..0000000
--- a/vf2js/build.properties
+++ /dev/null
@@ -1,71 +0,0 @@
-################################################################################
-##
-##  Licensed to the Apache Software Foundation (ASF) under one or more
-##  contributor license agreements.  See the NOTICE file distributed with
-##  this work for additional information regarding copyright ownership.
-##  The ASF licenses this file to You under the Apache License, Version 2.0
-##  (the "License"); you may not use this file except in compliance with
-##  the License.  You may obtain a copy of the License at
-##
-##      http://www.apache.org/licenses/LICENSE-2.0
-##
-##  Unless required by applicable law or agreed to in writing, software
-##  distributed under the License is distributed on an "AS IS" BASIS,
-##  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-##  See the License for the specific language governing permissions and
-##  limitations under the License.
-##
-################################################################################
-
-# flex-sdk-description values
-release.name = Apache Flex (FlexJS)
-# this is the version that appears in the flex-sdk-description <description> tag
-# and on the package name.  This is the publicly known version of FlexJS
-release.version = 0.0.2
-
-# fb.release.version must start with 4 in order for FB to accept it.
-# this property should only go in flex-sdk-description.xml <version> tag
-fb.release.version = 4.0.2
-
-# override on command line with -Dbuild.number=999 or in local.properties
-build.number = 0
-
-# Flash player version for which player global swc to use
-playerglobal.version = 11.1
-
-# AIR version number
-air.version = 14.0
-
-# Default locale for the SDK
-locale = en_US
-
-qa.dir = ${basedir}/../qa
-asc = ${basedir}/bin/asc
-
-# TextLayputFormat branch. Location of the textLayout directory in the TLF repo.
-#tlf.branch = 
-
-# For Java 7 on Mac OS X, you need an Intel-based Mac running Mac OS X version 10.7.3 
-# (Lion) and above.  Only the 64-bit data model is available so leave this blank.
-# Since ant properties are immutable, if this property is set in the build file before
-# this file is included, setting it to nothing here is a no-op.
-local.d32 =
-
-src.depend = true
-src.debug = on
-
-# JVM options for <compc> and <mxmlc> tasks
-jvm.args = ${local.d32} -Xms64m -Xmx384m -ea -Dapple.awt.UIElement=true
-    # -d32/-d64 for 32-bit/64-bit code model (or don't specify for the default)
-	# -Xms64m: start out with a 64 MB heap
-	# -Xmx384m: allow the heap to grow to 384 MB
-	# -ea: enable Java assertions
-compc.jvm.args = ${jvm.args}
-mxmlc.jvm.args = ${jvm.args}
-
-# JAR Manifest Entries
-manifest.sealed=false
-manifest.Implementation-Title=Apache Flex SDK
-manifest.Implementation-Version=${release.version}
-manifest.Implementation-Vendor=The Apache Software Foundation
-manifest.Implementation-Vendor-Id=org.apache


[02/10] git commit: [flex-asjs] [refs/heads/develop] - Rename to better represent it's function.

Posted by er...@apache.org.
Rename to better represent it's function.

Signed-off-by: Erik de Bruin <er...@ixsoftware.nl>


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/93ced8df
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/93ced8df
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/93ced8df

Branch: refs/heads/develop
Commit: 93ced8dff2d03820ea75db0b5ee22a9fb2b18f93
Parents: c2ed61e
Author: Erik de Bruin <er...@ixsoftware.nl>
Authored: Tue Aug 5 15:15:36 2014 +0200
Committer: Erik de Bruin <er...@ixsoftware.nl>
Committed: Tue Aug 5 15:15:36 2014 +0200

----------------------------------------------------------------------
 .../VF2JS (Debug and Release Build).launch      | 28 ++++++++++++++++++++
 ...JS (FalconJX Debug and Release Build).launch | 28 --------------------
 2 files changed, 28 insertions(+), 28 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/93ced8df/vf2js/ide/flashbuilder/launch/VF2JS (Debug and Release Build).launch
----------------------------------------------------------------------
diff --git a/vf2js/ide/flashbuilder/launch/VF2JS (Debug and Release Build).launch b/vf2js/ide/flashbuilder/launch/VF2JS (Debug and Release Build).launch
new file mode 100644
index 0000000..6b56fd9
--- /dev/null
+++ b/vf2js/ide/flashbuilder/launch/VF2JS (Debug and Release Build).launch	
@@ -0,0 +1,28 @@
+<?xml version='1.0' encoding='UTF-8' standalone='no'?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<launchConfiguration type='org.eclipse.ui.externaltools.ProgramLaunchConfigurationType'>
+<booleanAttribute key='org.eclipse.debug.core.appendEnvironmentVariables' value='false'/>
+<listAttribute key='org.eclipse.debug.ui.favoriteGroups'>
+<listEntry value='org.eclipse.ui.externaltools.launchGroup'/>
+</listAttribute>
+<stringAttribute key='org.eclipse.ui.externaltools.ATTR_LAUNCH_CONFIGURATION_BUILD_SCOPE' value='${project}'/>
+<stringAttribute key='org.eclipse.ui.externaltools.ATTR_LOCATION' value='$VF2JS_HOME/js/vf2js/falconjx/bin/$MXMLC'/>
+<stringAttribute key='org.eclipse.ui.externaltools.ATTR_TOOL_ARGUMENTS' value='-fb &quot;${project_loc}&quot;'/>
+</launchConfiguration>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/93ced8df/vf2js/ide/flashbuilder/launch/VF2JS (FalconJX Debug and Release Build).launch
----------------------------------------------------------------------
diff --git a/vf2js/ide/flashbuilder/launch/VF2JS (FalconJX Debug and Release Build).launch b/vf2js/ide/flashbuilder/launch/VF2JS (FalconJX Debug and Release Build).launch
deleted file mode 100644
index 6b56fd9..0000000
--- a/vf2js/ide/flashbuilder/launch/VF2JS (FalconJX Debug and Release Build).launch	
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version='1.0' encoding='UTF-8' standalone='no'?>
-<!--
-
-  Licensed to the Apache Software Foundation (ASF) under one or more
-  contributor license agreements.  See the NOTICE file distributed with
-  this work for additional information regarding copyright ownership.
-  The ASF licenses this file to You under the Apache License, Version 2.0
-  (the "License"); you may not use this file except in compliance with
-  the License.  You may obtain a copy of the License at
-
-      http://www.apache.org/licenses/LICENSE-2.0
-
-  Unless required by applicable law or agreed to in writing, software
-  distributed under the License is distributed on an "AS IS" BASIS,
-  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-  See the License for the specific language governing permissions and
-  limitations under the License.
-
--->
-<launchConfiguration type='org.eclipse.ui.externaltools.ProgramLaunchConfigurationType'>
-<booleanAttribute key='org.eclipse.debug.core.appendEnvironmentVariables' value='false'/>
-<listAttribute key='org.eclipse.debug.ui.favoriteGroups'>
-<listEntry value='org.eclipse.ui.externaltools.launchGroup'/>
-</listAttribute>
-<stringAttribute key='org.eclipse.ui.externaltools.ATTR_LAUNCH_CONFIGURATION_BUILD_SCOPE' value='${project}'/>
-<stringAttribute key='org.eclipse.ui.externaltools.ATTR_LOCATION' value='$VF2JS_HOME/js/vf2js/falconjx/bin/$MXMLC'/>
-<stringAttribute key='org.eclipse.ui.externaltools.ATTR_TOOL_ARGUMENTS' value='-fb &quot;${project_loc}&quot;'/>
-</launchConfiguration>


[08/10] git commit: [flex-asjs] [refs/heads/develop] - Updated and refactored build files.

Posted by er...@apache.org.
Updated and refactored build files.

Signed-off-by: Erik de Bruin <er...@ixsoftware.nl>


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/abcec378
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/abcec378
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/abcec378

Branch: refs/heads/develop
Commit: abcec378bb36ff67167ff052abc70810ecbc282c
Parents: 53f9a97
Author: Erik de Bruin <er...@ixsoftware.nl>
Authored: Wed Aug 6 13:22:35 2014 +0200
Committer: Erik de Bruin <er...@ixsoftware.nl>
Committed: Wed Aug 6 13:22:35 2014 +0200

----------------------------------------------------------------------
 vf2js/build.xml                                 | 103 +++++++-----
 vf2js/examples/build_example.xml                | 163 +++++--------------
 vf2js/examples/vf2js_DatabindingTest/build.xml  |  14 +-
 vf2js/examples/vf2js_SimpleTest/build.xml       |  11 --
 vf2js/frameworks/as/build.properties            |  27 ---
 vf2js/frameworks/as/build.xml                   |   8 +-
 vf2js/frameworks/as/projects/vf2js_mx/build.xml |  71 ++++----
 .../as/projects/vf2js_mx/compile-config.xml     |   2 +-
 vf2js/frameworks/as/projects/vf2js_s/build.xml  |  73 +++++----
 .../as/projects/vf2js_s/compile-config.xml      |   2 +-
 10 files changed, 182 insertions(+), 292 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/abcec378/vf2js/build.xml
----------------------------------------------------------------------
diff --git a/vf2js/build.xml b/vf2js/build.xml
index a63b75e..45e50e1 100644
--- a/vf2js/build.xml
+++ b/vf2js/build.xml
@@ -18,24 +18,16 @@
 
 -->
 <project name="vf2js" default="main" basedir=".">
-  <!--
-    - release:
-      - source
-        - examples
-        - frameworks
-          - as scripts
-          - as/projects
-          - js/src/*
-        - ide
-        - js/vf2js/falconjx/bin
-      - binary
-        - 
-    - overlay:
-      - 
-  -->
-    
+
+  <property environment="env" />
+
   <property name="flex.sdk.loc" value="${basedir}/../../flex-sdk" />
 
+  <property name="antlr.version" value="3.5.2" />
+  <property name="closure.compiler.version" value="20140625" />
+  <property name="commons-io.version" value="2.4" />
+  <property name="falconjx.version" value="0.0.2" />
+
   <!-- ==
     Setup
   === -->
@@ -56,7 +48,7 @@
 
   <target name="build.release" depends="" description="Build release artefacts" />
 
-  <target name="download.deps" depends="overlay.falconjx" description="Download VF2JS dependencies" />
+  <target name="download.deps" depends="falconjx.overlay" description="Download VF2JS dependencies" />
 
   <target name="install" depends="main,clean.sdk,overlay.sdk,build.examples" description="Overlay VF2JS on chosen (-Dflex.sdk.loc) directory" />
 
@@ -77,8 +69,9 @@
   <target name="build.examples" depends="" description="Build VF2JS examples in newly overlayed Flex SDK">
     <ant dir="${flex.sdk.loc}/examples/vf2js">
       <property name="FLEX_HOME" value="${flex.sdk.loc}" />
-      <property name="FALCONJX_HOME" value="${flex.sdk.loc}/js/vf2js/falconjx" />
       <property name="GOOG_HOME" value="${flex.sdk.loc}/js/vf2js/falconjx/lib/google/closure-library" />
+      <property name="PLAYERGLOBAL_HOME" value="${env.PLAYERGLOBAL_HOME}" />
+      <property name="playerglobal.version" value="14.0" />
     </ant>
   </target>
 
@@ -106,8 +99,7 @@
       <fileset dir="${basedir}/ide/flashbuilder/launch" />
     </copy>
     <replace file="${flex.sdk.loc}/ide/flashbuilder/launch/VF2JS (Debug and Release Build).launch">
-        <replacefilter token="$MXMLC" value="mxmlc"/>
-        <replacefilter token="$FLEX_HOME" value="${flex.sdk.loc}"/>
+        <replacefilter token="$flex_sdk_loc" value="${flex.sdk.loc}" />
     </replace>
   </target>
 
@@ -115,40 +107,63 @@
     <ant dir="${basedir}/frameworks/as" target="copy.to.sdk" />
   </target>
 
-  <target name="download.falconjx" depends="" description="Download FalconJX nightly binary">
-    <!-- apache-flex-falconjx-0.0.2-bin.tar.gz -->
+  <target name="falconjx.build" depends="" description="Build FalconJX dependencies">
+    <!-- Closure Compiler -->
+    <ant dir="${basedir}/in/closure-compiler-${closure.compiler.version}" inheritAll="false" />
   </target>
 
-  <target name="overlay.falconjx" depends="download.falconjx,unzip.falconjx" description="Overlay FalconJX artefacts on Flex SDK">
-    <!-- Falcon -->
-    <copy todir="${flex.sdk.loc}/js/vf2js/lib" overwrite="true">
-      <fileset file="${basedir}/in/apache-flex-falconjx-0.0.2-bin/compiler/generated/dist/sdk/lib/compiler.jar" />
-    </copy>
+  <target name="falconjx.download" depends="" description="Download FalconJX nightly binary and dependencies">
+    <mkdir dir="${basedir}/in" />
+    <!-- Antlr -->
+    <get src="http://search.maven.org/remotecontent?filepath=org/antlr/antlr-complete/${antlr.version}/antlr-complete-${antlr.version}.jar" dest="${basedir}/in/antlr-complete-${antlr.version}.jar" />
+    <!-- Closure Compiler -->
+    <get src="https://codeload.github.com/google/closure-compiler/zip/v${closure.compiler.version}" dest="${basedir}/in/closure-compiler-${closure.compiler.version}.zip" />
+    <!-- Closure Library -->
+    <exec executable="git" failifexecutionfails="true">
+      <arg value="clone" />
+      <arg value="https://github.com/google/closure-library" />
+      <arg value="${basedir}/in/closure-library" />
+    </exec>
+    <!-- Commons-IO -->
+    <get src="http://archive.apache.org/dist/commons/io/binaries/commons-io-${commons-io.version}-bin.tar.gz" dest="${basedir}/in/commons-io-${commons-io.version}-bin.tar.gz" />
     <!-- FalconJX -->
-    <copy todir="${flex.sdk.loc}/js/vf2js/falconjx/lib" overwrite="true">
-      <fileset file="${basedir}/in/apache-flex-falconjx-0.0.2-bin/js/lib/jsc.jar" />
-      <fileset file="${basedir}/in/apache-flex-falconjx-0.0.2-bin/js/lib/mxmlc.jar" />
-    </copy>
+    <get src="http://apacheflexbuild.cloudapp.net:8080/job/flex-falcon/lastSuccessfulBuild/artifact/out/apache-flex-falconjx-${falconjx.version}-bin.zip" dest="${basedir}/in/apache-flex-falconjx-${falconjx.version}-bin.zip" />
+  </target>
+
+  <target name="falconjx.overlay" depends="falconjx.download,falconjx.unzip,falconjx.build" description="Overlay FalconJX artefacts on Flex SDK">
     <!-- Antlr -->
     <copy tofile="${flex.sdk.loc}/js/vf2js/lib/external/antlr.jar" overwrite="true">
-      <fileset file="${basedir}/in/antlr.jar" />
-    </copy>
-    <!-- Commons-IO -->
-    <copy tofile="${flex.sdk.loc}/js/vf2js/falconjx/lib/commons-io.jar" overwrite="true">
-      <fileset file="${basedir}/in/commons-io-2.4/commons-io-2.4.jar" />
+      <fileset file="${basedir}/in/antlr-complete-${antlr.version}.jar" />
     </copy>
     <!-- Closure Compiler -->
-    <copy todir="${flex.sdk.loc}/js/vf2js/falconjx/lib/google/closure-compiler" overwrite="true">
-      <fileset dir="${basedir}/in/closure-compiler" />
+    <copy toDir="${flex.sdk.loc}/js/vf2js/falconjx/lib/google/closure-compiler" verbose="true">
+      <fileset file="${basedir}/in/closure-compiler-${closure.compiler.version}/build/compiler.jar" />
     </copy>
     <!-- Closure Library -->
     <copy todir="${flex.sdk.loc}/js/vf2js/falconjx/lib/google/closure-library" overwrite="true">
       <fileset dir="${basedir}/in/closure-library" />
     </copy>
+    <!-- Commons-IO -->
+    <copy tofile="${flex.sdk.loc}/js/vf2js/falconjx/lib/commons-io.jar" overwrite="true">
+      <fileset file="${basedir}/in/commons-io-${commons-io.version}/commons-io-${commons-io.version}.jar" />
+    </copy>
+    <!-- FalconJX -->
+    <copy todir="${flex.sdk.loc}/js/vf2js/lib" overwrite="true">
+      <fileset file="${basedir}/in/apache-flex-falconjx-${falconjx.version}-bin/compiler/generated/dist/sdk/lib/compiler.jar" />
+    </copy>
+    <copy todir="${flex.sdk.loc}/js/vf2js/falconjx/lib" overwrite="true">
+      <fileset file="${basedir}/in/apache-flex-falconjx-${falconjx.version}-bin/js/lib/jsc.jar" />
+      <fileset file="${basedir}/in/apache-flex-falconjx-${falconjx.version}-bin/js/lib/mxmlc.jar" />
+    </copy>
   </target>
 
-  <target name="unzip.falconjx" depends="" description="Unzip FalconJX artefact">
-    
+  <target name="falconjx.unzip" depends="" description="Unzip FalconJX artefacts and dependencies">
+    <!-- Closure Compiler -->
+    <unzip src="${basedir}/in/closure-compiler-${closure.compiler.version}.zip" dest="${basedir}/in" />
+    <!-- Commons-IO -->
+    <untar src="${basedir}/in/commons-io-${commons-io.version}-bin.tar.gz" dest="${basedir}/in" compression="gzip" />
+    <!-- FalconJX -->
+    <unzip src="${basedir}/in/apache-flex-falconjx-${falconjx.version}-bin.zip" dest="${basedir}/in/apache-flex-falconjx-${falconjx.version}-bin" />
   </target>
 
 
@@ -158,7 +173,9 @@
   ============= -->
 
   <target name="clean" depends="" description="Cleans all possible 'garbage'">
-    <ant dir="${basedir}/frameworks/as" target="clean"/>
+    <delete dir="${basedir}/in" />
+
+    <ant dir="${basedir}/frameworks/as" target="clean" />
   </target>
 
   <target name="clean.sdk" depends="" description="Cleans previous VF2JS overlay">
@@ -173,10 +190,10 @@
     </delete>
   </target>
 
-  <target name="chmod" unless="isWindows" description="Make mxmlc script executable">
+  <target name="chmod" unless="isWindows" description="Make mxmlc script executable on *nix">
       <exec executable="chmod" dir="${flex.sdk.loc}">
           <arg value="+x" />
-          <arg value="${flex.sdk.loc}/js/vf2js/falconjx/bin/mxmlc"/>
+          <arg value="${flex.sdk.loc}/js/vf2js/falconjx/bin/mxmlc" />
       </exec>
   </target>
   

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/abcec378/vf2js/examples/build_example.xml
----------------------------------------------------------------------
diff --git a/vf2js/examples/build_example.xml b/vf2js/examples/build_example.xml
index 31051c4..6c1325a 100644
--- a/vf2js/examples/build_example.xml
+++ b/vf2js/examples/build_example.xml
@@ -19,149 +19,68 @@
 -->
 <project name="build_example" basedir=".">
 
-  <property name="FLEXJS_HOME" location="../.."/>
+  <property environment="env" />
+  <property name="FLEX_HOME" value="${env.FLEX_HOME}" /> <!-- must exist for compc task -->
+  <property name="GOOG_HOME" value="${env.GOOG_HOME}" />
+  <property name="PLAYERGLOBAL_HOME" value="${env.PLAYERGLOBAL_HOME}" />
+  <property name="playerglobal.version" value="14.0" />
 
-  <condition property="local.d32" value="-d32">
-      <and>
-          <os family="mac"/>
-          <matches pattern="1.6.*" string="${java.version}"/>
-          <equals arg1="${sun.arch.data.model}" arg2="64"/>
-          <equals arg1="${os.arch}" arg2="x86_64"/>
-      </and>
-  </condition>
-
-  <condition property="isMac">
-      <os family="mac"/>
-  </condition>
-  <condition property="isWindows">
-      <os family="windows" />
-  </condition>   
-  <condition property="isLinux">
-      <and>
-        <os family="unix"/>    
-        <not>
-          <os family="mac"/>    
-        </not>
-      </and>
-  </condition>  
+  <property name="falconjx.home" value="${FLEX_HOME}/js/vf2js/falconjx" />
 
-  <property file="${FLEXJS_HOME}/env.properties"/>
-  <property environment="env"/>
-  <property file="${FLEXJS_HOME}/build.properties"/>
+  <property name="" location="" />
 
   <path id="lib.path">
-    <fileset dir="${FALCON_HOME}/lib" includes="falcon-flexTasks.jar"/>
+    <fileset dir="${FLEX_HOME}/ant/lib" includes="flexTasks.jar" />
   </path>
 
+  <condition property="local.d32" value="-d32" else="">
+      <and>
+          <os family="mac" />
+          <matches pattern="1.6.*" string="${java.version}" />
+          <equals arg1="${sun.arch.data.model}" arg2="64" />
+          <equals arg1="${os.arch}" arg2="x86_64" />
+      </and>
+  </condition>
+
   <target name="compile_vf2js" description="Compiles ${example} (VF2JS style)">
-    <echo message="Compiling ${example}.swf"/>
-    <echo message="FLEX_HOME: ${FLEX_HOME}"/>
-    <echo message="FALCON_HOME: ${FALCON_HOME}"/>
-    <taskdef resource="flexTasks.tasks" classpathref="lib.path"/>
+    <echo message="Compiling ${example}.swf" />
+    <echo message="FLEX_HOME: ${FLEX_HOME}" />
+    <taskdef resource="flexTasks.tasks" classpathref="lib.path" />
     <mxmlc fork="true" file="${basedir}/src/${example}.mxml" output="${basedir}/bin-debug/${example}.swf">
-      <jvmarg line="${mxmlc.jvm.args}"/>
-      <arg value="+flexlib=${basedir}/frameworks"/>
-      <arg value="-debug"/>
-      <arg value="+playerglobal.version=${playerglobal.version}"/>
-      <arg value="+env.PLAYERGLOBAL_HOME=${env.PLAYERGLOBAL_HOME}"/>
+      <jvmarg line="${local.d32} -Xms64m -Xmx384m -ea -Dapple.awt.UIElement=true" />
+      <arg value="+flexlib=${FLEX_HOME}/frameworks" />
+      <arg value="-debug" />
+      <arg value="+playerglobal.version=${playerglobal.version}" />
+      <arg value="+env.PLAYERGLOBAL_HOME=${PLAYERGLOBAL_HOME}" />
     </mxmlc>
-    <html-wrapper height="300" width="400" bgcolor="#ffffff" name="${example}" versionmajor="11" versionminor="1" versionrevision="0" output="${basedir}/bin-debug"/>
-    <copy todir="${basedir}/bin-debug">
-      <fileset dir="${basedir}/src">
-        <include name="*.png"/>
-        <include name="*.jpg"/>
-      </fileset>
-    </copy>
   </target>
 
   <target name="compilejs_vf2js" description="Cross-compiles ${example} (VF2JS style)">
-    <echo message="Compiling ${example}.js"/>
-    <echo message="FLEX_HOME: ${FLEX_HOME}"/>
-    <echo message="FLEXJS_HOME: ${FLEXJS_HOME}"/>
-    <echo message="FALCONJX_HOME: ${FALCONJX_HOME}"/>
-    <echo message="GOOG_HOME: ${GOOG_HOME}"/>
-    <java jar="${FALCONJX_HOME}/lib/mxmlc.jar" resultProperty="errorCode" fork="true">
-      <jvmarg line="${mxmlc.jvm.args}"/>
-      <arg value="+playerglobal.version=${playerglobal.version}"/>
-      <arg value="+env.PLAYERGLOBAL_HOME=${env.PLAYERGLOBAL_HOME}"/>
-      <arg value="-load-config=${FLEX_HOME}/frameworks/flex-config.xml"/>
-      <arg value="-js-output-type=VF2JS"/>
-      <arg value="-closure-lib=${GOOG_HOME}"/>
-      <arg value="-sdk-js-lib=${FLEXJS_HOME}/vf2js/frameworks/js/src"/>
-      <arg value="-output=${basedir}"/>
-      <arg value="${basedir}/src/${example}.mxml"/>
+    <echo message="Compiling ${example}.js" />
+    <echo message="falconjx.home: ${falconjx.home}" />
+    <echo message="FLEX_HOME: ${FLEX_HOME}" />
+    <echo message="GOOG_HOME: ${GOOG_HOME}" />
+    <java jar="${falconjx.home}/lib/mxmlc.jar" resultProperty="errorCode" fork="true">
+      <jvmarg line="${local.d32} -Xms64m -Xmx384m -ea -Dapple.awt.UIElement=true" />
+      <arg value="+playerglobal.version=${playerglobal.version}" />
+      <arg value="+env.PLAYERGLOBAL_HOME=${PLAYERGLOBAL_HOME}" />
+      <arg value="-load-config=${FLEX_HOME}/frameworks/flex-config.xml" />
+      <arg value="-js-output-type=VF2JS" />
+      <arg value="-closure-lib=${GOOG_HOME}" />
+      <arg value="-sdk-js-lib=${FLEX_HOME}/frameworks/js/vf2js/src" />
+      <arg value="-output=${basedir}" />
+      <arg value="${basedir}/src/${example}.mxml" />
     </java>
     <fail>
       <condition>
         <not>
           <or>
-            <equals arg1="${errorCode}" arg2="0"/>
-            <equals arg1="${errorCode}" arg2="2"/>
+            <equals arg1="${errorCode}" arg2="0" />
+            <equals arg1="${errorCode}" arg2="2" />
           </or>
         </not>
       </condition>
     </fail>
   </target>
 
-  <macrodef name="html-wrapper">
-    <attribute name="width"/>
-    <attribute name="height"/>
-    <attribute name="bgcolor"/>
-    <attribute name="name"/>
-    <attribute name="versionmajor"/>
-    <attribute name="versionminor"/>
-    <attribute name="versionrevision"/>
-    <attribute name="output"/>
-    <sequential>
-      <copy toFile="@{output}/@{name}.html" file="${FLEXJS_HOME}/templates/swfobject/index.template.html"/>
-      <copy toDir="@{output}/history">
-        <fileset dir="${FLEXJS_HOME}/templates/swfobject/history">
-          <include name="**"/>
-        </fileset>
-      </copy>
-      <copy toDir="@{output}">
-        <fileset dir="${FLEXJS_HOME}/templates/swfobject">
-          <include name="*"/>
-          <exclude name="index.template.html"/>
-        </fileset>
-      </copy>
-      <replace file="@{output}/@{name}.html">
-        <replacefilter token="$${title}" value="@{name}"/>
-      </replace>
-      <replace file="@{output}/@{name}.html">
-        <replacefilter token="$${bgcolor}" value="@{bgcolor}"/>
-      </replace>
-      <replace file="@{output}/@{name}.html">
-        <replacefilter token="$${useBrowserHistory}" value="--"/>
-      </replace>
-      <replace file="@{output}/@{name}.html">
-        <replacefilter token="$${version_major}" value="@{versionmajor}"/>
-      </replace>
-      <replace file="@{output}/@{name}.html">
-        <replacefilter token="$${version_minor}" value="@{versionminor}"/>
-      </replace>
-      <replace file="@{output}/@{name}.html">
-        <replacefilter token="$${version_revision}" value="@{versionrevision}"/>
-      </replace>
-      <replace file="@{output}/@{name}.html">
-        <replacefilter token="$${expressInstallSwf}" value="expressInstall.swf"/>
-      </replace>
-      <replace file="@{output}/@{name}.html">
-        <replacefilter token="$${expressInstallSwf}" value="expressInstall.swf"/>
-      </replace>
-      <replace file="@{output}/@{name}.html">
-        <replacefilter token="$${width}" value="@{width}"/>
-      </replace>
-      <replace file="@{output}/@{name}.html">
-        <replacefilter token="$${height}" value="@{height}"/>
-      </replace>
-      <replace file="@{output}/@{name}.html">
-        <replacefilter token="$${application}" value="@{name}"/>
-      </replace>
-      <replace file="@{output}/@{name}.html">
-        <replacefilter token="$${swf}" value="@{name}"/>
-      </replace>
-    </sequential>
-  </macrodef>
-
 </project>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/abcec378/vf2js/examples/vf2js_DatabindingTest/build.xml
----------------------------------------------------------------------
diff --git a/vf2js/examples/vf2js_DatabindingTest/build.xml b/vf2js/examples/vf2js_DatabindingTest/build.xml
index 022f8ff..75f60cc 100644
--- a/vf2js/examples/vf2js_DatabindingTest/build.xml
+++ b/vf2js/examples/vf2js_DatabindingTest/build.xml
@@ -21,20 +21,10 @@
 
   <property name="example" value="vf2js_DataBindingTest" />
 
-  <property environment="env" />
-
-  <property name="FLEXJS_HOME" location="../../.." />
-  <property file="${FLEXJS_HOME}/env.properties" />
-  <property file="${FLEXJS_HOME}/build.properties" />
-
-  <property name="FLEX_HOME" value="${env.FLEX_HOME}" />
-  <property name="FALCON_HOME" value="${env.FALCON_HOME}" />
-  <property name="FALCONJX_HOME" value="${env.FALCONJX_HOME}" />
-  <property name="GOOG_HOME" value="${env.GOOG_HOME}" />
-
   <include file="${basedir}/../build_example.xml"/>
 
-  <target name="main" depends="clean,build_example.compile_vf2js,build_example.compilejs_vf2js" description="Clean build of ${example}" />
+  <!-- target name="main" depends="clean,build_example.compile_vf2js,build_example.compilejs_vf2js" description="Clean build of ${example}" / -->
+  <target name="main" depends="clean,build_example.compile_vf2js" description="Clean build of ${example}" />
 
   <target name="clean">
     <delete dir="${basedir}/bin" failonerror="false" />

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/abcec378/vf2js/examples/vf2js_SimpleTest/build.xml
----------------------------------------------------------------------
diff --git a/vf2js/examples/vf2js_SimpleTest/build.xml b/vf2js/examples/vf2js_SimpleTest/build.xml
index 432d310..bbd979e 100644
--- a/vf2js/examples/vf2js_SimpleTest/build.xml
+++ b/vf2js/examples/vf2js_SimpleTest/build.xml
@@ -21,17 +21,6 @@
 
   <property name="example" value="vf2js_SimpleTest" />
 
-  <property environment="env" />
-
-  <property name="FLEXJS_HOME" location="../../.." />
-  <property file="${FLEXJS_HOME}/env.properties" />
-  <property file="${FLEXJS_HOME}/build.properties" />
-
-  <property name="FLEX_HOME" value="${env.FLEX_HOME}" />
-  <property name="FALCON_HOME" value="${env.FALCON_HOME}" />
-  <property name="FALCONJX_HOME" value="${env.FALCONJX_HOME}" />
-  <property name="GOOG_HOME" value="${env.GOOG_HOME}" />
-
   <include file="${basedir}/../build_example.xml"/>
 
   <target name="main" depends="clean,build_example.compile_vf2js,build_example.compilejs_vf2js" description="Clean build of ${example}" />

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/abcec378/vf2js/frameworks/as/build.properties
----------------------------------------------------------------------
diff --git a/vf2js/frameworks/as/build.properties b/vf2js/frameworks/as/build.properties
deleted file mode 100644
index 222c87c..0000000
--- a/vf2js/frameworks/as/build.properties
+++ /dev/null
@@ -1,27 +0,0 @@
-################################################################################
-##
-##  Licensed to the Apache Software Foundation (ASF) under one or more
-##  contributor license agreements.  See the NOTICE file distributed with
-##  this work for additional information regarding copyright ownership.
-##  The ASF licenses this file to You under the Apache License, Version 2.0
-##  (the "License"); you may not use this file except in compliance with
-##  the License.  You may obtain a copy of the License at
-##
-##      http://www.apache.org/licenses/LICENSE-2.0
-##
-##  Unless required by applicable law or agreed to in writing, software
-##  distributed under the License is distributed on an "AS IS" BASIS,
-##  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-##  See the License for the specific language governing permissions and
-##  limitations under the License.
-##
-################################################################################
-
-# Flash player version for which player global swc to use
-playerglobal.version=14.0
-
-# JVM options for <compc> and <mxmlc> tasks
-#   -Xms64m: start out with a 64 MB heap
-#   -Xmx384m: allow the heap to grow to 384 MB
-#   -ea: enable Java assertions
-jvm.args=-Xms64m -Xmx384m -ea -Dapple.awt.UIElement=true

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/abcec378/vf2js/frameworks/as/build.xml
----------------------------------------------------------------------
diff --git a/vf2js/frameworks/as/build.xml b/vf2js/frameworks/as/build.xml
index b6a6869..e45d69d 100644
--- a/vf2js/frameworks/as/build.xml
+++ b/vf2js/frameworks/as/build.xml
@@ -19,7 +19,7 @@
 -->
 <project name="vf2js-frameworks-as" default="main" basedir=".">
 
-  <property environment="env"/>
+  <property name="flex.sdk.loc" value="${basedir}/.." />
 
   <target name="main" depends="clean,compile" description="Clean build of all SWCs" />
 
@@ -43,9 +43,9 @@
     <ant dir="${basedir}/projects/vf2js_s" />
   </target>
 
-  <target name="copy-to-sdk" description="Copy SWCs to SDK">
-    <copy todir="${env.FLEX_HOME}/frameworks/libs">
-      <fileset dir="${env.VF2JS_HOME}/frameworks/as/libs" />
+  <target name="copy.to.sdk" description="Copy SWCs to SDK">
+    <copy todir="${flex.sdk.loc}/frameworks/libs">
+      <fileset dir="./libs" />
     </copy>
   </target>
 

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/abcec378/vf2js/frameworks/as/projects/vf2js_mx/build.xml
----------------------------------------------------------------------
diff --git a/vf2js/frameworks/as/projects/vf2js_mx/build.xml b/vf2js/frameworks/as/projects/vf2js_mx/build.xml
index 897b527..c50a59f 100644
--- a/vf2js/frameworks/as/projects/vf2js_mx/build.xml
+++ b/vf2js/frameworks/as/projects/vf2js_mx/build.xml
@@ -17,48 +17,49 @@
   limitations under the License.
 
 -->
-
-
 <project name="vf2js_mx" default="main" basedir=".">
-    
-    <property file="../../build.properties"/>
 
-    <property environment="env"/>
-    <property name="FALCON_HOME" value="${env.FALCON_HOME}"/>
-    <property name="FLEX_HOME" value="${env.FLEX_HOME}"/>
-    <property name="VF2JS_HOME" location="${env.VF2JS_HOME}"/>
+  <property environment="env" />
+  <property name="FLEX_HOME" value="${env.FLEX_HOME}" /> <!-- must exist for compc task -->
+  <property name="PLAYERGLOBAL_HOME" value="${env.PLAYERGLOBAL_HOME}" />
+  <property name="playerglobal.version" value="14.0" />
 
-    <target name="main" depends="clean,compile" description="Clean build of vf2js_mx.swc">
-    </target>
+  <property name="vf2js.home" location="${basedir}/../../../.." />
 
-    <target name="clean">
-        <delete failonerror="false">
-            <fileset dir="${VF2JS_HOME}/frameworks/as/libs">
-                <include name="vf2js_mx.swc"/>
-            </fileset>
-        </delete>
-    </target>
-    
-    <path id="lib.path">
-      <fileset dir="${FALCON_HOME}/lib" includes="falcon-flexTasks.jar"/>
-    </path>
+  <target name="main" depends="clean,compile" description="Clean build of vf2js_mx.swc" />
 
-    <target name="compile" description="Compiles vf2js_mx.swc">
-        <echo message="Compiling '${VF2JS_HOME}/frameworks/as/libs/vf2js_mx.swc'"/>
+  <path id="lib.path">
+    <fileset dir="${FLEX_HOME}/ant/lib" includes="flexTasks.jar" />
+  </path>
 
-        <echo message="FALCON_HOME: ${FALCON_HOME}"/>
-        <echo message="FLEX_HOME: ${FLEX_HOME}"/>
-        <echo message="VF2JS_HOME: ${VF2JS_HOME}"/>
+  <condition property="local.d32" value="-d32" else="">
+    <and>
+      <os family="mac" />
+      <matches pattern="1.6.*" string="${java.version}" />
+      <equals arg1="${sun.arch.data.model}" arg2="64" />
+      <equals arg1="${os.arch}" arg2="x86_64" />
+    </and>
+  </condition>
 
-        <taskdef resource="flexTasks.tasks" classpathref="lib.path"/>
+  <target name="compile" description="Compiles vf2js_mx.swc">
+    <echo message="Compiling '${vf2js.home}/frameworks/as/libs/vf2js_mx.swc'" />
+    <echo message="FLEX_HOME: ${FLEX_HOME}" />
+    <echo message="vf2js.home: ${vf2js.home}" />
+    <taskdef resource="flexTasks.tasks" classpathref="lib.path" />
+    <compc fork="true" output="${vf2js.home}/frameworks/as/libs/vf2js_mx.swc">
+      <jvmarg line="${local.d32} -Xms64m -Xmx384m -ea -Dapple.awt.UIElement=true" />
+      <load-config filename="compile-config.xml" />
+      <arg value="+playerglobal.home=${PLAYERGLOBAL_HOME}" />
+      <arg value="+playerglobal.version=${playerglobal.version}" />
+    </compc>
+  </target>
 
-        <compc fork="true" output="${VF2JS_HOME}/frameworks/as/libs/vf2js_mx.swc">
-            <jvmarg line="${jvm.args}"/>
-            <load-config filename="compile-config.xml" />
-            <arg value="+PLAYERGLOBAL_HOME=${env.PLAYERGLOBAL_HOME}" />
-            <arg value="+playerglobal.version=${playerglobal.version}" />
-            <arg value="+FLEX_HOME=${FLEX_HOME}" />
-        </compc>
-    </target>
+  <target name="clean">
+    <delete failonerror="false">
+      <fileset dir="${vf2js.home}/frameworks/as/libs">
+        <include name="vf2js_mx.swc" />
+      </fileset>
+    </delete>
+  </target>
 
 </project>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/abcec378/vf2js/frameworks/as/projects/vf2js_mx/compile-config.xml
----------------------------------------------------------------------
diff --git a/vf2js/frameworks/as/projects/vf2js_mx/compile-config.xml b/vf2js/frameworks/as/projects/vf2js_mx/compile-config.xml
index b1eb49a..4269c8d 100644
--- a/vf2js/frameworks/as/projects/vf2js_mx/compile-config.xml
+++ b/vf2js/frameworks/as/projects/vf2js_mx/compile-config.xml
@@ -20,7 +20,7 @@
 <flex-config>
   <compiler>
     <external-library-path>
-      <path-element>${PLAYERGLOBAL_HOME}/${playerglobal.version}/playerglobal.swc</path-element>
+      <path-element>${playerglobal.home}/${playerglobal.version}/playerglobal.swc</path-element>
     </external-library-path>
     <namespaces>
       <namespace>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/abcec378/vf2js/frameworks/as/projects/vf2js_s/build.xml
----------------------------------------------------------------------
diff --git a/vf2js/frameworks/as/projects/vf2js_s/build.xml b/vf2js/frameworks/as/projects/vf2js_s/build.xml
index a84a0af..6687042 100644
--- a/vf2js/frameworks/as/projects/vf2js_s/build.xml
+++ b/vf2js/frameworks/as/projects/vf2js_s/build.xml
@@ -17,48 +17,49 @@
   limitations under the License.
 
 -->
+<project name="vf2js_mx" default="main" basedir=".">
 
+  <property environment="env" />
+  <property name="FLEX_HOME" value="${env.FLEX_HOME}" /> <!-- must exist for compc task -->
+  <property name="PLAYERGLOBAL_HOME" value="${env.PLAYERGLOBAL_HOME}" />
+  <property name="playerglobal.version" value="14.0" />
 
-<project name="vf2js_s" default="main" basedir=".">
-    
-    <property file="../../build.properties"/>
+  <property name="vf2js.home" location="${basedir}/../../../.." />
 
-    <property environment="env"/>
-    <property name="FALCON_HOME" value="${env.FALCON_HOME}"/>
-    <property name="FLEX_HOME" value="${env.FLEX_HOME}"/>
-    <property name="VF2JS_HOME" location="${env.VF2JS_HOME}"/>
+  <target name="main" depends="clean,compile" description="Clean build of vf2js_s.swc" />
 
-    <target name="main" depends="clean,compile" description="Clean build of vf2js_s.swc">
-    </target>
+  <path id="lib.path">
+    <fileset dir="${FLEX_HOME}/ant/lib" includes="flexTasks.jar" />
+  </path>
 
-    <target name="clean">
-        <delete failonerror="false">
-            <fileset dir="${VF2JS_HOME}/frameworks/as/libs">
-                <include name="vf2js_s.swc"/>
-            </fileset>
-        </delete>
-    </target>
-    
-    <path id="lib.path">
-      <fileset dir="${FALCON_HOME}/lib" includes="falcon-flexTasks.jar"/>
-    </path>
+  <condition property="local.d32" value="-d32" else="">
+    <and>
+      <os family="mac" />
+      <matches pattern="1.6.*" string="${java.version}" />
+      <equals arg1="${sun.arch.data.model}" arg2="64" />
+      <equals arg1="${os.arch}" arg2="x86_64" />
+    </and>
+  </condition>
 
-    <target name="compile" description="Compiles vf2js_s.swc">
-        <echo message="Compiling '${VF2JS_HOME}/frameworks/as/libs/vf2js_s.swc'"/>
+  <target name="compile" description="Compiles vf2js_s.swc">
+    <echo message="Compiling '${vf2js.home}/frameworks/as/libs/vf2js_s.swc'" />
+    <echo message="FLEX_HOME: ${FLEX_HOME}" />
+    <echo message="vf2js.home: ${vf2js.home}" />
+    <taskdef resource="flexTasks.tasks" classpathref="lib.path" />
+    <compc fork="true" output="${vf2js.home}/frameworks/as/libs/vf2js_s.swc">
+      <jvmarg line="${local.d32} -Xms64m -Xmx384m -ea -Dapple.awt.UIElement=true" />
+      <load-config filename="compile-config.xml" />
+      <arg value="+playerglobal.home=${PLAYERGLOBAL_HOME}" />
+      <arg value="+playerglobal.version=${playerglobal.version}" />
+    </compc>
+  </target>
 
-        <echo message="FALCON_HOME: ${FALCON_HOME}"/>
-        <echo message="FLEX_HOME: ${FLEX_HOME}"/>
-        <echo message="VF2JS_HOME: ${VF2JS_HOME}"/>
-
-        <taskdef resource="flexTasks.tasks" classpathref="lib.path"/>
-
-        <compc fork="true" output="${VF2JS_HOME}/frameworks/as/libs/vf2js_s.swc">
-            <jvmarg line="${jvm.args}"/>
-            <load-config filename="compile-config.xml" />
-            <arg value="+PLAYERGLOBAL_HOME=${env.PLAYERGLOBAL_HOME}" />
-            <arg value="+playerglobal.version=${playerglobal.version}" />
-            <arg value="+FLEX_HOME=${FLEX_HOME}" />
-        </compc>
-    </target>
+  <target name="clean">
+    <delete failonerror="false">
+      <fileset dir="${vf2js.home}/frameworks/as/libs">
+        <include name="vf2js_s.swc" />
+      </fileset>
+    </delete>
+  </target>
 
 </project>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/abcec378/vf2js/frameworks/as/projects/vf2js_s/compile-config.xml
----------------------------------------------------------------------
diff --git a/vf2js/frameworks/as/projects/vf2js_s/compile-config.xml b/vf2js/frameworks/as/projects/vf2js_s/compile-config.xml
index 22f63e2..2c6e4e2 100644
--- a/vf2js/frameworks/as/projects/vf2js_s/compile-config.xml
+++ b/vf2js/frameworks/as/projects/vf2js_s/compile-config.xml
@@ -20,7 +20,7 @@
 <flex-config>
   <compiler>
     <external-library-path>
-      <path-element>${PLAYERGLOBAL_HOME}/${playerglobal.version}/playerglobal.swc</path-element>
+      <path-element>${playerglobal.home}/${playerglobal.version}/playerglobal.swc</path-element>
     </external-library-path>
     <namespaces>
       <namespace>


[03/10] git commit: [flex-asjs] [refs/heads/develop] - A bit more structure...

Posted by er...@apache.org.
A bit more structure...

Signed-off-by: Erik de Bruin <er...@ixsoftware.nl>


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/5f1ebcfc
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/5f1ebcfc
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/5f1ebcfc

Branch: refs/heads/develop
Commit: 5f1ebcfca709f8b1b49d891d96f27006bbad73d6
Parents: 93ced8d
Author: Erik de Bruin <er...@ixsoftware.nl>
Authored: Tue Aug 5 15:16:32 2014 +0200
Committer: Erik de Bruin <er...@ixsoftware.nl>
Committed: Tue Aug 5 15:16:32 2014 +0200

----------------------------------------------------------------------
 vf2js/README | 42 +++++++++++++++++++++++++++++++++++++++---
 1 file changed, 39 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5f1ebcfc/vf2js/README
----------------------------------------------------------------------
diff --git a/vf2js/README b/vf2js/README
index 06aaaeb..0096d23 100644
--- a/vf2js/README
+++ b/vf2js/README
@@ -1,7 +1,43 @@
-Vanilla Flex to Javascript
+Vanilla Flex to Javascript (VF2JS)
+==================================
+
+
+
+Install prerequisits
+____________________
+
+- a clean, fully functional Flex SDK
+- environment variables:
+  - FLEX_HOME
+
+
+
+Using the source distribution
+_____________________________
+
+- get flex-falcon
+- build using 'ant wipe-all all'
+- point env var to 'flex-falcon'
+
+
+
+Using the binary distribution
+_____________________________
+
+- install using ant install -Dflex.sdk.loc=[]
+
+(put various licenses in proper places)
+
+
+
+Publishing with VF2JS
+_____________________
+
+- import launch config
+- 
+
+
 
-Create VF2JS SDK
-1. Take any Flex SDK install
 2. add FalconJX
   - download binary release
   - extract


[10/10] git commit: [flex-asjs] [refs/heads/develop] - It's slowly starting to look like something that might be useful...

Posted by er...@apache.org.
It's slowly starting to look like something that might be useful...

Signed-off-by: Erik de Bruin <er...@ixsoftware.nl>


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/9f50bab0
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/9f50bab0
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/9f50bab0

Branch: refs/heads/develop
Commit: 9f50bab0d5e0bda51da3c7c6f17bb955cedb44cd
Parents: 6c2ecb4
Author: Erik de Bruin <er...@ixsoftware.nl>
Authored: Wed Aug 6 13:24:21 2014 +0200
Committer: Erik de Bruin <er...@ixsoftware.nl>
Committed: Wed Aug 6 13:24:21 2014 +0200

----------------------------------------------------------------------
 vf2js/README | 33 ++++++---------------------------
 1 file changed, 6 insertions(+), 27 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/9f50bab0/vf2js/README
----------------------------------------------------------------------
diff --git a/vf2js/README b/vf2js/README
index 0096d23..ba72e51 100644
--- a/vf2js/README
+++ b/vf2js/README
@@ -6,27 +6,17 @@ Vanilla Flex to Javascript (VF2JS)
 Install prerequisits
 ____________________
 
-- a clean, fully functional Flex SDK
+- ant and git
+- a release version of the Flex SDK (use Installer) in directory [sdk.directory]
 - environment variables:
-  - FLEX_HOME
+  - PLAYERGLOBAL_HOME (point to '[sdk.directory]/frameworks/libs/player')
 
 
 
 Using the source distribution
 _____________________________
 
-- get flex-falcon
-- build using 'ant wipe-all all'
-- point env var to 'flex-falcon'
-
-
-
-Using the binary distribution
-_____________________________
-
-- install using ant install -Dflex.sdk.loc=[]
-
-(put various licenses in proper places)
+- ant install -Dflex.sdk.loc="[sdk.directory]"
 
 
 
@@ -34,21 +24,10 @@ Publishing with VF2JS
 _____________________
 
 - import launch config
-- 
-
+- open Flex project, select SDK with overlay
+- choose 'Run/External Tool/VF2JS (Debug and Release Build)'
 
 
-2. add FalconJX
-  - download binary release
-  - extract
-  - copy '/js/lib' to '/js/vf2js/falconjx/lib'
-  - copy '/compiler/generated/dist/sdk/lib' to '/js/vf2js/lib'
-3. add VF2JS
-  - download xxx
-  - copy '' to '' # SWCs
-  - copy '' to '' # JS framework
-  - copy '' to '' # lauch config
-    - replace tokens in launch config
 
 ToDo:
 - add builds to build machine (for nightlies)


[06/10] git commit: [flex-asjs] [refs/heads/develop] - Forgot to include the 'mx' target.

Posted by er...@apache.org.
Forgot to include the 'mx' target.

Signed-off-by: Erik de Bruin <er...@ixsoftware.nl>


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/37323f4b
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/37323f4b
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/37323f4b

Branch: refs/heads/develop
Commit: 37323f4bfc076a236f4a8d5e3ee8f942293c8a45
Parents: 0b812b3
Author: Erik de Bruin <er...@ixsoftware.nl>
Authored: Tue Aug 5 15:17:39 2014 +0200
Committer: Erik de Bruin <er...@ixsoftware.nl>
Committed: Tue Aug 5 15:17:39 2014 +0200

----------------------------------------------------------------------
 vf2js/frameworks/as/build.xml | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/37323f4b/vf2js/frameworks/as/build.xml
----------------------------------------------------------------------
diff --git a/vf2js/frameworks/as/build.xml b/vf2js/frameworks/as/build.xml
index 84cb8f6..b6a6869 100644
--- a/vf2js/frameworks/as/build.xml
+++ b/vf2js/frameworks/as/build.xml
@@ -29,6 +29,7 @@
   </target>
 
   <target name="clean" description="Cleans all artefacts">
+    <ant dir="${basedir}/projects/vf2js_mx" target="clean" />
     <ant dir="${basedir}/projects/vf2js_s" target="clean" />
     
     <delete dir="${basedir}/libs" />


[05/10] git commit: [flex-asjs] [refs/heads/develop] - Combined build and install script - initial commit.

Posted by er...@apache.org.
Combined build and install script - initial commit.

Signed-off-by: Erik de Bruin <er...@ixsoftware.nl>


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/0b812b3f
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/0b812b3f
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/0b812b3f

Branch: refs/heads/develop
Commit: 0b812b3fbe4796fc0bd315975d2ab90ca6caec3b
Parents: bed53a6
Author: Erik de Bruin <er...@ixsoftware.nl>
Authored: Tue Aug 5 15:17:19 2014 +0200
Committer: Erik de Bruin <er...@ixsoftware.nl>
Committed: Tue Aug 5 15:17:19 2014 +0200

----------------------------------------------------------------------
 vf2js/build.xml | 1613 ++------------------------------------------------
 1 file changed, 37 insertions(+), 1576 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/0b812b3f/vf2js/build.xml
----------------------------------------------------------------------
diff --git a/vf2js/build.xml b/vf2js/build.xml
index 740a9ee..9daa161 100644
--- a/vf2js/build.xml
+++ b/vf2js/build.xml
@@ -17,1594 +17,55 @@
   limitations under the License.
 
 -->
-
-<project name="asjs" default="main" basedir=".">
-
-    <property name="FLEXJS_HOME" location="${basedir}"/>
-    
-    <!-- Required for OSX 10.6 / Snow Leopard Performance. -->
-    <!-- Java 7 on Mac requires OSX 10.7.3 or higher and is 64-bit only -->
-    <!-- local.d32 is set/used in build.properties so this needs to be done first. -->
-    <condition property="local.d32" value="-d32">
-        <and>
-            <os family="windows"/>
-            <equals arg1="${sun.arch.data.model}" arg2="64"/>
-            <equals arg1="${os.arch}" arg2="x86_64"/>
-            <equals arg1="${ant.java.version}" arg2="1.6"/>
-        </and>
-    </condition>
-
-    <property file="${FLEXJS_HOME}/env.properties"/>
-    <property environment="env"/>
-    <property file="${FLEXJS_HOME}/local.properties"/>
-    <property file="${FLEXJS_HOME}/build.properties"/>
-
-    <property name="debug" value="true"/>
-    <property name="strict" value="true"/>
-    <property name="javac.src" value="1.5"/>
-    
-    <property name="kit.prefix" value="apache-flex-flexjs-${release.version}"/>
-    <property name="source.kit" value="${kit.prefix}-src"/>
-    <property name="binary.kit" value="${kit.prefix}-bin"/>
-      
-    <!-- 
-        Optional jars but should be in place for a real release build.
-        
-        For <grep> put AntelopeTasks_*.jar in this path.
-        See version-update.
-
-        For <rat> apache-rat-0.8.jar and apache-rat-tasks-0.8.jar should be in classpath.
-        See rat-check.
-    -->
-    <path id="anttask.classpath">
-        <fileset dir="${env.ANT_HOME}/lib">
-           <include name="**/AntelopeTasks_*.jar"/>
-           <include name="**/apache-rat*.jar"/>
-        </fileset>
-        <fileset dir="${user.home}">
-           <include name=".ant/lib/**/AntelopeTasks_*.jar"/>
-           <include name=".ant/lib/**/apache-rat*.jar"/>
-        </fileset>
-    </path>
-    
-    <!--
-        Notes: If you're running the main target, then there is no need to call clean first.
-        Each of the main targets for the modules will call clean themselves before proceeding.
-    -->
-
-    <target name="main" depends="prebuild,frameworks-as,frameworks-js,post-build" description="Full build">
-        <tstamp>
-        	<format property="build.datetime" pattern="MM/dd/yyyy hh:mm:ss aa" />
-        </tstamp>
-        <echo>ant main target completed on ${build.datetime}</echo>
-    </target>
-
-    <target name="main-jenkins" depends="dump-config,prebuild,frameworks-as,frameworks-js-jenkins,post-build" description="Full build">
-        <tstamp>
-        	<format property="build.datetime" pattern="MM/dd/yyyy hh:mm:ss aa" />
-        </tstamp>
-        <echo>ant main target completed on ${build.datetime}</echo>
-    </target>
-
-    <target name="dump-config" >
-        <property name="is.jenkins" value="true" />
-        <echo>env.USERNAME is: ${env.USERNAME}</echo>
-        <condition property="FLASHLOG"
-            value="c:/Documents and Settings/${env.USERNAME}/Application Data/Macromedia/Flash Player/Logs/flashlog.txt">
-            <available file="c:/Documents and Settings/${env.USERNAME}/Application Data/Macromedia/Flash Player/Logs/flashlog.txt"
-                type="file"/>
-        </condition>
-        <condition property="FLASHLOG"
-            value="c:/Users/${env.USERNAME}/AppData/Roaming/Macromedia/Flash Player/Logs/flashlog.txt">
-            <available file="c:/Users/${env.USERNAME}/AppData/Roaming/Macromedia/Flash Player/Logs/flashlog.txt"
-                type="file"/>
-        </condition>
-        <echo>copying last flashlog.txt from ${FLASHLOG}</echo>
-        <copy file="${FLASHLOG}" tofile="${basedir}/lastflashlog.txt" />
-    </target>
-    <!-- 
-        Can set build.additional-packages to build additional-packages as part of a release.
-        This does not build the docs.  Use doc-packages or asdoc-packages.
-    -->    
-    <target name="release" 
-        depends="check-compile-env,check-runtime-env,check-falcon-home,check-falconjx-home,source-release,binary-release,rat-check"
-        description="Creates source and binary kits for Apache FlexJS."/>
-        
-    <target name="release-jenkins" 
-        depends="check-compile-env,check-runtime-env,check-falcon-home,check-falconjx-home,source-release,binary-release-jenkins,rat-check"
-        description="Creates source and binary kits for Apache FlexJS."/>
-  
-    <target name="source-release" 
-        depends="super-clean,create-description,create-config,source-package" 
-        description="Packages the source release kit which is the official Apache release."/>
-        
-    <target name="binary-release" 
-        depends="setup-binary-release,main,sample-themes,checkintests,doc,other.locales,binary-package,additional-packages" 
-        description="Builds and packages the binary kit which is provided as a convenience."/>    
-
-    <target name="binary-release-jenkins" 
-        depends="setup-binary-release,main-jenkins,sample-themes,doc,other.locales,binary-package,additional-packages"
-        description="Builds and packages the binary kit which is provided as a convenience."/>    
-
-    <target name="source-release-noclean" 
-        depends="create-description,create-config,source-package" 
-        description="Packages the source release kit which is the official Apache release."/>
-        
-    <target name="binary-release-noclean" 
-        depends="main,sample-themes,checkintests,doc,other.locales,binary-package,additional-packages" 
-        description="Builds and packages the binary kit which is provided as a convenience."/>    
-
-    <target name="doc-packages" 
-        depends="asdoc-package,javadocs"
-        description="Build and package the asdocs for the framework clases and the javadocs."/>
-                
-    <target name="additional-packages"
-        depends="ja-locale-samples" 
-        description="Package locale-samples and antTasks."/>
-
-    <target name="help">
-        <echo message="run ant -projecthelp to see the available targets"/>
-    </target>
-    
-    <!-- 
-       To clean these you must call thirdparty-clean or super-clean to clean everything.  
-       clean does not remove these since they don't change often and the downloads take time.
-    -->
-    <target name="thirdparty-downloads" description="Downloads all the required thirdparty code.">
-        <ant dir="${basedir}/frameworks/as" target="thirdparty-downloads"/>        
-        <ant dir="${basedir}/frameworks/js" target="thirdparty-downloads"/>
-        <!-- don't ask again about these since we just did if these weren't already set -->	    
-	    <property name="build.noprompt" value="set" />
-    </target>
-
-    <target name="prebuild" depends="check-compile-env,thirdparty-downloads,create-description,create-config" 
-        description="Stuff that needs to be done before any builds." />
-
-    <target name="check-compile-env" depends="check-playerglobal-home,check-air-home,check-flex-home,check-falcon-home,check-falconjx-home"
-        description="Check for the required environment variables for compilation.">
-            <echo>OS: ${os.name} / ${os.version} / ${os.arch}</echo>
-            <echo>VM: ${java.vm.name} / ${java.vm.version}</echo>
-            <echo>Java: ${java.version}</echo>
-            <echo>Ant: ${ant.version} Ant Java Version: ${ant.java.version}</echo>
-    </target>
-
-    <target name="check-playerglobal-home" unless="playerglobal.swc.exists"
-        description="Check PLAYERGLOBAL_HOME for both a directory and a swc file">
-
-        <echo message="PLAYERGLOBAL_HOME is ${env.PLAYERGLOBAL_HOME}"/>
-        <echo message="playerglobal.version is ${playerglobal.version}"/>
-
-        <available file="${env.PLAYERGLOBAL_HOME}" 
-            type="dir" 
-            property="PLAYERGLOBAL_HOME.set"/>
-
-        <fail message="The environment variable PLAYERGLOBAL_HOME is not set to a directory" 
-            unless="PLAYERGLOBAL_HOME.set"/>
-
-        <property name="playerglobal.swc" 
-            value="${env.PLAYERGLOBAL_HOME}/${playerglobal.version}/playerglobal.swc"/>
-
-        <available file="${playerglobal.swc}" 
-            type="file" 
-            property="playerglobal.swc.exists"/>
-        
-        <fail message="The file ${playerglobal.swc} does not exist" 
-            unless="playerglobal.swc.exists"/>
-            
-        <echo message="playerglobal.swc is ${playerglobal.swc}"/>
-    </target>
-    
-    <target name="check-air-home" unless="AIR_HOME.set"
-        description="Check that AIR_HOME is a directory">
-        
-        <echo message="AIR_HOME is ${env.AIR_HOME}"/>
-
-        <condition property="AIR_HOME.set">
-            <and>
-                <length string="${env.AIR_HOME}" when="greater" length="0" />
-                <available file="${env.AIR_HOME}" type="dir"/>
-                <!--available file="${env.AIR_HOME}/bin/adt" type="file"/-->
-            </and>
-        </condition>
-        
-        <fail message="The environment variable AIR_HOME must be set to the AIR SDK Kit directory" 
-            unless="AIR_HOME.set"/>
-    </target>
-    
-    <target name="check-goog-home" unless="GOOG_HOME"
-        description="Check that GOOG_HOME is a directory">
-        
-        <echo message="GOOG_HOME is ${env.GOOG_HOME}"/>
-
-        <available file="${env.GOOG_HOME}" 
-            type="dir" 
-            property="GOOG_HOME"
-            value="${env.GOOG_HOME}" />
-        
-        <fail message="The environment variable GOOG_HOME must be set to the Google Closure Library folder containg a 'closure' and 'third_party' folder" 
-            unless="GOOG_HOME"/>
-    </target>
-    
-    <target name="check-flex-home" unless="mxmlc.jar.exists"
-        description="Check FLEX_HOME for both a directory and an exe file">
-
-        <echo message="FLEX_HOME is ${env.FLEX_HOME}"/>
-
-        <available file="${env.FLEX_HOME}" 
-            type="dir" 
-            property="FLEX_SDK_HOME"
-            value="${env.FLEX_HOME}" />
-
-        <fail message="The environment variable FLEX_HOME is not set to a directory" 
-            unless="FLEX_SDK_HOME"/>
-
-        <condition property="mxmlc.jar.exists">
-            <available file="${env.FLEX_HOME}/lib/mxmlc.jar" type="file"/> 
-        </condition>
-        	
-        <fail message="The directory ${env.FLEX_HOME} does not contain mxmlc.jar" 
-            unless="mxmlc.jar.exists"/>
-    </target>
-
-    <target name="check-falcon-home" unless="FALCON_HOME"
-        description="Check FALCON_HOME is a directory.">
-        
-        <echo message="FALCON_HOME is ${env.FALCON_HOME}"/>
-
-        <available file="${env.FALCON_HOME}/lib/falcon-mxmlc.jar" 
-            type="file" 
-            property="FALCON_HOME"
-            value="${env.FALCON_HOME}"/>
-
-        <fail message="FALCON_HOME must be set to a folder with a lib sub-folder containing falcon-mxmlc.jar such as the compiler/generated/dist/sdk folder in flex-falcon repo or this folder if it has been converted into an FB-compatible SDK" 
-            unless="FALCON_HOME"/>
-    </target>
-
-    <target name="check-falconjx-home" unless="FALCONJX_HOME"
-        description="Check FALCON_HOME is a directory.">
-        
-        <echo message="FALCONJX_HOME is ${env.FALCONJX_HOME}"/>
-
-        <available file="${env.FALCONJX_HOME}/lib/jsc.jar" 
-            type="file" 
-            property="FALCONJX_HOME"
-            value="${env.FALCONJX_HOME}"/>
-
-        <fail message="FALCONJX_HOME must be set to a folder with a lib sub-folder containing jsc.jar such as the compiler.jx folder in flex-falcon repo or the js folder if it has been converted into an FB-compatible SDK" 
-            unless="FALCONJX_HOME"/>
-    </target>
-
-    <target name="create-description" description="Generate flex-sdk-description.xml">
-        <tstamp>
-        	<format property="build.number.date" pattern="yyyyMMdd" />
-        </tstamp>
-        <echo message="build.number is ${build.number.date}"/>
-        <echo file="${basedir}/flex-sdk-description.xml">&lt;?xml version="1.0"?&gt;
-&lt;!--
-
-  Licensed to the Apache Software Foundation (ASF) under one or more
-  contributor license agreements.  See the NOTICE file distributed with
-  this work for additional information regarding copyright ownership.
-  The ASF licenses this file to You under the Apache License, Version 2.0
-  (the "License"); you may not use this file except in compliance with
-  the License.  You may obtain a copy of the License at
-
-      http://www.apache.org/licenses/LICENSE-2.0
-
-  Unless required by applicable law or agreed to in writing, software
-  distributed under the License is distributed on an "AS IS" BASIS,
-  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-  See the License for the specific language governing permissions and
-  limitations under the License.
-
---&gt;
-&lt;flex-sdk-description&gt;
-&lt;name&gt;${release.name} ${release.version} FP${playerglobal.version} AIR${air.version} ${locale}&lt;/name&gt;
-&lt;version&gt;${fb.release.version}&lt;/version&gt;
-&lt;build&gt;${build.number.date}&lt;/build&gt;
-&lt;/flex-sdk-description&gt;
-        </echo>
-    </target>
-	
-    <target name="create-config" description="Create flex config file">
-        <ant dir="${basedir}/frameworks/as" target="flex-config" />
-        <ant dir="${basedir}/frameworks/as" target="air-config" />
-    </target>
-	
-    <target name="setup-binary-release" depends="thirdparty-clean"
-        description="Set properties needed to turn on features for release sdk">       
-	    <!-- 
-	        For a release build, download everything fresh.  
-	        Build changes to the downloads, might not be caught by the refresh logic.
-	        thirdparty-clean should leave this directory empty but just in case...  
-	    -->
-	    <delete dir="${basedir}/in" failonerror="false" includeEmptyDirs="true" />
-        
-        <!-- generate localized compiler message jars -->
-	    <property name="localized.jars" value="true" />
-    </target>
-    
-    <!--
-        Cleanup
-    -->
-    
-    <target name="super-clean" depends="thirdparty-clean,clean" description="Cleans everything including thirdparty downloads."/>
-
-    <target name="thirdparty-clean" description="Removes all thirdparty downloads.">
-        <ant dir="${basedir}/frameworks/as" target="thirdparty-clean"/>
-        <ant dir="${basedir}/frameworks/js" target="thirdparty-clean"/>
-        <delete dir="${basedir}/in"/>
-        <delete dir="${basedir}/lib"/>
-    </target>
-
-    <target name="clean" depends="examples-clean,frameworks-as-clean,frameworks-js-clean,package-clean,checkintests-clean" 
-        description="Full clean excluding thirdparty downloads">
-        
-        <delete file="${basedir}/flex-sdk-description.xml" failonerror="false"/>
-        <delete file="${basedir}/rat*.report" failonerror="false"/>
-        
-        <delete dir="${basedir}/examples" failonerror="false">
-            <include name="**/*.swc"/>
-            <include name="**/*.swf"/>
-        </delete>
-
-        <delete dir="${basedir}/out" failonerror="false" includeEmptyDirs="true"/>
-        <delete dir="${basedir}/temp" failonerror="false" includeEmptyDirs="true"/>
-        <delete dir="${basedir}/tempDoc" failonerror="false" includeEmptyDirs="true"/>
-        <ant dir="${basedir}/asdoc" target="clean" />
-        <!--
-        <ant dir="${basedir}/ide/flashbuilder" target="clean" />
-         -->
-        <delete dir="${basedir}/mustella/tests/bin" failonerror="false" includeEmptyDirs="true"/>
-    </target>
-
-    <target name="examples-clean">
-        <ant dir="${basedir}/examples" target="clean"/>
-    </target>
-
-    <target name="frameworks-as-clean">
-        <ant dir="${basedir}/frameworks/as" target="clean"/>
-    </target>
-
-	<target name="frameworks-js-clean">
-        <ant dir="${basedir}/frameworks/js" target="clean"/>
-	</target>
-
-    <target name="package-clean">
-        <delete dir="${basedir}/out" failonerror="false" includeEmptyDirs="true"/>
-        <antcall target="clean-temp"/>
-    </target>
-
-    <target name="checkintests-clean" depends="clean-dependencychecker">
-    </target>
-
-    <target name="player-clean">
-        <delete dir="${basedir}/in/player" failonerror="false" includeEmptyDirs="true"/>
-    </target>
-
-    <!--
-        Build Examples
-    -->
-
-    <target name="examples" description="Build the examples"
-        depends="prebuild,check-goog-home">
-        <ant dir="${basedir}/examples"/>
-    </target>
-
-    <!--
-        Build framework SWCs
-    -->
-
-    <target name="frameworks-as" description="Full build of all Actionscript framework SWCs, including resource bundles and themes">
-        <ant dir="${basedir}/frameworks/as">
-            <property name="locale" value="${locale}"/>
-        </ant>
-    </target>
-
-    <target name="frameworks-js-jenkins" description="Full check of all JavaScript framework files, using gsjlint and jshint">
-        <property name="no.lint" value="true" />
-        <ant dir="${basedir}/frameworks/js">
-            <property name="locale" value="${locale}"/>
-        </ant>
-    </target>
-    
-    <target name="frameworks-js" description="Full check of all JavaScript framework files, using gsjlint and jshint">
-        <ant dir="${basedir}/frameworks/js">
-            <property name="locale" value="${locale}"/>
-        </ant>
-    </target>
-
-    <target name="other.locales" description="Build resource SWCs for additional locales">
-        <!--<ant dir="${basedir}/frameworks" target="other.locales"/>-->
-    </target>
-    
-    <target name="sample-themes" description="Build the sample themes">
-        <!--<ant dir="${basedir}/samples/themes/zen" target="main" /> -->
-    </target>
-
-    <target name="javadocs"
-        description="Build javadoc for compiler oem interface">
-        <javadoc destdir="${basedir}/javadoc" useexternalfile="yes" maxmemory="128m">
-            <classpath>
-                <fileset dir="${basedir}/lib">
-                    <include name="flex-compiler-oem.jar"/>
-                </fileset>
-            </classpath>
-            <fileset dir="${basedir}/modules/compiler/src/java/flex2/tools/oem">
-                <include name="*.java"/>
-                <exclude name="**/*.properties"/>
-            </fileset>
-        </javadoc>
-        <mkdir dir="${basedir}/out"/>
-        <zip destfile="${basedir}/out/${kit.prefix}-compiler-api-javadocs.zip" basedir="${FLEXJS_HOME}/javadoc"/>
-        <delete dir="${basedir}/javadoc" failonerror="false" includeEmptyDirs="true"/>
-    </target>
-
-	<target name="ide" description="Build any ide specific files">
-        <!--<ant dir="${basedir}/ide/flashbuilder" />-->
-    </target>
-    
-    <target name="post-build" depends="ide" description="Handle post-build activities" />
-
-    <!--
-        Build the ASDoc html pages.
-    -->
-    <target name="asdoc" description="asdoc">
-        <ant dir="${basedir}/asdoc" />
-    </target>
-
-    <!--
-        Package up the Apache Flex sources.  Do not include empty directories.
-        
-        Note: even if cleaned, this will package up unversioned files that happen
-        to be in the tree.
-        
-        FixMe: clean needs to clean - add code to detect unversioned files
-    -->
-    <target name="source-package" depends="stage-source,source-package-zip,source-package-tgz"
-        description="Package source files required to build in zip and tar-gzip file">
-    </target>
-
-    <!-- 
-        Packages the source distribution with ZIP.
-    -->
-    <target name="source-package-zip" unless="no.zip">
-        <mkdir dir="${basedir}/out"/>
-        <zip destfile="${basedir}/out/${source.kit}.zip" basedir="${basedir}/temp"/>
-    </target>
-
-    <!-- 
-        Packages the source distribution with TAR-GZIP.
-    -->
-    <target name="source-package-tgz" unless="no.zip">
-        <tar-gzip name="${source.kit}" />
-    </target>
-
-    <target name="stage-source" depends="stage-source-no-scripts"
-        description="Package source files required to build in zip file" >
-        <!-- scripts -->
-        <antcall target="stage-scripts"/>
-    </target>
-        
-    <target name="stage-source-no-scripts" >
-        <antcall target="clean-temp"/>
-        
-        <copy todir="${basedir}/temp" includeEmptyDirs="false">
-            <fileset dir="${basedir}">
-                <include name="build.xml"/>
-                <include name="build.properties"/>
-                <include name="cordova-build.xml"/>
-				<include name="env-template.properties"/>
-                <include name="flex-sdk-description.xml"/>
-                <include name="installer.xml"/>
-                <include name="installer.properties/**"/>
-                <include name="READme"/>
-                <include name="RELEASE_NOTES"/>
-                <include name="LICENSE"/>
-                <include name="NOTICE"/>
-            </fileset>
-        </copy>
-         
-        <!-- frameworks/as -->
-        <antcall target="stage-framework-as"/>
-        
-        <!-- make the js output folder so copy doesn't complain if it isn't there -->
-        <mkdir dir="${FLEXJS_HOME}/frameworks/js/FlexJS/libs" />
-
-        <!-- frameworks/js -->
-        <antcall target="stage-framework-js"/>
-
-        <!-- asdoc -->
-        <copy todir="${basedir}/temp/asdoc" includeEmptyDirs="false">
-            <fileset dir="${basedir}/asdoc">
-            	<exclude name="test/**" />
-            </fileset>
-        </copy>
-
-        <copy todir="${basedir}/temp/ide">
-            <fileset dir="${basedir}/ide" >
-            	<include name="flashbuilder/**"/>
-            </fileset>
-        </copy>
-        
-        <copy todir="${basedir}/temp/js/bin">
-            <fileset dir="${basedir}/js/bin" >
-            	<include name="**"/>
-            </fileset>
-        </copy>
-        
-        <fixcrlf srcdir="${basedir}/temp/js/bin" eol="crlf" fixlast="false">
-            <include name="**/*.bat"/>
-        </fixcrlf>
-        
-        <!-- Unix shell scripts need the correct line endings. -->
-        <fixcrlf srcdir="${basedir}/temp/js/bin" eol="unix" fixlast="false">
-            <exclude name="**/*.bat"/>
-        </fixcrlf>
-        
-        <chmod dir="${basedir}/temp/js/bin" excludes="**/*.bat" perm="+x" />
-        
-        <!-- samples -->
-        <copy todir="${basedir}/temp/examples">
-            <fileset dir="${basedir}/examples" >
-                <exclude name="**/FlexJSTest_again/**" />
-                <exclude name="**/VanillaSDK_POC/**" />
-                <exclude name="**/*.swc"/>
-                <exclude name="**/*.swf"/>
-            </fileset>
-        </copy>
-        
-        <!-- templates
-        <copy todir="${basedir}/temp/templates">
-            <fileset dir="${basedir}/templates" >
-                <include name="swfobject/**"/>
-                <exclude name="**/*.swf"/>
-                <exclude name="**/swfobject.js"/>
-            </fileset>
-        </copy>
-        -->
-        
-        <!-- 
-             Source files have Windows line endings.  Most UNIX editors can handle
-             either type of line endings but the converse is often not true.             
-        -->
-        <fixcrlf srcdir="${basedir}/temp/frameworks" eol="crlf" fixlast="false">
-            <exclude name="bin/**"/>
-            <exclude name="**/assets/**"/>
-            <exclude name="**/*.fla"/>
-            <exclude name="**/*.flv"/>
-            <exclude name="**/*.gif"/>
-            <exclude name="**/*.mp3"/>
-            <exclude name="**/*.jpg"/>
-            <exclude name="**/*.pbj"/>
-            <exclude name="**/*.png"/>
-            <exclude name="**/*.sh"/>
-            <exclude name="**/*.swf"/>
-        </fixcrlf>
-               
-        <!-- 
-            Unix shell scripts need the correct line endings. 
-            The bin directory is handled in stage-bin.
-        -->      
-        <fixcrlf srcdir="${basedir}/temp" eol="unix" fixlast="false">  
-            <include name="**.sh"/>
-            <exclude name="bin/**"/>
-        </fixcrlf>
-    </target>
-
-    <!-- frameworks -->
-    <!-- javascript and test directories follow -->
-    <target name="stage-framework-as">
-        <copy todir="${basedir}/temp/frameworks/as" includeEmptyDirs="false">
-            <fileset dir="${basedir}/frameworks/as">
-                <include name="**"/>
-                <exclude name="**/libs/**"/>
-                <exclude name="**/*.swc"/>
-                <exclude name="**/*.pbj"/>
-                <exclude name="**/*.swf"/>
-                <exclude name="**/*.mxp"/>
-                <exclude name="test*/**"/>
-                <exclude name="javascript/**"/>
-                <exclude name="projects/air/**"/>
-                <exclude name="projects/spark/manifest.xml"/>
-                <exclude name="projects/*/bundles.properties"/>
-                <exclude name="projects/*/.settings/**"/>
-                <exclude name="projects/*/tests/out/**"/>
-                <exclude name="projects/**/*.actionScriptProperties"/>
-                <exclude name="projects/**/*.flexLibProperties"/>
-                <exclude name="projects/**/*.DS_Store"/>
-            </fileset>
-        </copy>
-        <copy todir="${basedir}/temp/frameworks/as" includeEmptyDirs="false">
-            <fileset dir="${basedir}/frameworks/as">
-                <include name="air-config-template.xml"/>
-                <include name="flex-config-template.xml"/>
-            </fileset>
-        </copy>
-
-        <tstamp>
-        	<format property="build.number.date" pattern="yyyyMMdd" />
-        </tstamp>
-        <property name="build.version" value="${release.version}.${build.number.date}" />
-
-        <!-- now that config xml files are in temp, fix them up for release. -->
-        <echo message="Updating config file air-config.xml with version ${build.version}"/>
-        <fix-config-file file="${basedir}/temp/frameworks/as/air-config-template.xml" version="${build.version}" />
-        <echo message="Updating config file flex-config.xml with version ${build.version}"/>
-        <fix-config-file file="${basedir}/temp/frameworks/as/flex-config-template.xml" version="${build.version}" />
-        
-        <!-- Update all Version.as files in the kit frameworks directory with build.number -->
-        <!--<antcall target="version-update"/>-->
-    </target>
+<project name="vf2js" default="main" basedir=".">
+  <!--
+    - release:
+      - source
+        - examples
+        - frameworks
+          - as scripts
+          - as/projects
+          - js/src/*
+        - ide
+        - js/vf2js/falconjx/bin
+      - binary
+        - 
+    - overlay:
+      - 
+  -->
     
-    <!-- tlf -->
-    <target name="stage-framework-js">
-        <copy todir="${basedir}/temp/frameworks/js/FlexJS/src" includeEmptyDirs="false">
-            <fileset dir="${FLEXJS_HOME}/frameworks/js/FlexJS/src">
-                <include name="**"/>
-            </fileset>
-            <fileset dir="${FLEXJS_HOME}/frameworks/js/FlexJS/libs">
-                <include name="**"/>
-                <exclude name="FlexJSJXClasses.js"/>
-            </fileset>
-        </copy>
-        <copy todir="${basedir}/temp/frameworks/js" includeEmptyDirs="false">
-            <fileset dir="${FLEXJS_HOME}/frameworks/js">
-                <include name="build.xml"/>
-                <include name="jshint.properties"/>
-            </fileset>
-        </copy>
-    </target>
-    
-    <target name="stage-falcon">
-        <copy todir="${basedir}/temp/bin" includeEmptyDirs="false">
-            <fileset dir="${FALCON_HOME}/bin">
-                <include name="*"/>
-                <exclude name="adl*"/>
-                <exclude name="adt*"/>
-            </fileset>
-        </copy>
-        <copy todir="${basedir}/temp/bin-legacy" includeEmptyDirs="false">
-            <fileset dir="${FALCON_HOME}/bin-legacy">
-                <include name="*"/>
-                <exclude name="adl*"/>
-                <exclude name="adt*"/>
-            </fileset>
-        </copy>
-        <copy todir="${basedir}/temp/ant/lib" includeEmptyDirs="false">
-            <fileset dir="${FALCON_HOME}/ant/lib">
-                <include name="*"/>
-                <exclude name="adl*"/>
-                <exclude name="adt*"/>
-            </fileset>
-        </copy>
-        <copy todir="${basedir}/temp/lib" includeEmptyDirs="false">
-            <fileset dir="${FALCON_HOME}/lib">
-                <include name="**"/>
-                <exclude name="adl*"/>
-                <exclude name="adt*"/>
-            </fileset>
-        </copy>
-        
-        <fixcrlf srcdir="${basedir}/temp/bin" eol="crlf" fixlast="false">
-            <include name="**/*.bat"/>
-        </fixcrlf>
-  
-          <!-- Unix shell scripts need the correct line endings. -->      
-        <fixcrlf srcdir="${basedir}/temp/bin" eol="unix" fixlast="false">  
-            <exclude name="**/*.bat"/>
-        </fixcrlf>
-        
-        <fixcrlf srcdir="${basedir}/temp/bin-legacy" eol="crlf" fixlast="false">
-            <include name="**/*.bat"/>
-        </fixcrlf>
-  
-          <!-- Unix shell scripts need the correct line endings. -->      
-        <fixcrlf srcdir="${basedir}/temp/bin-legacy" eol="unix" fixlast="false">  
-            <exclude name="**/*.bat"/>
-        </fixcrlf>
-
-        <chmod dir="${basedir}/temp/bin" excludes="**/*.bat" perm="+x" />
-        <chmod dir="${basedir}/temp/bin-legacy" excludes="**/*.bat" perm="+x" />
-
-    </target>
-        
-    <target name="stage-falconjx">
-        <!-- modules -->
-        <copy todir="${basedir}/temp/js/bin" includeEmptyDirs="false">
-            <fileset dir="${basedir}/js/bin">
-                <include name="**"/>
-            </fileset>
-            
-        </copy>  
-
-        <!-- modules/thirdparty -->
-        <copy todir="${basedir}/temp/js/lib" includeEmptyDirs="true">
-            <fileset dir="${FALCONJX_HOME}/lib">
-                <include name="**"/>
-                <exclude name="**/classes/**"/>
-                <exclude name="**/.classpath"/>
-                <exclude name="**/.project"/>
-                <exclude name="*/test*/**"/>
-            </fileset>
-        </copy>  
-        
-        <fixcrlf srcdir="${basedir}/temp/js/bin" eol="crlf" fixlast="false">
-            <include name="**/*.bat"/>
-        </fixcrlf>
-  
-          <!-- Unix shell scripts need the correct line endings. -->      
-        <fixcrlf srcdir="${basedir}/temp/js/bin" eol="unix" fixlast="false">  
-            <exclude name="**/*.bat"/>
-        </fixcrlf>
-
-        <chmod dir="${basedir}/temp/js/bin" excludes="**/*.bat" perm="+x" />
-
-    </target>
-    
-    <target name="stage-scripts" description="package ide conversion scripts">
-        <!-- deploy scripts -->
-        <copy todir="${basedir}/temp/scripts">
-            <fileset dir="${basedir}/scripts" >
-                <include name="**/*"/>
-            </fileset>
-        </copy>
-    </target>
-    
-    <target name="stage-nightly" if="nightly" description="add nightly.properties if nightly build">
-        <copy todir="${basedir}/temp" file="${basedir}/nightly.properties" />
-    </target>
-
-    <target name="binary-package"
-        description="Package binary files in zip and tar-gzip file.">
+  <property name="flex.sdk.loc" value="${basedir}/../../flex-sdk" />
 
-        <antcall target="stage-source"/>
-                
-        <!-- delete any left-over empty directories -->
-        <delete includeemptydirs="true">
-            <fileset dir="${basedir}/temp/frameworks">
-                <and>
-                    <size value="0"/>
-                    <type type="dir"/>
-                </and>
-            </fileset>
-        </delete>
+  <!-- ============
+    Primary targets
+  ============= -->
 
-        <antcall target="stage-nightly" />
-        
-        <!-- these files are in addition to the remaining source files -->
-        
-        <!-- concat the license file with the binary license file for the 3rd party deps -->
-        <!--concat destfile="${basedir}/temp/LICENSE">
-            <filelist dir="${FLEX_SDK_HOME}" files="LICENSE,LICENSE.bin"/>
-        </concat-->
-        
-        <!-- frameworks/libs -->
-        <copy todir="${basedir}/temp/frameworks/as/libs">
-            <fileset dir="${basedir}/frameworks/as/libs">
-                <include name="FlexJSUI.swc"/>
-                <include name="FlexJSJX.swc"/>
-                <include name="MXMLCClasses.swc"/>
-            </fileset>
-        </copy>
+  <target name="main" depends="clean,build.as.frameworks" description="Build binaries from source" />
 
-        <!-- falcon
-        <antcall target="stage-falcon"/>
-         -->
-         
-        <!-- falconjx
-        <antcall target="stage-falconjx"/>
-         -->
-         
-        <!-- ide
-        <copy todir="${basedir}/temp/ide">
-            <fileset dir="${basedir}/ide" >
-                <include name="flashbuilder/config"/>
-            </fileset>
-        </copy>
-         -->
-         
-        <!-- examples -->
-        <copy todir="${basedir}/temp/examples">
-            <fileset dir="${basedir}/examples" >
-                <exclude name="**/FlexJSTest_again/**" />
-                <exclude name="**/VanillaSDK_POC/**" />
-                <include name="**/build.xml"/>
-                <include name="**/*.swc"/>
-                <include name="**/*.swf"/>
-            </fileset>
-        </copy>
-
-        <!-- swfobject templates except for downloaded files
-        <copy todir="${basedir}/temp/templates/swfobject">
-            <fileset dir="${basedir}/templates/swfobject">
-                <exclude name="**/expressInstall.swf"/>
-                <exclude name="**/swfobject.js"/>
-            </fileset>
-        </copy>
-         -->
-                 
-        <antcall target="binary-package-zip"/>        
-        <antcall target="binary-package-tgz"/>
-        <copy todir="${basedir}/out" file="${basedir}/apache-flex-flexjs-installer-config.xml" />
-    </target>
-  
-    <target name="package-sdk" depends="check-compile-env,check-runtime-env,check-falcon-home,check-falconjx-home"
-        description="Package falcon and templates into binary package">
-        
-        <antcall target="clean-temp"/>
-
-        <antcall target="stage-source-no-scripts"/>
-                
-        <!-- delete any left-over empty directories -->
-        <delete includeemptydirs="true">
-            <fileset dir="${basedir}/temp/frameworks">
-                <and>
-                    <size value="0"/>
-                    <type type="dir"/>
-                </and>
-            </fileset>
-        </delete>
-
-        <!-- these files are in addition to the remaining source files -->
-        
-        <!-- concat the license file with the binary license file for the 3rd party deps -->
-        <!--concat destfile="${basedir}/temp/LICENSE">
-            <filelist dir="${FLEX_SDK_HOME}" files="LICENSE,LICENSE.bin"/>
-        </concat-->
-        
-        <!-- frameworks/libs -->
-        <copy todir="${basedir}/temp/frameworks/as/libs">
-            <fileset dir="${basedir}/frameworks/as/libs">
-                <include name="FlexJSUI.swc"/>
-                <include name="FlexJSJX.swc"/>
-                <include name="MXMLCClasses.swc"/>
-            </fileset>
-        </copy>
-
-        <!-- frameworks config files -->
-        <copy todir="${basedir}/temp/frameworks">
-            <fileset dir="${basedir}/frameworks">
-                <include name="air-config.xml"/>
-                <include name="flex-config.xml"/>
-            </fileset>
-        </copy>
-        <replace file="${basedir}/temp/frameworks/air-config.xml">
-            <replacefilter
-                token="{airHome}/frameworks/libs"
-                value="libs"/>
-        </replace>
-        <replace file="${basedir}/temp/frameworks/flex-config.xml">
-            <replacefilter
-                token="{playerglobalHome}"
-                value="libs/player"/>
-        </replace>
-        
-        <!-- now that config xml files are in temp, fix them up for release. -->
-        <echo message="Updating config file air-config.xml with version ${build.version}"/>
-        <fix-config-file file="${basedir}/temp/frameworks/air-config.xml" version="${build.version}" />
-        <echo message="Updating config file flex-config.xml with version ${build.version}"/>
-        <fix-config-file file="${basedir}/temp/frameworks/flex-config.xml" version="${build.version}" />
-        
-        <!-- falcon -->
-        <antcall target="stage-falcon"/>
-         
-        <!-- falconjx -->
-        <antcall target="stage-falconjx"/>
-         
-        <!-- ide
-        <copy todir="${basedir}/temp/ide">
-            <fileset dir="${basedir}/ide" >
-                <include name="flashbuilder/config"/>
-            </fileset>
-        </copy>
-         -->
-         
-        <!-- examples -->
-        <copy todir="${basedir}/temp/examples">
-            <fileset dir="${basedir}/examples" >
-                <exclude name="**/FlexJSTest_again/**" />
-                <exclude name="**/VanillaSDK_POC/**" />
-                <include name="**/build.xml"/>
-                <include name="**/*.swc"/>
-                <include name="**/*.swf"/>
-            </fileset>
-        </copy>
-
-        <!-- swfobject templates except for downloaded files -->
-        <copy todir="${basedir}/temp/templates/swfobject">
-            <fileset dir="${basedir}/templates/swfobject">
-            </fileset>
-        </copy>
-        
-        <!-- deploy scripts -->
-        <copy todir="${basedir}/temp">
-            <fileset dir="${basedir}/scripts" >
-                <include name="**/*"/>
-            </fileset>
-        </copy>
-                 
-        <chmod dir="${basedir}/temp" includes="**/*.sh" perm="+x" />
-
-        <mkdir dir="${basedir}/out"/>
-        <zip destfile="${basedir}/out/ApacheFlexJS.zip" basedir="${basedir}/temp"/>
-        <tar-gzip name="ApacheFlexJS" />
-    </target>
-            
-    <!-- 
-        Packages the binary distribution with ZIP. 
-    -->
-    <target name="binary-package-zip" unless="no.zip"
-        description="Zips up the files in the temp directory into the binary zipfile.">
-        
-        <mkdir dir="${basedir}/out"/>
-        <zip destfile="${basedir}/out/${binary.kit}.zip" basedir="${basedir}/temp"/>
-    </target>
-       
-    <!-- 
-        Packages the binary distribution with TAR-GZIP.         
-    -->
-    <target name="binary-package-tgz" unless="no.zip"
-        description="Tar-Gzip up the files in the temp directory into the binary tgz file.">
-        
-        <tar-gzip name="${binary.kit}" />
-    </target>
-
-    <macrodef name="fix-config-file">
-        <attribute name="file"/>
-        <attribute name="version"/>
-            <sequential>
-                <replace file="@{file}">
-                    <replacefilter
-                        token="&lt;warn-no-explicit-super-call-in-constructor&gt;true"
-                        value="&lt;warn-no-explicit-super-call-in-constructor&gt;false"/>
-                    <replacefilter
-                        token="$${build.number}"
-                        value="@{version}"/>
-                </replace>
-        </sequential>
-    </macrodef>
-
-    <!--
-        tar with gzip compression, the temp directory and put it in the out directory.  
-        The shell scripts in the bin directory (no extension) and other .sh files have 
-        mode set to execute.
-        
-        name - the basename name of the kit in out directory, without the .tar.gz extension
-    -->
-    <macrodef name="tar-gzip">
-        <attribute name="name"/>
-            <sequential>
-                <mkdir dir="${basedir}/out"/>        
-                <tar destfile="${basedir}/out/@{name}.tar.gz" 
-                    compression="gzip"
-                    longfile="gnu">
-                    <tarfileset dir="${basedir}/temp" prefix="@{name}">
-                        <include name="**" />
-                        <exclude name="bin/**" />
-                        <exclude name="**/*.sh" />
-                    </tarfileset>
-                    <tarfileset dir="${basedir}/temp" prefix="@{name}">
-                        <include name="bin/*.bat" />
-                    </tarfileset>
-                    <tarfileset dir="${basedir}/temp" prefix="@{name}" mode="755">
-                        <include name="bin/*" />
-                        <include name="**/*.sh" />
-                        <exclude name="bin/*.bat" />
-                    </tarfileset>
-                </tar>
-        </sequential>
-    </macrodef>	
-    
-	<!--
-	    Update all frameworks Version.as files in the kit stagging area with the 
-	    latest version build number info.
-	    
-	    You need to place the AntelopeTasks_*.jar jar file in the anttask.classpath
-	    in order to do this.  If the jar isn't found, the update is skipped.
-	-->
-	<target name="version-update"
-	    description="Update all frameworks/Version.as files">
+  <target name="install" depends="main" description="Install to chosen (-Dflex.sdk.loc) directory">
+  </target>
 
-        <available property="have.greptask"
-            classname="ise.antelope.tasks.Find" 
-            classpathref="anttask.classpath"/>
-        
-        <antcall target="have-greptask"/>
-        <antcall target="no-greptask"/>
-    </target>
+  <target name="build.release" depends="" description="Build release artefacts">
+  </target>
 
-    <target name="have-greptask" if="have.greptask">
-		<taskdef name="grep" classname="ise.antelope.tasks.Find"
-                 classpathref="anttask.classpath"/>                 
 
-        <echo message="Updating all frameworks/projects/**/Version.as files with version ${release.version}.${build.number.date}"/>
-		
-        <!-- Update all Version.as files in the kit frameworks directory-->
-        <replaceregexp>
-            <regexp pattern='"[0-9].[0-9].[0-9].[0-9]";'/>
-            <substitution expression='"${release.version}.${build.number.date}";'/>
-            <fileset dir="${FLEXJS_HOME}/temp/frameworks/projects">
-                <include name="**/Version.as"/>
-            </fileset>
-        </replaceregexp>		
-    </target>
 
-    <target name="no-greptask" unless="have.greptask">
-        <echo message="Version files not updated."/>
-        <echo message="AntelopeTasks_*.jar not found in anttask.classpath"/>
-    </target>   
+  <!-- ============
+    Secondary targets
+  ============= -->
 
-    <target name="stage-locales"
-        description="Stage all the locale swc's built">
-        
-        <copy todir="${basedir}/temp/frameworks/locale" includeEmptyDirs="false">
-            <fileset dir="${basedir}/frameworks/locale">
-                <include name="**/*.swc"/>
-            </fileset>
-        </copy>
+  <target name="build.as.frameworks" depends="" description="Build SWCs from AS source">
+    <ant dir="${basedir}/frameworks/as" />
+  </target>
 
-        <!-- frameworks/projects -->
-        <!--
-            Remove these files from the binary kit.
-            
-            copylocale looks for bundles and then uses default locale so if there is
-            not a locale sub-directory don't include the bundles directory.
-        -->
-        <delete dir="${basedir}/temp/frameworks/projects" includeEmptyDirs="false">
-            <include name="airspark/bundles/**"/>
-            <include name="automation_air/bundles/**"/>
-            <include name="automation_dmv/bundles/**"/>
-            <include name="automation_flashflexkit/bundles/**"/>
-            <include name="automation_spark/bundles/**"/>
-            <include name="*/bundles/**/empty.properties"/>
-            <include name="*/bundles/**/docs/**"/>
-            <include name="*/bundles/*/*.xml"/>
-            <include name="*/bundles/*/packages.dita"/>
-            <exclude name="*/bundles/${locale}"/>
-        </delete>
-        
 
-        <!-- lib -->
-        <!-- these are built when the compiler is built with localized.jars set -->
-        <copy todir="${basedir}/temp/lib">
-            <fileset dir="${basedir}/lib">
-                <include name="mxmlc_da.jar"/>
-                <include name="mxmlc_de.jar"/>
-                <include name="mxmlc_es.jar"/>
-                <include name="mxmlc_fi.jar"/>
-                <include name="mxmlc_fr.jar"/>
-                <include name="mxmlc_it.jar"/>
-                <include name="mxmlc_ja.jar"/>
-                <include name="mxmlc_ko.jar"/>
-                <include name="mxmlc_nb.jar"/>
-                <include name="mxmlc_nl.jar"/>
-                <include name="mxmlc_pt.jar"/>
-                <include name="mxmlc_ru.jar"/>
-                <include name="mxmlc_sv.jar"/>
-                <include name="mxmlc_zh_CN.jar"/>
-                <include name="mxmlc_zh_TW.jar"/>
-            </fileset>
-        </copy>
-        
-        <!-- FixMe: Apache is missing all these language jars. -->
-        <copy todir="${basedir}/temp/lib">
-            <fileset dir="${basedir}/lib">
-                <include name="batik_da.jar"/>
-                <include name="batik_de.jar"/>
-                <include name="batik_es.jar"/>
-                <include name="batik_fi.jar"/>
-                <include name="batik_fr.jar"/>
-                <include name="batik_it.jar"/>
-                <include name="batik_ko.jar"/>
-                <include name="batik_ja.jar"/>
-                <include name="batik_nb.jar"/>
-                <include name="batik_nl.jar"/>
-                <include name="batik_pt.jar"/>
-                <include name="batik_ru.jar"/>
-                <include name="batik_sv.jar"/>
-                <include name="batik_zh_CN.jar"/>
-                <include name="batik_zh_TW.jar"/>
-                <include name="xercesImpl_da.jar"/>
-                <include name="xercesImpl_de.jar"/>
-                <include name="xercesImpl_es.jar"/>
-                <include name="xercesImpl_fi.jar"/>
-                <include name="xercesImpl_fr.jar"/>
-                <include name="xercesImpl_it.jar"/>
-                <include name="xercesImpl_ko.jar"/>
-                <include name="xercesImpl_ja.jar"/>
-                <include name="xercesImpl_nb.jar"/>
-                <include name="xercesImpl_nl.jar"/>
-                <include name="xercesImpl_pt.jar"/>
-                <include name="xercesImpl_ru.jar"/>
-                <include name="xercesImpl_sv.jar"/>
-                <include name="xercesImpl_zh_CN.jar"/>
-                <include name="xercesImpl_zh_TW.jar"/>
-            </fileset>
-        </copy>
-    </target>
 
-    <target name="ja-locale-samples" if="build.additional-packages">
-        <antcall target="clean-temp"/>
-        <!--
-        <copy todir="${basedir}/temp/samples_ja">
-            <fileset dir="${basedir}/samples/ja_JP">
-                <include name="README_ja.txt"/>
-                <include name="explorer/**"/>
-            </fileset>
-        </copy>
-        <mkdir dir="${basedir}/out"/>
-        <zip file="${basedir}/out/${kit.prefix}-locales.zip" basedir="${basedir}/temp" includes="**"/>
-        -->
-    </target>
-     
-    <target name="asdoc-package" description="Package the asdocs">      
-        <antcall target="clean-temp"/>
-        <antcall target="asdoc"/>
-        
-        <copy todir="${basedir}/temp/asdoc">
-            <fileset dir="${basedir}/asdoc-output"/>
-        </copy>
-        <copy todir="${basedir}/temp/asdoc">
-            <fileset dir="${basedir}">
-                <include name="LICENSE" />
-                <include name="NOTICE" />
-            </fileset>
-        </copy>
-        <zip file="${basedir}/out/${kit.prefix}-asdocs.zip" basedir="${basedir}/temp"/>
-        <antcall target="clean-temp"/>
-    </target>
+  <!-- ============
+    Utility targets
+  ============= -->
 
-    
-    <target name="air-installers" description="Copy AIR runtime installers from sdk/in to sdk/out">
-        <mkdir dir="${basedir}/out"/>
-        <copy todir="${basedir}/out">
-            <fileset file="${basedir}/in/air/mac/Adobe AIR.dmg"/>
-            <fileset file="${basedir}/in/air/win/Adobe AIR Installer.exe"/>
-        </copy>
-    </target>
-
-    <target name="clean-temp" unless="noclean.temp">
-        <delete dir="${basedir}/temp" failonerror="false" includeEmptyDirs="true"/>
-    </target>
-
-    <!-- Builds fat swcs. -->
-    <target name="doc">
-        <!--<ant dir="${basedir}/frameworks" target="doc" />-->
-    </target>
-
-    <!--
-        Tests: The current checkintests that must be run before every checkin
-    -->
-
-    <!--<target name="checkintests"  description="Run these tests before every checkin" />-->
-    <target name="checkintests" depends="basictests-mustella,basictests-marmotinni" description="Run these tests before every checkin" />
-    <!--<target name="checkintests" depends="dependencychecker-framework,basictests-mustella,checkintests-mobile" description="Run these tests before every checkin"/-->
-    
-    <!--
-     Tests: Marmotinni checkintests
-     -->
-    
-    <target name="basictests-marmotinni" depends="marmotinni-setup,basictests-js"/>
-
-    <target name="marmotinni-setup"  description="download and set up marmotinni">
-        <subant target="main" >
-            <fileset dir="${basedir}/marmotinni/java" includes="downloads.xml"/>
-        </subant>
-    </target>
-    
-    <target name="basictests-js" depends="basictests-compile-js,basictests-compile-java,basictests-run-js" />
-    
-    <target name="basictests-run-js" >
-        <echo>url=file://${basedir}/mustella/tests/basicTests/bin/js-debug/index.html</echo>
-        <echo>script=${basedir}/mustella/tests/basicTests/halo/scripts/ButtonTestScript.mxml</echo>
-        <echo>script=${basedir}/mustella/tests/basicTests/halo/scripts/CheckBoxTestScript.mxml</echo>
-		<java classname="marmotinni.MarmotinniRunner" classpath="${basedir}/mustella/java/bin" fork="true" failonerror="yes">
-		    <!--<arg value="browser=chrome" />-->
-		    <arg value="url=file://${basedir}/mustella/tests/bin/js-debug/index.html" />
-		    <arg value="script=${basedir}/mustella/tests/basicTests/halo/scripts/ButtonTestScript.mxml" />
-		    <arg value="script=${basedir}/mustella/tests/basicTests/halo/scripts/CheckBoxTestScript.mxml" />
-		    <!--<arg value="showSteps=true" />-->
-            <classpath>
-            	<pathelement location="${basedir}/marmotinni/java/lib/selenium/selenium-java-2.40.0.jar"/>
-            	<pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/apache-mime4j-0.6.jar"/>
-            	<pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/bsh-1.3.0.jar"/>
-            	<pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/cglib-nodep-2.1_3.jar"/>
-            	<pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/commons-codec-1.8.jar"/>
-            	<pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/commons-collections-3.2.1.jar"/>
-            	<pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/commons-exec-1.1.jar"/>
-            	<pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/commons-io-2.2.jar"/>
-            	<pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/commons-jxpath-1.3.jar"/>
-            	<pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/commons-lang3-3.1.jar"/>
-            	<pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/commons-logging-1.1.1.jar"/>
-            	<pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/cssparser-0.9.11.jar"/>
-            	<pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/guava-15.0.jar"/>
-            	<pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/hamcrest-core-1.3.jar"/>
-            	<pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/hamcrest-library-1.3.jar"/>
-            	<pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/htmlunit-2.13.jar"/>
-            	<pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/htmlunit-core-js-2.13.jar"/>
-            	<pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/httpclient-4.3.1.jar"/>
-            	<pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/httpcore-4.3.jar"/>
-            	<pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/httpmime-4.3.1.jar"/>
-            	<pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/ini4j-0.5.2.jar"/>
-            	<pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/jcommander-1.29.jar"/>
-            	<pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/jetty-websocket-8.1.8.jar"/>
-            	<pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/jna-3.4.0.jar"/>
-            	<pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/jna-platform-3.4.0.jar"/>
-            	<pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/json-20080701.jar"/>
-            	<pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/junit-dep-4.11.jar"/>
-            	<pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/nekohtml-1.9.17.jar"/>
-            	<pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/netty-3.5.7.Final.jar"/>
-            	<pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/operadriver-1.2.jar"/>
-            	<pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/phantomjsdriver-1.1.0.jar"/>
-            	<pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/protobuf-java-2.4.1.jar"/>
-            	<pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/sac-1.3.jar"/>
-            	<pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/serializer-2.7.1.jar"/>
-            	<pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/testng-6.8.5.jar"/>
-            	<pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/xalan-2.7.1.jar"/>
-            	<pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/xercesImpl-2.10.0.jar"/>
-            	<pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/xml-apis-1.4.01.jar"/>
-            </classpath>
-		</java>
-
-    </target>
-    
-    <target name="basictests-compile-js">
-        <property name="FLEX_HOME" value="${FLEXJS_HOME}"/>
-        <property name="FALCONJX_HOME" value="${env.FALCONJX_HOME}"/>
-        <property name="GOOG_HOME" value="${env.GOOG_HOME}"/>
-        <echo message="FLEX_HOME: ${FLEX_HOME}"/>
-        <echo message="FALCONJX_HOME: ${FALCONJX_HOME}"/>
-        <echo message="GOOG_HOME: ${GOOG_HOME}"/>
-        <delete dir="${basedir}/mustella/tests/basicTests/bin" failonerror="false" />
-        <java jar="${FALCONJX_HOME}/lib/mxmlc.jar" resultProperty="errorCode"
-            fork="true">
-            <jvmarg line="${mxmlc.jvm.args}"/>
-            <jvmarg line="-Dflexlib=${FLEXJS_HOME}/frameworks}"/>
-            <arg value="+flexlib=${FLEXJS_HOME}/frameworks" />
-            <arg value="-debug" />
-            <arg value="-compiler.mxml.children-as-data" />
-            <arg value="-compiler.binding-value-change-event=org.apache.flex.events.ValueChangeEvent" />
-            <arg value="-compiler.binding-value-change-event-kind=org.apache.flex.events.ValueChangeEvent" />
-            <arg value="-compiler.binding-value-change-event-type=valueChange" />
-            <arg value="+playerglobal.version=${playerglobal.version}" />
-            <arg value="+env.PLAYERGLOBAL_HOME=${env.PLAYERGLOBAL_HOME}" />
-            <arg value="-js-output-type=FLEXJS" />
-            <arg value="-closure-lib=${GOOG_HOME}" />
-            <arg value="-sdk-js-lib=${FLEXJS_HOME}/frameworks/js/FlexJS/src" />
-            <arg value="-sdk-js-lib=${FLEXJS_HOME}/frameworks/js/FlexJS/libs" />
-            <arg value="-external-js-lib=${FLEXJS_HOME}/frameworks/js/FlexJS/src/jquery_externals.js" />
-            <arg value="-external-js-lib=${FLEXJS_HOME}/frameworks/js/FlexJS/src/createjs_externals.js" />
-            <arg value="${basedir}/mustella/tests/basicTests/BasicTestsApp.mxml" />
-        </java>
-        <fail>
-            <condition>
-                <not>
-                    <or>
-                        <equals arg1="${errorCode}" arg2="0" />
-                        <equals arg1="${errorCode}" arg2="2" />
-                    </or>
-                </not>
-            </condition>
-        </fail>
-    </target>
-    
-    <target name="basictests-compile-java" >
-        <delete dir="${basedir}/mustella/java/bin"/>
-        <mkdir dir="${basedir}/mustella/java/bin"/>
-        <javac srcdir="${basedir}/mustella/java/src/marmotinni" destdir="${basedir}/mustella/java/bin" debug="off" optimize="on">
-            <classpath>
-                <pathelement location="${basedir}/marmotinni/java/lib/selenium/selenium-java-2.40.0.jar"/>
-                <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/apache-mime4j-0.6.jar"/>
-                <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/bsh-1.3.0.jar"/>
-                <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/cglib-nodep-2.1_3.jar"/>
-                <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/commons-codec-1.8.jar"/>
-                <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/commons-collections-3.2.1.jar"/>
-                <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/commons-exec-1.1.jar"/>
-                <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/commons-io-2.2.jar"/>
-                <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/commons-jxpath-1.3.jar"/>
-                <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/commons-lang3-3.1.jar"/>
-                <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/commons-logging-1.1.1.jar"/>
-                <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/cssparser-0.9.11.jar"/>
-                <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/guava-15.0.jar"/>
-                <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/hamcrest-core-1.3.jar"/>
-                <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/hamcrest-library-1.3.jar"/>
-                <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/htmlunit-2.13.jar"/>
-                <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/htmlunit-core-js-2.13.jar"/>
-                <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/httpclient-4.3.1.jar"/>
-                <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/httpcore-4.3.jar"/>
-                <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/httpmime-4.3.1.jar"/>
-                <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/ini4j-0.5.2.jar"/>
-                <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/jcommander-1.29.jar"/>
-                <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/jetty-websocket-8.1.8.jar"/>
-                <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/jna-3.4.0.jar"/>
-                <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/jna-platform-3.4.0.jar"/>
-                <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/json-20080701.jar"/>
-                <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/junit-dep-4.11.jar"/>
-                <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/nekohtml-1.9.17.jar"/>
-                <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/netty-3.5.7.Final.jar"/>
-                <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/operadriver-1.2.jar"/>
-                <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/phantomjsdriver-1.1.0.jar"/>
-                <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/protobuf-java-2.4.1.jar"/>
-                <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/sac-1.3.jar"/>
-                <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/serializer-2.7.1.jar"/>
-                <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/testng-6.8.5.jar"/>
-                <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/xalan-2.7.1.jar"/>
-                <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/xercesImpl-2.10.0.jar"/>
-                <pathelement location="${basedir}/marmotinni/java/lib/selenium/libs/xml-apis-1.4.01.jar"/>
-            </classpath>
-        </javac>
-    </target>
-    
-    <!--
-        Tests: Mustella checkintests
-    -->
-
-    <target name="basictests-mustella" depends="mustella-setup,basictests"/>
-
-    <target name="mustella-setup" depends="prebuild,runtime-setup" description="compile mustella java file">
-    <!--
-        <ant dir="${basedir}/mustella" target="makemustellaswc">
-            <property name="use_mustella_framework_dir" value="false"/>
-        </ant>
-        <property name="moreCompilerArgs" value=""/> -->
-        <!-- compile the results parser -->
-    <!--<javac srcdir="mustella" includes="MustellaResultsParser.java"/>-->
-    </target>
-
-    <!-- To run the checkintests as well as any mustella tests need AIR for the adl and
-         a flash player content debugger.
-    -->
-    <target name="check-runtime-env" depends="check-air-home"
-        description="Check for the required runtime environment variables for the checkintests">
-        
-        <available file="${env.FLASHPLAYER_DEBUGGER}" property="FLASHPLAYER_DEBUGGER.set"/>
-        <fail message="FLASHPLAYER_DEBUGGER is ${env.FLASHPLAYER_DEBUGGER} which is not an Adobe Flash Player content debugger" 
-            unless="FLASHPLAYER_DEBUGGER.set"/>
-    </target>
-    
-    <target name="runtime-setup" depends="check-runtime-env" unless="runtime.setup"
-        description="Set flash.player and adl properties"> 
-        
-        <!-- Paths to the debug standalone flashplayer. -->
-        <!-- (windows) path to FlashPlayerDebugger.exe -->
-        <!-- (mac) path to Flash Player Debugger.app/Contents/MacOS/Flash Player Debugger -->
-        <!-- (linux) path to flashplayerdebugger -->
-        <property name="flash.player" value="${env.FLASHPLAYER_DEBUGGER}"/>
-    
-        <!-- Paths to the adl. -->
-        <condition property="adl" value="${env.AIR_HOME}/bin/adl.exe">
-            <os family="windows"/>
-        </condition>
-        <condition property="adl" value="${env.AIR_HOME}/bin/adl">
-            <os family="mac"/>
-        </condition>
-        <condition property="adl" value="${env.AIR_HOME}/bin/adl">
-            <os family="unix"/>
-        </condition>
-        
-        <property name="runtime.setup" value="done"/>
-    </target>
-
-    <target name="load-task" depends="runtime-setup">
-        <!-- load the <mxmlc> task; we can't do this at the <project> level -->
-        <!-- because targets that run before flexTasks.jar gets built would fail -->
-        <taskdef resource="flexTasks.tasks" classpath="${FALCON_HOME}/lib/falcon-flexTasks.jar"/>
-    </target>
-
-    <target name="basictests" depends="load-task" description="run basic tests using mustella">
-
-        <property name="FLEX_HOME" value="${basedir}" />
-        <mxmlc fork="true" debug="true"
-               file="${basedir}/mustella/tests/basicTests/BasicTestsApp.mxml">
-            <jvmarg line="${mxmlc.jvm.args}"/>
-            <arg line="-compiler.mxml.children-as-data=true" />
-            <library-path dir="${FLEX_SDK_HOME}" append="true">
-                <include name="mustella/mustella.swc"/>
-            </library-path>
-        </mxmlc>
-        <!-- compile supporting swfs for basic tests
-        <mxmlc fork="true"
-               file="${basedir}/frameworks/tests/basicTests/basicLoader.as">
-            <jvmarg line="${mxmlc.jvm.args}"/>
-        </mxmlc>
-        <mxmlc fork="true"
-               file="${basedir}/frameworks/tests/basicTests/spark/views/StyleManagerModuleTest.mxml">
-            <jvmarg line="${mxmlc.jvm.args}"/>
-        </mxmlc>
-        <mxmlc fork="true"
-               file="${basedir}/frameworks/tests/basicTests/spark/views/HelloWorld.mxml"
-                     static-rsls="false"
-                     remove-unused-rsls="true" >
-            <jvmarg line="${mxmlc.jvm.args}"/>
-        </mxmlc>
-         -->
-        <!-- run the component smoke -->
-        <echo message="launching player and swf"/>
-        <exec executable="${flash.player}" dir="${basedir}/mustella/tests/basicTests" failonerror="true">
-            <arg value="${basedir}/mustella/tests/basicTests/BasicTestsApp.swf"/>
-        </exec>
-        <!-- halt if there was an error -->
-        <antcall target="mustellaresultsparser"/>
-    </target>
-
-    <target name="mustellaresultsparser">
-        <java classname="mustella.MustellaResultsParser" failonerror="true">
-            <sysproperty key="APPDATA" value="${env.APPDATA}"/>
-            <classpath>
-                <pathelement location="${FLEX_SDK_HOME}"/>
-            </classpath>
-        </java>
-    </target>
-
-
-    <target name="clean-dependencychecker" description="Clean up the generated java files from dependency checker">
-        <!-- not currently in Apache Flex -->
-        <!--
-        <delete>
-            <fileset dir="${basedir}/tools/dependencychecker" includes="**/*.class"/>
-        </delete>
-        -->
-    </target>
-
-    <target name="setup-dependencychecker" description="Compile dependency checker java files" depends="clean-dependencychecker">
-        <javac srcdir="${basedir}/tools/dependencychecker"/>
-    </target>
-
-    <target name="dependencychecker-framework" description="Run dependency checker on framework.swc" depends="setup-dependencychecker">
-        <!-- need fork b/c running java from another dir -->
-        <java dir="${basedir}/tools/dependencychecker" fork="true" classname="flex.tools.dependencychecker.DependencyChecker" failonerror="true">
-            <classpath>
-                <pathelement location="${basedir}/tools/dependencychecker"/>
-            </classpath>
-            <arg value="${basedir}/frameworks/libs/framework.swc" />
-        	<arg value="frameworkSwcExceptionsList.txt"/>
-        </java>
-    </target>
-   
-	<!--
-	    Run the Apache Rat audit tool against the source in the source kit.
-	    The report is written to rat.report.
-	    
-	    To check a subset of files run with -Drat.dir=<dir>.
-	    
-	    You need to place apache-rat-tasks-0.8.jar and apache-rat-0.8.jar in the 
-	    anttask.classpath in order to do this.  If the jar isn't found, the report
-	    will not be generated.
-	--> 
-    <target name="rat-check" depends="rat-taskdef" if="have.rattasks"
-        description="Report on licenses in source kit.">
-    
-        <property name="rat.dir" value="${basedir}/temp"/>
-        <antcall target="rat-unzip" />
-        
-        <property name="rat.report" value="${basedir}/rat.report"/>
-        <echo message="Checking files at ${rat.dir}, report is ${rat.report}"/>
-             
-        <rat:report xmlns:rat="antlib:org.apache.rat.anttasks" reportFile="${rat.report}">
-            <fileset dir="${rat.dir}">
-                <!--          Start of binary files           -->
-                <!-- exclude media (png, gif, jpg, mp3, flv) -->
-                <exclude name="**/*.png"/>
-                <exclude name="**/*.gif"/>
-                <exclude name="**/*.jpg"/>
-                <exclude name="**/*.mp3"/>
-                <exclude name="**/*.flv"/>
-                <!--          End of binary files           -->
-                <!--          JSHint properties file           -->
-                <exclude name="frameworks/js/jshint.properties"/>
-            </fileset>
-        </rat:report>
-    </target>
-
-    <target name="rat-unzip" unless="no.zip">
-        <antcall target="clean-temp" />
-        <unzip src="${basedir}/out/${source.kit}.zip" dest="${rat.dir}"/>
-    </target>
-    
-    <target name="rat-taskdef" description="Rat taskdef"> 
-        <available property="have.rattasks" 
-            resource="org/apache/rat/anttasks/antlib.xml" 
-            classpathref="anttask.classpath"/>
-
-        <antcall target="have-rattasks"/>
-        <antcall target="no-rattasks"/>
-    </target>
-
-    <target name="have-rattasks" if="have.rattasks">
-        <typedef resource="org/apache/rat/anttasks/antlib.xml"
-                 uri="antlib:org.apache.rat.anttasks"
-                 classpathref="anttask.classpath"/>                 
-    </target>
-    
-    <target name="no-rattasks" unless="have.rattasks">
-        <echo message="Rat report not generated."/>
-        <echo message="rat jars (apache-rat-*.jar, apache-rat-tasks-*.jar)"/>
-        <echo message="not found in anttask.classpath"/>
-    </target>
-    
-    <target name="rat-check-mustella" depends="rat-taskdef" if="have.rattasks"
-        description="Report on licenses in mustella directory.">
-    
-        <ant dir="${basedir}/mustella" target="clean"/>
-        
-        <property name="rat.mustella.dir" value="${basedir}/mustella"/>
-        <property name="rat.mustella.report" value="rat.mustella.report"/>
-                
-        <echo message="Checking files at ${rat.mustella.dir}, report is ${basedir}/${rat.mustella.report}"/>
-             
-        <rat:report xmlns:rat="antlib:org.apache.rat.anttasks" 
-            reportFile="${basedir}/${rat.mustella.report}">
-            <fileset dir="${rat.mustella.dir}">
-                <!--          Start of binary files           -->
-                <!-- exclude media (png, gif, jpg, mp3, flv) -->
-                <exclude name="assets/**"/>
-                <exclude name="tests/**/*.png"/>
-                <exclude name="tests/**/*.gif"/>
-                <exclude name="tests/**/*.jpg"/>
-                <exclude name="tests/**/*.mp3"/>
-                <exclude name="tests/**/*.flv"/>
-                <!--          End of binary files           -->
-                <exclude name="tests/**/*.compile"/>
-            </fileset>
-        </rat:report>
-    </target>
-	
-	<target name="create-md5" >
-		<echo message="Generating MD5 hashes for release artifacts"/>
-		<checksum algorithm="md5" file="${basedir}/out/${binary.kit}.tar.gz" forceOverwrite="yes"/>
-		<checksum algorithm="md5" file="${basedir}/out/${binary.kit}.zip" forceOverwrite="yes"/>
-		<checksum algorithm="md5" file="${basedir}/out/${source.kit}.tar.gz" forceOverwrite="yes"/>
-		<checksum algorithm="md5" file="${basedir}/out/${source.kit}.zip" forceOverwrite="yes"/>
-	</target>
+  <target name="clean" depends="" description="Cleans all possible 'garbage'">
+    <ant dir="${basedir}/frameworks/as" target="clean"/>
+  </target>
 
-    <target name="sign" >
-        <exec executable="gpg">
-            <arg value="--armor" />
-            <arg value="--output" />
-            <arg value="${basedir}/out/${source.kit}.zip.asc" />
-            <arg value="--detach-sig" />
-            <arg value="${basedir}/out/${source.kit}.zip" />
-        </exec>
-        
-        <exec executable="gpg">
-            <arg value="--armor" />
-            <arg value="--output" />
-            <arg value="${basedir}/out/${source.kit}.tar.gz.asc" />
-            <arg value="--detach-sig" />
-            <arg value="${basedir}/out/${source.kit}.tar.gz" />
-        </exec>
-        
-        <exec executable="gpg">
-            <arg value="--armor" />
-            <arg value="--output" />
-            <arg value="${basedir}/out/${binary.kit}.zip.asc" />
-            <arg value="--detach-sig" />
-            <arg value="${basedir}/out/${binary.kit}.zip" />
-        </exec>
-        
-        <exec executable="gpg">
-            <arg value="--armor" />
-            <arg value="--output" />
-            <arg value="${basedir}/out/${binary.kit}.tar.gz.asc" />
-            <arg value="--detach-sig" />
-            <arg value="${basedir}/out/${binary.kit}.tar.gz" />
-        </exec>
-    </target>
-        
-	<target name="doc-create-md5" >
-		<echo message="Generating MD5 hashes for doc artifacts"/>
-		<checksum algorithm="md5" file="${basedir}/out/${kit.prefix}-asdocs.zip" forceOverwrite="yes"/>
-	</target>
-	
-    <target name="doc-sign" >
-        <exec executable="gpg">
-            <arg value="--armor" />
-            <arg value="--output" />
-            <arg value="${basedir}/out/${kit.prefix}-asdocs.zip.asc" />
-            <arg value="--detach-sig" />
-            <arg value="${basedir}/out/${kit.prefix}-asdocs.zip" />
-        </exec>
-	</target>
-	
 </project>


[07/10] git commit: [flex-asjs] [refs/heads/develop] - Adjustments to make FB launch config work properly.

Posted by er...@apache.org.
Adjustments to make FB launch config work properly.

Signed-off-by: Erik de Bruin <er...@ixsoftware.nl>


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/53f9a975
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/53f9a975
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/53f9a975

Branch: refs/heads/develop
Commit: 53f9a97523f472c26a74de9dbac6cb7ba03afb65
Parents: 37323f4
Author: Erik de Bruin <er...@ixsoftware.nl>
Authored: Tue Aug 5 15:26:32 2014 +0200
Committer: Erik de Bruin <er...@ixsoftware.nl>
Committed: Tue Aug 5 15:26:32 2014 +0200

----------------------------------------------------------------------
 vf2js/build.xml                                 | 122 ++++++++++++++++++-
 .../VF2JS (Debug and Release Build).launch      |   2 +-
 vf2js/js/vf2js/falconjx/bin/mxmlc               |   7 +-
 3 files changed, 122 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/53f9a975/vf2js/build.xml
----------------------------------------------------------------------
diff --git a/vf2js/build.xml b/vf2js/build.xml
index 9daa161..a63b75e 100644
--- a/vf2js/build.xml
+++ b/vf2js/build.xml
@@ -36,17 +36,33 @@
     
   <property name="flex.sdk.loc" value="${basedir}/../../flex-sdk" />
 
+  <!-- ==
+    Setup
+  === -->
+
+  <condition property="platform" value="windows">
+      <os family="windows" />
+  </condition>
+
+  <condition property="isWindows" value="windows">
+      <os family="windows" />
+  </condition>
+
+
+
   <!-- ============
     Primary targets
   ============= -->
 
-  <target name="main" depends="clean,build.as.frameworks" description="Build binaries from source" />
+  <target name="build.release" depends="" description="Build release artefacts" />
 
-  <target name="install" depends="main" description="Install to chosen (-Dflex.sdk.loc) directory">
-  </target>
+  <target name="download.deps" depends="overlay.falconjx" description="Download VF2JS dependencies" />
 
-  <target name="build.release" depends="" description="Build release artefacts">
-  </target>
+  <target name="install" depends="main,clean.sdk,overlay.sdk,build.examples" description="Overlay VF2JS on chosen (-Dflex.sdk.loc) directory" />
+
+  <target name="main" depends="clean,build.as.frameworks" description="Build binaries from source" />
+
+  <target name="overlay.sdk" depends="download.deps,copy.examples,copy.as.swcs,copy.falconjx.scripts,copy.js.framework,copy.launch.config" description="Overlay VF2JS on Flex SDK" />
 
 
 
@@ -58,6 +74,83 @@
     <ant dir="${basedir}/frameworks/as" />
   </target>
 
+  <target name="build.examples" depends="" description="Build VF2JS examples in newly overlayed Flex SDK">
+    <ant dir="${flex.sdk.loc}/examples/vf2js">
+      <property name="FLEX_HOME" value="${flex.sdk.loc}" />
+      <property name="FALCONJX_HOME" value="${flex.sdk.loc}/js/vf2js/falconjx" />
+      <property name="GOOG_HOME" value="${flex.sdk.loc}/js/vf2js/falconjx/lib/google/closure-library" />
+    </ant>
+  </target>
+
+  <target name="copy.examples" depends="" description="Copy VF2JS examples to Flex SDK">
+    <copy todir="${flex.sdk.loc}/examples/vf2js" overwrite="true">
+      <fileset dir="${basedir}/examples" />
+    </copy>
+  </target>
+
+  <target name="copy.falconjx.scripts" depends="" description="Copy customized FalconJS scripts - mxmlc and mxmlc.bat - to Flex SDK">
+    <copy todir="${flex.sdk.loc}/js/vf2js/falconjx/bin" overwrite="true">
+      <fileset dir="${basedir}/js/vf2js/falconjx/bin" />
+    </copy>
+    <antcall target="chmod" />
+  </target>
+
+  <target name="copy.js.framework" depends="" description="Copy VF2JS JS framework to Flex SDK">
+    <copy todir="${flex.sdk.loc}/frameworks/js/vf2js/src" overwrite="true">
+      <fileset dir="${basedir}/frameworks/js/vf2js/src" />
+    </copy>
+  </target>
+
+  <target name="copy.launch.config" depends="" description="Copy launch config to Flex SDK">
+    <copy todir="${flex.sdk.loc}/ide/flashbuilder/launch" overwrite="true">
+      <fileset dir="${basedir}/ide/flashbuilder/launch" />
+    </copy>
+    <replace file="${flex.sdk.loc}/ide/flashbuilder/launch/VF2JS (Debug and Release Build).launch">
+        <replacefilter token="$MXMLC" value="mxmlc"/>
+        <replacefilter token="$FLEX_HOME" value="${flex.sdk.loc}"/>
+    </replace>
+  </target>
+
+  <target name="copy.as.swcs" depends="" description="Copy VF2JS SWCs to Flex SDK">
+    <ant dir="${basedir}/frameworks/as" target="copy.to.sdk" />
+  </target>
+
+  <target name="download.falconjx" depends="" description="Download FalconJX nightly binary">
+    <!-- apache-flex-falconjx-0.0.2-bin.tar.gz -->
+  </target>
+
+  <target name="overlay.falconjx" depends="download.falconjx,unzip.falconjx" description="Overlay FalconJX artefacts on Flex SDK">
+    <!-- Falcon -->
+    <copy todir="${flex.sdk.loc}/js/vf2js/lib" overwrite="true">
+      <fileset file="${basedir}/in/apache-flex-falconjx-0.0.2-bin/compiler/generated/dist/sdk/lib/compiler.jar" />
+    </copy>
+    <!-- FalconJX -->
+    <copy todir="${flex.sdk.loc}/js/vf2js/falconjx/lib" overwrite="true">
+      <fileset file="${basedir}/in/apache-flex-falconjx-0.0.2-bin/js/lib/jsc.jar" />
+      <fileset file="${basedir}/in/apache-flex-falconjx-0.0.2-bin/js/lib/mxmlc.jar" />
+    </copy>
+    <!-- Antlr -->
+    <copy tofile="${flex.sdk.loc}/js/vf2js/lib/external/antlr.jar" overwrite="true">
+      <fileset file="${basedir}/in/antlr.jar" />
+    </copy>
+    <!-- Commons-IO -->
+    <copy tofile="${flex.sdk.loc}/js/vf2js/falconjx/lib/commons-io.jar" overwrite="true">
+      <fileset file="${basedir}/in/commons-io-2.4/commons-io-2.4.jar" />
+    </copy>
+    <!-- Closure Compiler -->
+    <copy todir="${flex.sdk.loc}/js/vf2js/falconjx/lib/google/closure-compiler" overwrite="true">
+      <fileset dir="${basedir}/in/closure-compiler" />
+    </copy>
+    <!-- Closure Library -->
+    <copy todir="${flex.sdk.loc}/js/vf2js/falconjx/lib/google/closure-library" overwrite="true">
+      <fileset dir="${basedir}/in/closure-library" />
+    </copy>
+  </target>
+
+  <target name="unzip.falconjx" depends="" description="Unzip FalconJX artefact">
+    
+  </target>
+
 
 
   <!-- ============
@@ -68,4 +161,23 @@
     <ant dir="${basedir}/frameworks/as" target="clean"/>
   </target>
 
+  <target name="clean.sdk" depends="" description="Cleans previous VF2JS overlay">
+    <delete dir="${flex.sdk.loc}/examples/vf2js" />
+    <delete dir="${flex.sdk.loc}/js/vf2js" />
+    <delete dir="${flex.sdk.loc}/frameworks/js/vf2js" />
+    <delete>
+      <fileset dir="${flex.sdk.loc}/ide/flashbuilder/launch" includes="VF2JS*" />
+    </delete>
+    <delete>
+      <fileset dir="${flex.sdk.loc}/frameworks/libs" includes="vf2js_*" />
+    </delete>
+  </target>
+
+  <target name="chmod" unless="isWindows" description="Make mxmlc script executable">
+      <exec executable="chmod" dir="${flex.sdk.loc}">
+          <arg value="+x" />
+          <arg value="${flex.sdk.loc}/js/vf2js/falconjx/bin/mxmlc"/>
+      </exec>
+  </target>
+  
 </project>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/53f9a975/vf2js/ide/flashbuilder/launch/VF2JS (Debug and Release Build).launch
----------------------------------------------------------------------
diff --git a/vf2js/ide/flashbuilder/launch/VF2JS (Debug and Release Build).launch b/vf2js/ide/flashbuilder/launch/VF2JS (Debug and Release Build).launch
index 6b56fd9..ed4b96e 100644
--- a/vf2js/ide/flashbuilder/launch/VF2JS (Debug and Release Build).launch	
+++ b/vf2js/ide/flashbuilder/launch/VF2JS (Debug and Release Build).launch	
@@ -23,6 +23,6 @@
 <listEntry value='org.eclipse.ui.externaltools.launchGroup'/>
 </listAttribute>
 <stringAttribute key='org.eclipse.ui.externaltools.ATTR_LAUNCH_CONFIGURATION_BUILD_SCOPE' value='${project}'/>
-<stringAttribute key='org.eclipse.ui.externaltools.ATTR_LOCATION' value='$VF2JS_HOME/js/vf2js/falconjx/bin/$MXMLC'/>
+<stringAttribute key='org.eclipse.ui.externaltools.ATTR_LOCATION' value='$FLEX_HOME/js/vf2js/falconjx/bin/$MXMLC'/>
 <stringAttribute key='org.eclipse.ui.externaltools.ATTR_TOOL_ARGUMENTS' value='-fb &quot;${project_loc}&quot;'/>
 </launchConfiguration>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/53f9a975/vf2js/js/vf2js/falconjx/bin/mxmlc
----------------------------------------------------------------------
diff --git a/vf2js/js/vf2js/falconjx/bin/mxmlc b/vf2js/js/vf2js/falconjx/bin/mxmlc
index 05df71b..c868028 100755
--- a/vf2js/js/vf2js/falconjx/bin/mxmlc
+++ b/vf2js/js/vf2js/falconjx/bin/mxmlc
@@ -25,8 +25,9 @@
 # In Windows Command Prompt, use mxmlc.bat instead.
 #
 
-FLEX_HOME=`dirname $0`/../../../..
-FALCON_HOME=$FLEX_HOME/js/vf2js
+SCRIPT_HOME=$(dirname "$0")
+FLEX_HOME=${SCRIPT_HOME}/../../../..
+FALCON_HOME=${FLEX_HOME}/js/vf2js
 
 echo Using Flex SDK: $FLEX_HOME
 echo Using Falcon compiler: $FALCON_HOME
@@ -59,4 +60,4 @@ fi
 
 VMARGS="-Xmx384m -Dsun.io.useCanonCaches=false "
 
-java $VMARGS $D32 -Dflexcompiler="$FALCON_HOME" -jar "$FLEX_HOME/js/vf2js/falconjx/lib/mxmlc.jar" -load-config="$FLEX_HOME/frameworks/flex-config.xml" -js-output-type=VF2JS -sdk-js-lib="$FLEX_HOME/frameworks/js/src" "$@"
+java $VMARGS $D32 -Dflexcompiler="$FALCON_HOME" -jar "$FLEX_HOME/js/vf2js/falconjx/lib/mxmlc.jar" -load-config="$FLEX_HOME/frameworks/flex-config.xml" -js-output-type=VF2JS "$@"