You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2013/11/19 21:40:21 UTC
[1/8] Factor out MXMLCClasses into it own swc and build a set of ant
scripts to build it and FlexJSUI
Updated Branches:
refs/heads/develop 66246d8a8 -> 6849d4cef
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d7e70f9a/frameworks/as/projects/MXMLCClasses/src/mx/binding/IBindingClient.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/MXMLCClasses/src/mx/binding/IBindingClient.as b/frameworks/as/projects/MXMLCClasses/src/mx/binding/IBindingClient.as
new file mode 100644
index 0000000..14f2fb4
--- /dev/null
+++ b/frameworks/as/projects/MXMLCClasses/src/mx/binding/IBindingClient.as
@@ -0,0 +1,33 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.binding
+{
+
+/**
+ * @private
+ * This class is used to satisfy old MXML codegen
+ * for both Falcon and MXML, but in FlexJS with mxml.children-as-data output
+ * it isn't needed so there is no JS equivalent
+ */
+public interface IBindingClient
+{
+}
+
+}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d7e70f9a/frameworks/as/projects/MXMLCClasses/src/mx/binding/IWatcherSetupUtil2.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/MXMLCClasses/src/mx/binding/IWatcherSetupUtil2.as b/frameworks/as/projects/MXMLCClasses/src/mx/binding/IWatcherSetupUtil2.as
new file mode 100644
index 0000000..e2311d4
--- /dev/null
+++ b/frameworks/as/projects/MXMLCClasses/src/mx/binding/IWatcherSetupUtil2.as
@@ -0,0 +1,47 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.binding
+{
+
+[ExcludeClass]
+
+/**
+ * @private
+ * This class is used to satisfy old MXML codegen
+ * for both Falcon and MXML, but in FlexJS with mxml.children-as-data output
+ * it isn't needed so there is no JS equivalent
+ */
+public interface IWatcherSetupUtil2
+{
+ //--------------------------------------------------------------------------
+ //
+ // Methods
+ //
+ //--------------------------------------------------------------------------
+
+ /**
+ * @private
+ */
+ function setup(target:Object, propertyGetter:Function,
+ staticPropertyGetter:Function,
+ bindings:Array, watchers:Array):void;
+}
+
+}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d7e70f9a/frameworks/as/projects/MXMLCClasses/src/mx/binding/PropertyWatcher.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/MXMLCClasses/src/mx/binding/PropertyWatcher.as b/frameworks/as/projects/MXMLCClasses/src/mx/binding/PropertyWatcher.as
new file mode 100644
index 0000000..6bad414
--- /dev/null
+++ b/frameworks/as/projects/MXMLCClasses/src/mx/binding/PropertyWatcher.as
@@ -0,0 +1,148 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.binding
+{
+
+[ExcludeClass]
+
+/**
+ * @private
+ * This class is used to satisfy old MXML codegen
+ * for both Falcon and MXML, but in FlexJS with mxml.children-as-data output
+ * it isn't needed so there is no JS equivalent
+ */
+public class PropertyWatcher extends Watcher
+{
+
+ //--------------------------------------------------------------------------
+ //
+ // Constructor
+ //
+ //--------------------------------------------------------------------------
+
+ /**
+ * Create a PropertyWatcher
+ *
+ * @param prop The name of the property to watch.
+ * @param event The event type that indicates the property has changed.
+ * @param listeners The binding objects that are listening to this Watcher.
+ * @param propertyGetter A helper function used to access non-public variables.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 9
+ * @playerversion AIR 1.1
+ * @productversion Flex 3
+ */
+ public function PropertyWatcher(propertyName:String,
+ events:Object,
+ listeners:Array,
+ propertyGetter:Function = null)
+ {
+ super(listeners);
+
+ }
+
+ //--------------------------------------------------------------------------
+ //
+ // Variables
+ //
+ //--------------------------------------------------------------------------
+
+ /**
+ * The parent object of this property.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 9
+ * @playerversion AIR 1.1
+ * @productversion Flex 3
+ */
+ private var parentObj:Object;
+
+ /**
+ * The events that indicate the property has changed
+ *
+ * @langversion 3.0
+ * @playerversion Flash 9
+ * @playerversion AIR 1.1
+ * @productversion Flex 3
+ */
+ protected var events:Object;
+
+ /**
+ * Storage for the propertyGetter property.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 9
+ * @playerversion AIR 1.1
+ * @productversion Flex 3
+ */
+ protected var propertyGetter:Function;
+
+ //--------------------------------------------------------------------------
+ //
+ // Properties
+ //
+ //--------------------------------------------------------------------------
+
+ //----------------------------------
+ // propertyName
+ //----------------------------------
+
+ /**
+ * Storage for the propertyName property.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 9
+ * @playerversion AIR 1.1
+ * @productversion Flex 3
+ */
+ private var _propertyName:String;
+
+ /**
+ * The name of the property this Watcher is watching.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 9
+ * @playerversion AIR 1.1
+ * @productversion Flex 3
+ */
+ public function get propertyName():String
+ {
+ return _propertyName;
+ }
+
+ //----------------------------------
+ // useRTTI
+ //----------------------------------
+
+ /**
+ * If compiler can't determine bindability from static type,
+ * use RTTI on runtime values.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 9
+ * @playerversion AIR 1.1
+ * @productversion Flex 3
+ */
+ private var useRTTI:Boolean;
+
+}
+
+}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d7e70f9a/frameworks/as/projects/MXMLCClasses/src/mx/binding/RepeaterComponentWatcher.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/MXMLCClasses/src/mx/binding/RepeaterComponentWatcher.as b/frameworks/as/projects/MXMLCClasses/src/mx/binding/RepeaterComponentWatcher.as
new file mode 100644
index 0000000..b16f2ae
--- /dev/null
+++ b/frameworks/as/projects/MXMLCClasses/src/mx/binding/RepeaterComponentWatcher.as
@@ -0,0 +1,74 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.binding
+{
+
+
+[ExcludeClass]
+
+/**
+ * @private
+ */
+public class RepeaterComponentWatcher extends PropertyWatcher
+{
+
+ //--------------------------------------------------------------------------
+ //
+ // Constructor
+ //
+ //--------------------------------------------------------------------------
+
+ /**
+ * @private
+ *
+ * Create a RepeaterComponentWatcher
+ *
+ * @param prop The name of the property to watch.
+ * @param event The event type that indicates the property has changed.
+ * @param listeners The binding objects that are listening to this Watcher.
+ * @param propertyGetter A helper function used to access non-public variables.
+ */
+ public function RepeaterComponentWatcher(propertyName:String,
+ events:Object,
+ listeners:Array,
+ propertyGetter:Function = null)
+ {
+ super(propertyName, events, listeners, propertyGetter);
+ }
+
+ //--------------------------------------------------------------------------
+ //
+ // Properties
+ //
+ //--------------------------------------------------------------------------
+
+ /**
+ * @private
+ */
+ private var clones:Array;
+
+ /**
+ * @private
+ */
+ private var original:Boolean = true;
+
+}
+
+}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d7e70f9a/frameworks/as/projects/MXMLCClasses/src/mx/binding/RepeaterItemWatcher.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/MXMLCClasses/src/mx/binding/RepeaterItemWatcher.as b/frameworks/as/projects/MXMLCClasses/src/mx/binding/RepeaterItemWatcher.as
new file mode 100644
index 0000000..8d5e8e2
--- /dev/null
+++ b/frameworks/as/projects/MXMLCClasses/src/mx/binding/RepeaterItemWatcher.as
@@ -0,0 +1,74 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.binding
+{
+
+[ExcludeClass]
+
+/**
+ * @private
+ * This class is used to satisfy old MXML codegen
+ * for both Falcon and MXML, but in FlexJS with mxml.children-as-data output
+ * it isn't needed so there is no JS equivalent
+ */
+public class RepeaterItemWatcher extends Watcher
+{
+
+ //--------------------------------------------------------------------------
+ //
+ // Constructor
+ //
+ //--------------------------------------------------------------------------
+
+ /**
+ * @private
+ * Constructor.
+ */
+ public function RepeaterItemWatcher(dataProviderWatcher:PropertyWatcher)
+ {
+ super();
+
+ this.dataProviderWatcher = dataProviderWatcher;
+ }
+
+ //--------------------------------------------------------------------------
+ //
+ // Properties
+ //
+ //--------------------------------------------------------------------------
+
+ /**
+ * @private
+ */
+ private var dataProviderWatcher:PropertyWatcher;
+
+ /**
+ * @private
+ */
+ private var clones:Array;
+
+ /**
+ * @private
+ */
+ private var original:Boolean = true;
+
+}
+
+}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d7e70f9a/frameworks/as/projects/MXMLCClasses/src/mx/binding/StaticPropertyWatcher.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/MXMLCClasses/src/mx/binding/StaticPropertyWatcher.as b/frameworks/as/projects/MXMLCClasses/src/mx/binding/StaticPropertyWatcher.as
new file mode 100644
index 0000000..726211a
--- /dev/null
+++ b/frameworks/as/projects/MXMLCClasses/src/mx/binding/StaticPropertyWatcher.as
@@ -0,0 +1,136 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.binding
+{
+
+[ExcludeClass]
+
+/**
+ * @private
+ * This class is used to satisfy old MXML codegen
+ * for both Falcon and MXML, but in FlexJS with mxml.children-as-data output
+ * it isn't needed so there is no JS equivalent
+ */
+public class StaticPropertyWatcher extends Watcher
+{
+
+ //--------------------------------------------------------------------------
+ //
+ // Constructor
+ //
+ //--------------------------------------------------------------------------
+
+ /**
+ * Create a StaticPropertyWatcher
+ *
+ * @param prop The name of the static property to watch.
+ * @param event The event type that indicates the static property has changed.
+ * @param listeners The binding objects that are listening to this Watcher.
+ * @param propertyGetter A helper function used to access non-public variables.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 9
+ * @playerversion AIR 1.1
+ * @productversion Flex 3
+ */
+ public function StaticPropertyWatcher(propertyName:String,
+ events:Object,
+ listeners:Array,
+ propertyGetter:Function = null)
+ {
+ super(listeners);
+
+ _propertyName = propertyName;
+ this.events = events;
+ this.propertyGetter = propertyGetter;
+ }
+
+ //--------------------------------------------------------------------------
+ //
+ // Variables
+ //
+ //--------------------------------------------------------------------------
+
+ /**
+ * The parent class of this static property.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 9
+ * @playerversion AIR 1.1
+ * @productversion Flex 3
+ */
+ private var parentObj:Class;
+
+ /**
+ * The events that indicate the static property has changed
+ *
+ * @langversion 3.0
+ * @playerversion Flash 9
+ * @playerversion AIR 1.1
+ * @productversion Flex 3
+ */
+ protected var events:Object;
+
+ /**
+ * Storage for the propertyGetter property.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 9
+ * @playerversion AIR 1.1
+ * @productversion Flex 3
+ */
+ private var propertyGetter:Function;
+
+ //--------------------------------------------------------------------------
+ //
+ // Properties
+ //
+ //--------------------------------------------------------------------------
+
+ //----------------------------------
+ // propertyName
+ //----------------------------------
+
+ /**
+ * Storage for the propertyName property.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 9
+ * @playerversion AIR 1.1
+ * @productversion Flex 3
+ */
+ private var _propertyName:String;
+
+ /**
+ * The name of the property this Watcher is watching.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 9
+ * @playerversion AIR 1.1
+ * @productversion Flex 3
+ */
+ public function get propertyName():String
+ {
+ return _propertyName;
+ }
+
+}
+
+}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d7e70f9a/frameworks/as/projects/MXMLCClasses/src/mx/binding/Watcher.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/MXMLCClasses/src/mx/binding/Watcher.as b/frameworks/as/projects/MXMLCClasses/src/mx/binding/Watcher.as
new file mode 100644
index 0000000..39df030
--- /dev/null
+++ b/frameworks/as/projects/MXMLCClasses/src/mx/binding/Watcher.as
@@ -0,0 +1,88 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.binding
+{
+
+[ExcludeClass]
+
+/**
+ * @private
+ * This class is used to satisfy old MXML codegen
+ * for both Falcon and MXML, but in FlexJS with mxml.children-as-data output
+ * it isn't needed so there is no JS equivalent
+ */
+public class Watcher
+{
+
+ //--------------------------------------------------------------------------
+ //
+ // Constructor
+ //
+ //--------------------------------------------------------------------------
+
+ /**
+ * Constructor.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 9
+ * @playerversion AIR 1.1
+ * @productversion Flex 3
+ */
+ public function Watcher(listeners:Array = null)
+ {
+ super();
+
+ this.listeners = listeners;
+ }
+
+ //--------------------------------------------------------------------------
+ //
+ // Variables
+ //
+ //--------------------------------------------------------------------------
+
+ /**
+ * @private
+ * The binding objects that are listening to this Watcher.
+ * The standard event mechanism isn't used because it's too heavyweight.
+ */
+ protected var listeners:Array;
+
+ /**
+ * @private
+ * Children of this watcher are watching sub values.
+ */
+ protected var children:Array;
+
+ /**
+ * @private
+ * The value itself.
+ */
+ public var value:Object;
+
+ /**
+ * @private
+ * Keep track of cloning when used in Repeaters.
+ */
+ protected var cloneIndex:int;
+
+}
+
+}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d7e70f9a/frameworks/as/projects/MXMLCClasses/src/mx/binding/XMLWatcher.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/MXMLCClasses/src/mx/binding/XMLWatcher.as b/frameworks/as/projects/MXMLCClasses/src/mx/binding/XMLWatcher.as
new file mode 100644
index 0000000..b324638
--- /dev/null
+++ b/frameworks/as/projects/MXMLCClasses/src/mx/binding/XMLWatcher.as
@@ -0,0 +1,106 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.binding
+{
+
+[ExcludeClass]
+
+/**
+ * @private
+ * This class is used to satisfy old MXML codegen
+ * for both Falcon and MXML, but in FlexJS with mxml.children-as-data output
+ * it isn't needed so there is no JS equivalent
+ */
+public class XMLWatcher extends Watcher
+{
+
+ //--------------------------------------------------------------------------
+ //
+ // Constructor
+ //
+ //--------------------------------------------------------------------------
+
+ /**
+ * Constructor.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 9
+ * @playerversion AIR 1.1
+ * @productversion Flex 3
+ */
+ public function XMLWatcher(propertyName:String, listeners:Array)
+ {
+ super(listeners);
+
+ _propertyName = propertyName;
+ }
+
+ //--------------------------------------------------------------------------
+ //
+ // Variables
+ //
+ //--------------------------------------------------------------------------
+
+ /**
+ * The parent object of this property.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 9
+ * @playerversion AIR 1.1
+ * @productversion Flex 3
+ */
+ private var parentObj:Object;
+
+ //--------------------------------------------------------------------------
+ //
+ // Properties
+ //
+ //--------------------------------------------------------------------------
+
+ //----------------------------------
+ // propertyName
+ //----------------------------------
+
+ /**
+ * Storage for the propertyName property.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 9
+ * @playerversion AIR 1.1
+ * @productversion Flex 3
+ */
+ private var _propertyName:String;
+
+ /**
+ * The name of the property this Watcher is watching.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 9
+ * @playerversion AIR 1.1
+ * @productversion Flex 3
+ */
+ public function get propertyName():String
+ {
+ return _propertyName;
+ }
+
+}
+
+}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d7e70f9a/frameworks/as/projects/MXMLCClasses/src/mx/core/ClassFactory.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/MXMLCClasses/src/mx/core/ClassFactory.as b/frameworks/as/projects/MXMLCClasses/src/mx/core/ClassFactory.as
new file mode 100644
index 0000000..8ca4e79
--- /dev/null
+++ b/frameworks/as/projects/MXMLCClasses/src/mx/core/ClassFactory.as
@@ -0,0 +1,100 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.core
+{
+/**
+ * @private
+ * This class is used to satisfy old MXML codegen
+ * for both Falcon and MXML, but in FlexJS with mxml.children-as-data output
+ * it isn't needed so there is no JS equivalent
+ */
+public class ClassFactory implements IFactory
+{
+
+ //--------------------------------------------------------------------------
+ //
+ // Constructor
+ //
+ //--------------------------------------------------------------------------
+
+ /**
+ * Constructor.
+ *
+ * @param generator The Class that the <code>newInstance()</code> method uses
+ * to generate objects from this factory object.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 9
+ * @playerversion AIR 1.1
+ * @productversion Flex 3
+ */
+ public function ClassFactory(generator:Class = null)
+ {
+ super();
+ }
+
+ //--------------------------------------------------------------------------
+ //
+ // Properties
+ //
+ //--------------------------------------------------------------------------
+
+ //----------------------------------
+ // generator
+ //----------------------------------
+
+ /**
+ * The Class that the <code>newInstance()</code> method uses
+ * to generate objects from this factory object.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 9
+ * @playerversion AIR 1.1
+ * @productversion Flex 3
+ */
+ public var generator:Class;
+
+ //----------------------------------
+ // properties
+ //----------------------------------
+
+ /**
+ * An Object whose name/value pairs specify the properties to be set
+ * on each object generated by the <code>newInstance()</code> method.
+ *
+ * <p>For example, if you set <code>properties</code> to
+ * <code>{ text: "Hello", width: 100 }</code>, then every instance
+ * of the <code>generator</code> class that is generated by calling
+ * <code>newInstance()</code> will have its <code>text</code> set to
+ * <code>"Hello"</code> and its <code>width</code> set to
+ * <code>100</code>.</p>
+ *
+ * @default null
+ *
+ * @langversion 3.0
+ * @playerversion Flash 9
+ * @playerversion AIR 1.1
+ * @productversion Flex 3
+ */
+ public var properties:Object = null;
+
+}
+
+}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d7e70f9a/frameworks/as/projects/MXMLCClasses/src/mx/core/DeferredInstanceFromClass.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/MXMLCClasses/src/mx/core/DeferredInstanceFromClass.as b/frameworks/as/projects/MXMLCClasses/src/mx/core/DeferredInstanceFromClass.as
new file mode 100644
index 0000000..9893d34
--- /dev/null
+++ b/frameworks/as/projects/MXMLCClasses/src/mx/core/DeferredInstanceFromClass.as
@@ -0,0 +1,115 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.core
+{
+
+/**
+ * @private
+ * This class is used to satisfy old MXML codegen
+ * for both Falcon and MXML, but in FlexJS with mxml.children-as-data output
+ * it isn't needed so there is no JS equivalent
+ */
+public class DeferredInstanceFromClass
+{
+ //--------------------------------------------------------------------------
+ //
+ // Constructor
+ //
+ //--------------------------------------------------------------------------
+
+ /**
+ * Constructor.
+ *
+ * @param generator The class whose instance the <code>getInstance()</code>
+ * method creates and returns.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 9
+ * @playerversion AIR 1.1
+ * @productversion Flex 3
+ */
+ public function DeferredInstanceFromClass(generator:Class)
+ {
+ super();
+
+ this.generator = generator;
+ }
+
+ //--------------------------------------------------------------------------
+ //
+ // Variables
+ //
+ //--------------------------------------------------------------------------
+
+ /**
+ * @private
+ * The generator class.
+ */
+ private var generator:Class;
+
+ /**
+ * @private
+ * The generated value.
+ */
+ private var instance:Object = null;
+
+ //--------------------------------------------------------------------------
+ //
+ // Methods
+ //
+ //--------------------------------------------------------------------------
+
+ /**
+ * Creates and returns an instance of the class specified in the
+ * DeferredInstanceFromClass constructor, if it does not yet exist;
+ * otherwise, returns the already-created class instance.
+ *
+ * @return An instance of the class specified in the
+ * DeferredInstanceFromClass constructor.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 9
+ * @playerversion AIR 1.1
+ * @productversion Flex 3
+ */
+ public function getInstance():Object
+ {
+ if (!instance)
+ instance = new generator();
+
+ return instance;
+ }
+
+ /**
+ * Resets the state of our factory to the initial, uninitialized state.
+ * The reference to our cached instance is cleared.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 9
+ * @playerversion AIR 1.1
+ * @productversion Flex 4
+ */
+ public function reset():void
+ {
+ instance = null;
+ }
+}
+
+}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d7e70f9a/frameworks/as/projects/MXMLCClasses/src/mx/core/DeferredInstanceFromFunction.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/MXMLCClasses/src/mx/core/DeferredInstanceFromFunction.as b/frameworks/as/projects/MXMLCClasses/src/mx/core/DeferredInstanceFromFunction.as
new file mode 100644
index 0000000..b93a277
--- /dev/null
+++ b/frameworks/as/projects/MXMLCClasses/src/mx/core/DeferredInstanceFromFunction.as
@@ -0,0 +1,131 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.core
+{
+
+/**
+ * @private
+ * This class is used to satisfy old MXML codegen
+ * for both Falcon and MXML, but in FlexJS with mxml.children-as-data output
+ * it isn't needed so there is no JS equivalent
+ */
+public class DeferredInstanceFromFunction
+{
+
+ //--------------------------------------------------------------------------
+ //
+ // Constructor
+ //
+ //--------------------------------------------------------------------------
+
+ /**
+ * Constructor.
+ *
+ * @param generator A function that creates and returns an instance
+ * of the required object.
+ *
+ * @param destructor An optional function used to cleanup outstanding
+ * references when <code>reset()</code> is called.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 9
+ * @playerversion AIR 1.1
+ * @productversion Flex 3
+ */
+ public function DeferredInstanceFromFunction(generator:Function,
+ destructor:Function = null )
+ {
+ super();
+
+ this.generator = generator;
+ this.destructor = destructor;
+ }
+
+ //--------------------------------------------------------------------------
+ //
+ // Variables
+ //
+ //--------------------------------------------------------------------------
+
+ /**
+ * @private
+ * The generator function.
+ */
+ private var generator:Function;
+
+ /**
+ * @private
+ * The generated value.
+ */
+ private var instance:Object = null;
+
+ /**
+ * @private
+ * An optional function used to cleanup outstanding
+ * references when reset() is invoked
+ */
+ private var destructor:Function;
+
+ //--------------------------------------------------------------------------
+ //
+ // Methods
+ //
+ //--------------------------------------------------------------------------
+
+ /**
+ * Returns a reference to an instance of the desired object.
+ * If no instance of the required object exists, calls the function
+ * specified in this class' <code>generator</code> constructor parameter.
+ *
+ * @return An instance of the object.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 9
+ * @playerversion AIR 1.1
+ * @productversion Flex 3
+ */
+ public function getInstance():Object
+ {
+ if (!instance)
+ instance = generator();
+
+ return instance;
+ }
+
+ /**
+ * Resets the state of our factory to the initial, uninitialized state.
+ * The reference to our cached instance is cleared.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 9
+ * @playerversion AIR 1.1
+ * @productversion Flex 4
+ */
+ public function reset():void
+ {
+ instance = null;
+
+ if (destructor != null)
+ destructor();
+ }
+
+}
+
+}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d7e70f9a/frameworks/as/projects/MXMLCClasses/src/mx/core/IDeferredInstance.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/MXMLCClasses/src/mx/core/IDeferredInstance.as b/frameworks/as/projects/MXMLCClasses/src/mx/core/IDeferredInstance.as
new file mode 100644
index 0000000..e3ac094
--- /dev/null
+++ b/frameworks/as/projects/MXMLCClasses/src/mx/core/IDeferredInstance.as
@@ -0,0 +1,51 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.core
+{
+
+/**
+ * @private
+ * This class is used to satisfy old MXML codegen
+ * for both Falcon and MXML, but in FlexJS with mxml.children-as-data output
+ * it isn't needed so there is no JS equivalent
+ */
+public interface IDeferredInstance
+{
+ //--------------------------------------------------------------------------
+ //
+ // Methods
+ //
+ //--------------------------------------------------------------------------
+
+ /**
+ * Creates an instance Object from a class or function,
+ * if the instance does not yet exist.
+ *
+ * @return The instance Object.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 9
+ * @playerversion AIR 1.1
+ * @productversion Flex 3
+ */
+ function getInstance():Object;
+}
+
+}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d7e70f9a/frameworks/as/projects/MXMLCClasses/src/mx/core/IFactory.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/MXMLCClasses/src/mx/core/IFactory.as b/frameworks/as/projects/MXMLCClasses/src/mx/core/IFactory.as
new file mode 100644
index 0000000..205200b
--- /dev/null
+++ b/frameworks/as/projects/MXMLCClasses/src/mx/core/IFactory.as
@@ -0,0 +1,39 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.core
+{
+
+/**
+ * @private
+ * This class is used to satisfy old MXML codegen
+ * for both Falcon and MXML, but in FlexJS with mxml.children-as-data output
+ * it isn't needed so there is no JS equivalent
+ */
+public interface IFactory
+{
+ //--------------------------------------------------------------------------
+ //
+ // Methods
+ //
+ //--------------------------------------------------------------------------
+
+}
+
+}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d7e70f9a/frameworks/as/projects/MXMLCClasses/src/mx/core/IFlexModuleFactory.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/MXMLCClasses/src/mx/core/IFlexModuleFactory.as b/frameworks/as/projects/MXMLCClasses/src/mx/core/IFlexModuleFactory.as
new file mode 100644
index 0000000..536c92a
--- /dev/null
+++ b/frameworks/as/projects/MXMLCClasses/src/mx/core/IFlexModuleFactory.as
@@ -0,0 +1,147 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.core
+{
+
+/**
+ * @private
+ * This class is used to satisfy old MXML codegen
+ * for both Falcon and MXML, but in FlexJS with mxml.children-as-data output
+ * it isn't needed so there is no JS equivalent
+ */
+public interface IFlexModuleFactory
+{
+
+
+ /**
+ * Calls the <code>Security.allowDomain()</code> method for the SWF
+ * associated with this IFlexModuleFactory plus all the SWFs associated
+ * with RSLs preloaded by this IFlexModuleFactory. RSLs loaded after this
+ * call will, by default, allow the same domains as have been allowed by
+ * previous calls to this method. This behavior is controlled by the <code>
+ * allowDomainsInNewRSLs</code> property.
+ *
+ * @param domains One or more strings or URLRequest objects that name
+ * the domains from which you want to allow access.
+ * You can specify the special domain "*" to allow access from all domains.
+ *
+ * @see flash.system.Security#allowDomain()
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion Flex 4.5
+ */
+ function allowDomain(... domains):void;
+
+ /**
+ * Calls the <code>Security.allowInsecureDomain()</code> method for the
+ * SWF associated with this IFlexModuleFactory
+ * plus all the SWFs associated with RSLs preloaded by this
+ * IFlexModuleFactory. RSLs loaded after this call will, by default,
+ * allow the same domains as have been allowed by
+ * previous calls to this method. This behavior is controlled by the <code>
+ * allowInsecureDomainsInNewRSLs</code> property.
+ *
+ * @param domains One or more strings or URLRequest objects that name
+ * the domains from which you want to allow access.
+ * You can specify the special domain "*" to allow access from all domains.
+ *
+ * @see flash.system.Security#allowInsecureDomain()
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion Flex 4.5
+ */
+ function allowInsecureDomain(... domains):void;
+
+ /**
+ * A way to call a method in this IFlexModuleFactory's context
+ *
+ * @param fn The function or method to call.
+ * @param thisArg The <code>this</code> pointer for the function.
+ * @param argArray The arguments for the function.
+ * @param returns If <code>true</code>, the function returns a value.
+ *
+ * @return Whatever the function returns, if anything.
+ *
+ * @see Function.apply
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10
+ * @playerversion AIR 1.5
+ * @productversion Flex 3
+ */
+ function callInContext(fn:Function, thisArg:Object,
+ argArray:Array, returns:Boolean = true):*;
+
+ /**
+ * A factory method that requests
+ * an instance of a definition known to the module.
+ *
+ * <p>You can provide an optional set of parameters to let
+ * building factories change what they create based
+ * on the input.
+ * Passing <code>null</code> indicates that the default
+ * definition is created, if possible.</p>
+ *
+ * @param parameters An optional list of arguments. You can pass any number
+ * of arguments, which are then stored in an Array called <code>parameters</code>.
+ *
+ * @return An instance of the module, or <code>null</code>.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 9
+ * @playerversion AIR 1.1
+ * @productversion Flex 3
+ */
+ function create(... parameters):Object;
+
+ /**
+ * Returns a block of key/value pairs
+ * that hold static data known to the module.
+ * This method always succeeds, but can return an empty object.
+ *
+ * @return An object containing key/value pairs. Typically, this object
+ * contains information about the module or modules created by this
+ * factory; for example:
+ *
+ * <pre>
+ * return {"description": "This module returns 42."};
+ * </pre>
+ *
+ * Other common values in the returned object include the following:
+ * <ul>
+ * <li><code>fonts</code>: A list of embedded font faces.</li>
+ * <li><code>rsls</code>: A list of run-time shared libraries.</li>
+ * <li><code>mixins</code>: A list of classes initialized at startup.</li>
+ * </ul>
+ *
+ * @langversion 3.0
+ * @playerversion Flash 9
+ * @playerversion AIR 1.1
+ * @productversion Flex 3
+ */
+ function info():Object;
+
+}
+
+}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d7e70f9a/frameworks/as/projects/MXMLCClasses/src/mx/core/IPropertyChangeNotifier.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/MXMLCClasses/src/mx/core/IPropertyChangeNotifier.as b/frameworks/as/projects/MXMLCClasses/src/mx/core/IPropertyChangeNotifier.as
new file mode 100644
index 0000000..39d86ed
--- /dev/null
+++ b/frameworks/as/projects/MXMLCClasses/src/mx/core/IPropertyChangeNotifier.as
@@ -0,0 +1,40 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.core
+{
+
+/**
+ * @private
+ * This class is used to satisfy old MXML codegen
+ * for both Falcon and MXML, but in FlexJS with mxml.children-as-data output
+ * it isn't needed so there is no JS equivalent
+ */
+public interface IPropertyChangeNotifier
+{
+ //--------------------------------------------------------------------------
+ //
+ // Properties
+ //
+ //--------------------------------------------------------------------------
+
+ // Inherits uid property from IUID
+}
+
+}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d7e70f9a/frameworks/as/projects/MXMLCClasses/src/mx/core/IStateClient2.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/MXMLCClasses/src/mx/core/IStateClient2.as b/frameworks/as/projects/MXMLCClasses/src/mx/core/IStateClient2.as
new file mode 100644
index 0000000..ae21531
--- /dev/null
+++ b/frameworks/as/projects/MXMLCClasses/src/mx/core/IStateClient2.as
@@ -0,0 +1,31 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+/**
+ * @private
+ * shim the mx classes for states. This class is used to satisfy old MXML codegen
+ * for both Falcon and MXML, but in FlexJS with mxml.children-as-data output
+ * it isn't needed so there is no JS equivalent
+ */
+package mx.core
+{
+ public interface IStateClient2
+ {
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d7e70f9a/frameworks/as/projects/MXMLCClasses/src/mx/events/PropertyChangeEvent.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/MXMLCClasses/src/mx/events/PropertyChangeEvent.as b/frameworks/as/projects/MXMLCClasses/src/mx/events/PropertyChangeEvent.as
new file mode 100644
index 0000000..dcb2996
--- /dev/null
+++ b/frameworks/as/projects/MXMLCClasses/src/mx/events/PropertyChangeEvent.as
@@ -0,0 +1,78 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.events
+{
+
+import flash.events.Event;
+import mx.events.PropertyChangeEventKind;
+
+/**
+ * @private
+ * This class is used to satisfy old MXML codegen
+ * for both Falcon and MXML, but in FlexJS with mxml.children-as-data output
+ * it isn't needed so there is no JS equivalent
+ */
+public class PropertyChangeEvent extends Event
+{
+
+ //--------------------------------------------------------------------------
+ //
+ // Class constants
+ //
+ //--------------------------------------------------------------------------
+
+ public static const PROPERTY_CHANGE:String = "propertyChange";
+
+ //--------------------------------------------------------------------------
+ //
+ // Class methods
+ //
+ //--------------------------------------------------------------------------
+
+ public static function createUpdateEvent(
+ source:Object,
+ property:Object,
+ oldValue:Object,
+ newValue:Object):PropertyChangeEvent
+ {
+ return null;
+ }
+
+ //--------------------------------------------------------------------------
+ //
+ // Constructor
+ //
+ //--------------------------------------------------------------------------
+
+
+ public function PropertyChangeEvent(type:String, bubbles:Boolean = false,
+ cancelable:Boolean = false,
+ kind:String = null,
+ property:Object = null,
+ oldValue:Object = null,
+ newValue:Object = null,
+ source:Object = null)
+ {
+ super(type, bubbles, cancelable);
+ }
+
+}
+
+}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d7e70f9a/frameworks/as/projects/MXMLCClasses/src/mx/events/PropertyChangeEventKind.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/MXMLCClasses/src/mx/events/PropertyChangeEventKind.as b/frameworks/as/projects/MXMLCClasses/src/mx/events/PropertyChangeEventKind.as
new file mode 100644
index 0000000..3c7d321
--- /dev/null
+++ b/frameworks/as/projects/MXMLCClasses/src/mx/events/PropertyChangeEventKind.as
@@ -0,0 +1,59 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.events
+{
+
+/**
+ * @private
+ * This class is used to satisfy old MXML codegen
+ * for both Falcon and MXML, but in FlexJS with mxml.children-as-data output
+ * it isn't needed so there is no JS equivalent
+ */
+public final class PropertyChangeEventKind
+{
+
+ //--------------------------------------------------------------------------
+ //
+ // Class constants
+ //
+ //--------------------------------------------------------------------------
+
+ /**
+ * Indicates that the value of the property changed.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 9
+ * @playerversion AIR 1.1
+ * @productversion Flex 3
+ */
+ public static const UPDATE:String = "update";
+
+ /**
+ * Indicates that the property was deleted from the object.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 9
+ * @playerversion AIR 1.1
+ * @productversion Flex 3
+ */
+ public static const DELETE:String = "delete";
+}
+
+}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d7e70f9a/frameworks/as/projects/MXMLCClasses/src/mx/filters/IBitmapFilter.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/MXMLCClasses/src/mx/filters/IBitmapFilter.as b/frameworks/as/projects/MXMLCClasses/src/mx/filters/IBitmapFilter.as
new file mode 100644
index 0000000..efe40a9
--- /dev/null
+++ b/frameworks/as/projects/MXMLCClasses/src/mx/filters/IBitmapFilter.as
@@ -0,0 +1,31 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+/**
+ * @private
+ * This class is used to satisfy old MXML codegen
+ * for both Falcon and MXML, but in FlexJS with mxml.children-as-data output
+ * it isn't needed so there is no JS equivalent
+ */
+package mx.filters
+{
+ public interface IBitmapFilter
+ {
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d7e70f9a/frameworks/as/projects/MXMLCClasses/src/mx/styles/CSSCondition.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/MXMLCClasses/src/mx/styles/CSSCondition.as b/frameworks/as/projects/MXMLCClasses/src/mx/styles/CSSCondition.as
new file mode 100644
index 0000000..82052ff
--- /dev/null
+++ b/frameworks/as/projects/MXMLCClasses/src/mx/styles/CSSCondition.as
@@ -0,0 +1,61 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.styles
+{
+
+/**
+ * @private
+ * This class is used to satisfy old MXML codegen
+ * for both Falcon and MXML, but in FlexJS with mxml.children-as-data output
+ * it isn't needed so there is no JS equivalent
+ */
+public class CSSCondition
+{
+ //--------------------------------------------------------------------------
+ //
+ // Constructor
+ //
+ //--------------------------------------------------------------------------
+
+ /**
+ * Constructor.
+ *
+ * @param kind The kind of condition. For valid values see the
+ * CSSConditionKind enumeration.
+ * @param value The condition value (without CSS syntax).
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10
+ * @playerversion AIR 1.5
+ * @productversion Flex 4
+ */
+ public function CSSCondition(kind:String, value:String)
+ {
+ }
+
+ //--------------------------------------------------------------------------
+ //
+ // Properties
+ //
+ //--------------------------------------------------------------------------
+
+}
+
+}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d7e70f9a/frameworks/as/projects/MXMLCClasses/src/mx/styles/CSSSelector.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/MXMLCClasses/src/mx/styles/CSSSelector.as b/frameworks/as/projects/MXMLCClasses/src/mx/styles/CSSSelector.as
new file mode 100644
index 0000000..dd0ada2
--- /dev/null
+++ b/frameworks/as/projects/MXMLCClasses/src/mx/styles/CSSSelector.as
@@ -0,0 +1,69 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.styles
+{
+
+/**
+ * @private
+ * This class is used to satisfy old MXML codegen
+ * for both Falcon and MXML, but in FlexJS with mxml.children-as-data output
+ * it isn't needed so there is no JS equivalent
+ */
+public class CSSSelector
+{
+ //--------------------------------------------------------------------------
+ //
+ // Constructor
+ //
+ //--------------------------------------------------------------------------
+
+ /**
+ * Constructor.
+ *
+ * @param subject The plain representation of this selector without
+ * conditions or ancestors. This is typically a fully-qualified class name; for example,
+ * "spark.components.Button". You can use "*" to match all components or "global" for a global selector.
+ *
+ * @param conditions An optional Array of objects of type CSSCondition that is used to match a
+ * subset of component instances. Currently only a single or a pair of
+ * conditions are supported.
+ *
+ * @param ancestor An optional selector to match on a component that
+ * descends from an arbitrary ancestor.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10
+ * @playerversion AIR 1.5
+ * @productversion Flex 4
+ */
+ public function CSSSelector(subject:String,
+ conditions:Array=null, ancestor:CSSSelector=null)
+ {
+ }
+
+ //--------------------------------------------------------------------------
+ //
+ // Properties
+ //
+ //--------------------------------------------------------------------------
+
+}
+
+}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d7e70f9a/frameworks/as/projects/MXMLCClasses/src/mx/styles/CSSStyleDeclaration.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/MXMLCClasses/src/mx/styles/CSSStyleDeclaration.as b/frameworks/as/projects/MXMLCClasses/src/mx/styles/CSSStyleDeclaration.as
new file mode 100644
index 0000000..238504f
--- /dev/null
+++ b/frameworks/as/projects/MXMLCClasses/src/mx/styles/CSSStyleDeclaration.as
@@ -0,0 +1,191 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.styles
+{
+
+/**
+ * @private
+ * This class is used to satisfy old MXML codegen
+ * for both Falcon and MXML, but in FlexJS with mxml.children-as-data output
+ * it isn't needed so there is no JS equivalent
+ */
+public class CSSStyleDeclaration
+{
+
+ //--------------------------------------------------------------------------
+ //
+ // Constructor
+ //
+ //--------------------------------------------------------------------------
+
+ /**
+ * Constructor.
+ *
+ * @param selector - If the selector is a CSSSelector then advanced
+ * CSS selectors are supported. If a String is used for the selector then
+ * only simple CSS selectors are supported. If the String starts with a
+ * dot it is interpreted as a universal class selector, otherwise it must
+ * represent a simple type selector. If not null, this CSSStyleDeclaration
+ * will be registered with StyleManager.
+ *
+ * @param styleManager - The style manager to set this declaration into. If the
+ * styleManager is null the top-level style manager will be used.
+ *
+ * @param autoRegisterWithStyleManager - If true set the selector in the styleManager. The selector
+ * will only be set if both <code>selector</code> and <code>styleManager</code> are
+ * both non-null.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 9
+ * @playerversion AIR 1.1
+ * @productversion Flex 3
+ */
+ public function CSSStyleDeclaration(selector:Object=null, styleManager:IStyleManager2=null, autoRegisterWithStyleManager:Boolean = true)
+ {
+ }
+
+ /**
+ * This function, if it isn't <code>null</code>,
+ * is usually autogenerated by the MXML compiler.
+ * It produce copies of a plain Object, such as
+ * <code>{ leftMargin: 10, rightMargin: 10 }</code>,
+ * containing name/value pairs for style properties; the object is used
+ * to build a node of the prototype chain for looking up style properties.
+ *
+ * <p>If this CSSStyleDeclaration is owned by a UIComponent
+ * written in MXML, this function encodes the style attributes
+ * that were specified on the root tag of the component definition.</p>
+ *
+ * <p>If the UIComponent was written in ActionScript,
+ * this property is <code>null</code>.</p>
+ *
+ * @langversion 3.0
+ * @playerversion Flash 9
+ * @playerversion AIR 1.1
+ * @productversion Flex 3
+ */
+ public function get defaultFactory():Function
+ {
+ return null;
+ }
+
+ /**
+ * @private
+ */
+ public function set defaultFactory(f:Function):void
+ {
+ }
+
+ //----------------------------------
+ // factory
+ //----------------------------------
+
+ private var _factory:Function;
+
+ [Inspectable(environment="none")]
+
+ /**
+ * This function, if it isn't <code>null</code>,
+ * is usually autogenerated by the MXML compiler.
+ * It produce copies of a plain Object, such as
+ * <code>{ leftMargin: 10, rightMargin: 10 }</code>,
+ * containing name/value pairs for style properties; the object is used
+ * to build a node of the prototype chain for looking up style properties.
+ *
+ * <p>If this CSSStyleDeclaration is owned by a UIComponent,
+ * this function encodes the style attributes that were specified in MXML
+ * for an instance of that component.</p>
+ *
+ * @langversion 3.0
+ * @playerversion Flash 9
+ * @playerversion AIR 1.1
+ * @productversion Flex 3
+ */
+ public function get factory():Function
+ {
+ return _factory;
+ }
+
+ /**
+ * @private
+ */
+ public function set factory(f:Function):void
+ {
+ _factory = f;
+ }
+
+ //----------------------------------
+ // overrides
+ //----------------------------------
+
+ private var _overrides:Object;
+
+ /**
+ * If the <code>setStyle()</code> method is called on a UIComponent or CSSStyleDeclaration
+ * at run time, this object stores the name/value pairs that were set;
+ * they override the name/value pairs in the objects produced by
+ * the methods specified by the <code>defaultFactory</code> and
+ * <code>factory</code> properties.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 9
+ * @playerversion AIR 1.1
+ * @productversion Flex 3
+ */
+ public function get overrides():Object
+ {
+ return _overrides;
+ }
+
+ /**
+ * @private
+ */
+ public function set overrides(o:Object):void
+ {
+ _overrides = o;
+ }
+
+ //----------------------------------
+ // selector
+ //----------------------------------
+
+ private var _selector:CSSSelector;
+
+ /**
+ * This property is the base selector of a potential chain of selectors
+ * and conditions that are used to match CSS style declarations to
+ * components.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10
+ * @playerversion AIR 1.5
+ * @productversion Flex 4
+ */
+ public function get selector():CSSSelector
+ {
+ return _selector;
+ }
+
+ public function set selector(value:CSSSelector):void
+ {
+ }
+}
+
+}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d7e70f9a/frameworks/as/projects/MXMLCClasses/src/mx/styles/IStyleManager2.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/MXMLCClasses/src/mx/styles/IStyleManager2.as b/frameworks/as/projects/MXMLCClasses/src/mx/styles/IStyleManager2.as
new file mode 100644
index 0000000..b8cb6f4
--- /dev/null
+++ b/frameworks/as/projects/MXMLCClasses/src/mx/styles/IStyleManager2.as
@@ -0,0 +1,34 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.styles
+{
+
+/**
+ * @private
+ * This class is used to satisfy old MXML codegen
+ * for both Falcon and MXML, but in FlexJS with mxml.children-as-data output
+ * it isn't needed so there is no JS equivalent
+ */
+public interface IStyleManager2
+{
+ function getStyleDeclaration(selector:String):CSSStyleDeclaration;
+}
+
+}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d7e70f9a/frameworks/as/projects/MXMLCClasses/src/mx/styles/StyleManager.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/MXMLCClasses/src/mx/styles/StyleManager.as b/frameworks/as/projects/MXMLCClasses/src/mx/styles/StyleManager.as
new file mode 100644
index 0000000..c54d9d2
--- /dev/null
+++ b/frameworks/as/projects/MXMLCClasses/src/mx/styles/StyleManager.as
@@ -0,0 +1,50 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+/**
+ * @private
+ * This class is used to satisfy old MXML codegen
+ * for both Falcon and MXML, but in FlexJS with mxml.children-as-data output
+ * it isn't needed so there is no JS equivalent
+ */
+package mx.styles
+{
+ import mx.core.IFlexModuleFactory;
+
+ public class StyleManager
+ {
+ /**
+ * Returns the style manager for an object.
+ *
+ * @param moduleFactory The module factory of an object you want the
+ * style manager for. If null, the top-level style manager is returned.
+ *
+ * @return the style manager for the given module factory.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10
+ * @playerversion AIR 1.5
+ * @productversion Flex 4
+ */
+ public static function getStyleManager(moduleFactory:IFlexModuleFactory):IStyleManager2
+ {
+ return null;
+ }
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d7e70f9a/frameworks/js/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/js/build.xml b/frameworks/js/build.xml
new file mode 100644
index 0000000..ceb45f2
--- /dev/null
+++ b/frameworks/js/build.xml
@@ -0,0 +1,92 @@
+<?xml version="1.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.
+
+-->
+
+<!-- Note:
+ If you modify this file you may have to make the same change in build_framework.xml.
+ build_framework.xml is renamed to build.xml when it is packaged.
+ It is used to build the frameworks directory from the zip file.
+-->
+<project name="frameworks-js" default="main" basedir=".">
+
+ <property name="FLEXJS_HOME" location="../.."/>
+
+ <!-- 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="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>
+
+ <!-- Property for the platform. -->
+ <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 file="${FLEXJS_HOME}/env.properties"/>
+ <property environment="env"/>
+ <property file="${FLEXJS_HOME}/build.properties"/>
+
+ <target name="main" depends="check-compile-env,clean,prepare,compile"
+ description="Clean build of all SWCs"/>
+
+ <target name="check-compile-env" description="Check for the required environment variables">
+ <ant antfile="${FLEXJS_HOME}/build.xml" target="check-compile-env" dir="${FLEXJS_HOME}"/>
+ </target>
+
+
+ <target name="prepare" depends="thirdparty-downloads"/>
+
+ <target name="thirdparty-downloads" unless="no.thirdparty-downloads" description="Downloads all the required thirdparty code.">
+ <!--<ant antfile="${basedir}/downloads.xml" dir="${basedir}"/>-->
+ </target>
+
+ <target name="compile" description="Validates JS code">
+ </target>
+
+ <!--
+ Cleanup
+ -->
+
+ <target name="super-clean" depends="thirdparty-clean,clean" description="Cleans everything including thirdparty downloads."/>
+
+ <target name="thirdparty-clean" unless="no.thirdparty-clean" description="Removes all thirdparty downloads.">
+ <!--<ant antfile="${basedir}/downloads.xml" target="clean" dir="${basedir}"/>-->
+ </target>
+
+ <target name="clean" description="Cleans all SWCs and their resource bundles">
+ </target>
+
+</project>
[8/8] git commit: [flex-asjs] [refs/heads/develop] - fix bugs so 'ant
release' now builds FlexJSOverlay equivalent
Posted by ah...@apache.org.
fix bugs so 'ant release' now builds FlexJSOverlay equivalent
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/6849d4ce
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/6849d4ce
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/6849d4ce
Branch: refs/heads/develop
Commit: 6849d4cefffc14468cae3e2d6d0525c6b13f5773
Parents: 0151830
Author: Alex Harui <ah...@apache.org>
Authored: Tue Nov 19 12:40:04 2013 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Tue Nov 19 12:40:04 2013 -0800
----------------------------------------------------------------------
build.properties | 3 ++-
build.xml | 2 +-
frameworks/as/flex-config-template.xml | 1 -
3 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6849d4ce/build.properties
----------------------------------------------------------------------
diff --git a/build.properties b/build.properties
index 854d453..e01c38c 100644
--- a/build.properties
+++ b/build.properties
@@ -19,7 +19,8 @@
# flex-sdk-description values
release = Apache Flex (FlexJS) 0.0.1
-release.version = 0.0.1
+# release version must start with 4 in order for FB to accept it
+release.version = 4.0.1
# override on command line with -Dbuild.number=999 or in local.properties
build.number = 0
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6849d4ce/build.xml
----------------------------------------------------------------------
diff --git a/build.xml b/build.xml
index cec1d58..8ff7fbd 100644
--- a/build.xml
+++ b/build.xml
@@ -44,7 +44,7 @@
<property name="strict" value="true"/>
<property name="javac.src" value="1.5"/>
- <property name="kit.prefix" value="apache-flex-sdk-${release.version}"/>
+ <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"/>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6849d4ce/frameworks/as/flex-config-template.xml
----------------------------------------------------------------------
diff --git a/frameworks/as/flex-config-template.xml b/frameworks/as/flex-config-template.xml
index e3db9a4..2d37ae1 100644
--- a/frameworks/as/flex-config-template.xml
+++ b/frameworks/as/flex-config-template.xml
@@ -79,7 +79,6 @@
<!-- List of SWC files or directories that contain SWC files. -->
<library-path>
<path-element>libs</path-element>
- <path-element>libs/as</path-element>
<path-element>locale/en_US</path-element>
<path-element>libs/player/{targetPlayerMajorVersion}.{targetPlayerMinorVersion}</path-element>
</library-path>
[5/8] git commit: [flex-asjs] [refs/heads/develop] - check in READMe
and temporary install/deploy scripts
Posted by ah...@apache.org.
check in READMe and temporary install/deploy scripts
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/f9c75247
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/f9c75247
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/f9c75247
Branch: refs/heads/develop
Commit: f9c75247f0b4baf916db1a3206ca0c9bf8b43fcf
Parents: 9ef7a2c
Author: Alex Harui <ah...@apache.org>
Authored: Mon Nov 18 21:49:29 2013 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Mon Nov 18 21:49:29 2013 -0800
----------------------------------------------------------------------
READme | 11 ++++
scripts/deploy.bat | 145 +++++++++++++++++++++++++++++++++++++++++
scripts/deploy.sh | 124 +++++++++++++++++++++++++++++++++++
scripts/setuplaunches.bat | 116 +++++++++++++++++++++++++++++++++
scripts/setuplaunches.sh | 113 ++++++++++++++++++++++++++++++++
5 files changed, 509 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f9c75247/READme
----------------------------------------------------------------------
diff --git a/READme b/READme
new file mode 100644
index 0000000..7c2986c
--- /dev/null
+++ b/READme
@@ -0,0 +1,11 @@
+FlexJS is a prototype of a new Flex framework that can be cross-compiled and produce an HTML/JS/CSS application that runs in any browser without Flash.
+
+We have prototypes of a List, Button, Label, DropDownList, CheckBox, RadioButton, TextArea, and TextInput
We have a prototype of a HTTPService and a LazyCollection
+
The best way to get started is to follow the instructions from https://cwiki.apache.org/confluence/display/FLEX/Using+FlexJS+with+Adobe+Flash+Builder. When you have completed the setup also complete the steps on that wiki page under "Creating a FlexJS Application". It is currently easier to modify the existing application example than to create a new application from scratch.
Building and Running/Debugging
As you edit the code, the regular Flex compiler is compiling and reporting errors, but it only knows how to build Flex SWFs so the output SWF probably won't run. So, before you debug, select the main MXML file in Package Explorer, choose from the Run menu the new External Tool: "FlexJS (Debug Build)". This will run the Falcon compiler with the right options to generate a SWF in the bin-debug folder that overwrites the one that is there. Then you should be able to set breakpoints and debug.
Once you have your app working as a SWF, try the FalconJX External Tool. It will o
utput a debug version to bin/js-debug and a minified version to bin/js-release. Run the index.html in any browser. Some browsers may require that you deploy to a server otherwise the network calls won't work.
I'm sure there will be lots of issues, but feel free to comment or contribute. Remember, this is in its infancy so it will likely fall down easily and poop unexpectedly.
+
+Using COMPC for Libraries
+
+As before, COMPC is used for building SWCs. If you don't have any MXML in your SWC, you can just use a regular Flex Library Project to create the SWC. If you have MXML in the SWC, then you will need to use a "FlexJS (COMPC)" external tool. Once you have a SWC, you can then try the "FlexJS (JS COMPC)" external tool to cross compile the SWC into a folder of JS files in folder called "js" in the project's folder. These JS files are not packaged into a SWC or ZIP.
+
+Then, to build an application using a library, you would include the SWC in your library path, and for the "FlexJS (FalconX �)" configuration, you add the SWC in the library-path and then add a -sdk-js-lib option that points to the "js" folder in the SWC project.
+
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f9c75247/scripts/deploy.bat
----------------------------------------------------------------------
diff --git a/scripts/deploy.bat b/scripts/deploy.bat
new file mode 100755
index 0000000..a0b0eb8
--- /dev/null
+++ b/scripts/deploy.bat
@@ -0,0 +1,145 @@
+rem Licensed to the Apache Software Foundation (ASF) under one or more
+
+rem contributor license agreements. See the NOTICE file distributed with
+
+rem this work for additional information regarding copyright ownership.
+
+rem The ASF licenses this file to You under the Apache License, Version 2.0
+
+rem (the "License"); you may not use this file except in compliance with
+
+rem the License. You may obtain a copy of the License at
+
+rem
+rem http:\\www.apache.org\licenses\LICENSE-2.0
+
+rem
+rem Unless required by applicable law or agreed to in writing, software
+
+rem distributed under the License is distributed on an "AS IS" BASIS,
+
+rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+
+rem See the License for the specific language governing permissions and
+
+rem limitations under the License.
+
+
+
+if "%~1" == "" goto error
+goto check2
+:error
+echo Usage: deploy.bat [absolute path to Apache Flex SDK] [absolute path to new folder]
+goto end
+
+:check2
+if "%~2" == "" goto error
+if "%GOOG_HOME%" == "" goto nogoog
+goto checkjava
+
+:nogoog
+echo GOOG_HOME environment variable not set. Set to folder (usually called library) containing closure folder from Google Closure library
+goto end
+
+:checkjava
+if "%JAVA_HOME%" == "" goto nojava
+goto copyfiles
+
+:nojava
+echo JAVA_HOME environment variable not set. Set to folder containing bin\java.exe
+goto end
+
+:copyfiles
+echo "Copying Apache Flex SDK (be patient, lots of files)..."
+md %2
+xcopy /s %1\*.* %2
+
+echo %~d0%~p0
+setlocal
+set BASEDIR=%~d0%~p0
+echo Installing FlexJS files from %BASEDIR% to %2
+
+echo removing Flex files
+del /q %2\ant\lib\*.*
+del /q %2\bin\*.*
+del %2\lib\asc.jar
+del %2\lib\asdoc.jar
+del %2\lib\batik-all-flex.jar
+del %2\lib\compc.jar
+del %2\lib\copylocale.jar
+del %2\lib\digest.jar
+del %2\lib\fcsh.jar
+del %2\lib\fdb.jar
+del %2\lib\flex-compiler-oem.jar
+del %2\lib\fxgutils.jar
+del /q %2\lib\mxmlc_*.jar
+del %2\lib\optimizer.jar
+del %2\lib\swcdepends.jar
+del %2\lib\swfdump.jar
+del %2\lib\swfutils.jar
+del %2\lib\velocity-dep-1.4-flex.jar
+
+del /q /s %2\lib\external\*.*
+rd /q /s %2\lib\external
+del %2\flex-sdk-description.xml
+del %2\frameworks\flex-config.xml
+del /q %2\frameworks\libs\automation\*.*
+rd /q %2\frameworks\libs\automation
+del /q %2\frameworks\libs\mobile\*.*
+rd /q %2\frameworks\libs\mobile
+del /q %2\frameworks\libs\mx\*.*
+rem rd %2\frameworks\libs\mx FB needs this
+
+
del /q %2\frameworks\libs\*.*
+
+
+
+
+
+echo copying Falcon files"
+xcopy /y /s "%BASEDIR%\ant\lib\*.*" %2\ant\lib
+
+xcopy /y /s "%BASEDIR%\bin\*.*" %2\bin
+
+md %2\bin-legacy
+
+xcopy /y /s "%BASEDIR%\bin-legacy\*.*" %2\bin-legacy
+
+xcopy /y /s "%BASEDIR%\lib\*.*" %2\lib
+
+
+echo copying FalconJS files
+
+md %2\js
+
+xcopy /y /s "%BASEDIR%\js\*.*" %2\js
+
+
+echo copying FlexJS files
+
+xcopy /y /s "%BASEDIR%\frameworks\libs\*.*" %2\frameworks\libs
+
+md %2\frameworks\as
+mkdir %2\frameworks\as\src
+
+xcopy /y /s "%BASEDIR%\frameworks\src\*.*" %2\frameworks\as\src
+
+
+move %2\frameworks\as\src\basic-manifest.xml %2\frameworks
+
+move %2\frameworks\as\src\html5-manifest.xml %2\frameworks
+
+move %2\frameworks\as\src\flex-sdk-description.xml %2
+
+move %2\frameworks\as\src\flex-config.xml %2\frameworks
+
+
+endlocal
+
+copy %1\bin\adl.* %2\bin
+copy %1\bin\adt.* %2\bin
+
+setuplaunches.bat %2 "%JAVA_HOME%\bin\java.exe"
+
+:end
+
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f9c75247/scripts/deploy.sh
----------------------------------------------------------------------
diff --git a/scripts/deploy.sh b/scripts/deploy.sh
new file mode 100755
index 0000000..271e4c4
--- /dev/null
+++ b/scripts/deploy.sh
@@ -0,0 +1,124 @@
+#!/bin/bash
+################################################################################
+##
+## 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.
+##
+################################################################################
+
+i=0
+argv=()
+for arg in "$@"; do
+ argv[$i]="$arg"
+ i=$((i + 1))
+done
+
+if [ "${argv[0]}" = "" ]
+ then
+ echo "Usage: deploy.sh <path to existing Apache Flex SDK> <path to new folder>"
+ exit
+fi
+if [ "${argv[1]}" = "" ]
+ then
+ echo "Usage: deploy.sh <path to existing Apache Flex SDK> <path to new folder>"
+ exit
+fi
+if [ -d "${argv[1]}" ]
+ then
+ echo "Error: folder already exists"
+ exit
+fi
+if [ "$GOOG_HOME" = "" ]
+ then
+ echo "GOOG_HOME environment variable not set. Set to folder (usually called library) containing closure folder from Google Closure library"
+ exit
+fi
+if [ "$JAVA_HOME" = "" ]
+ then
+ JAVA_HOME="/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home"
+fi
+
+echo "Copying Apache Flex SDK (be patient, lots of files)..."
+mkdir -pv "${argv[1]}"
+if [ ! -d "${argv[1]}" ]
+ then
+ echo "Error: creating destination folder '${argv[1]}'"
+ exit
+fi
+DESTDIR=`cd "${argv[1]}"; pwd`
+cp -r "${argv[0]}"/* "$DESTDIR"
+
+BASEDIR=$(dirname $0)
+echo "Installing FlexJS files from $BASEDIR to $DESTDIR"
+
+echo "Removing Flex files"
+rm -f "$DESTDIR/ant/lib"/*
+rm "$DESTDIR/bin"/*
+rm "$DESTDIR/lib/asc.jar"
+rm "$DESTDIR/lib/asdoc.jar"
+rm "$DESTDIR/lib/batik-all-flex.jar"
+rm "$DESTDIR/lib/compc.jar"
+rm "$DESTDIR/lib/copylocale.jar"
+rm "$DESTDIR/lib/digest.jar"
+rm "$DESTDIR/lib/fcsh.jar"
+rm "$DESTDIR/lib/fdb.jar"
+rm "$DESTDIR/lib/flex-compiler-oem.jar"
+rm "$DESTDIR/lib/fxgutils.jar"
+rm "$DESTDIR/lib"/mxmlc_*.jar
+rm "$DESTDIR/lib/optimizer.jar"
+rm "$DESTDIR/lib/swcdepends.jar"
+rm "$DESTDIR/lib/swfdump.jar"
+rm "$DESTDIR/lib/swfutils.jar"
+rm "$DESTDIR/lib/velocity-dep-1.4-flex.jar"
+rm -r "$DESTDIR/lib/external"/*
+rmdir "$DESTDIR/lib/external"
+rm "$DESTDIR/flex-sdk-description.xml"
+rm "$DESTDIR/frameworks/flex-config.xml"
+rm "$DESTDIR/frameworks/libs/automation"/*
+rmdir "$DESTDIR/frameworks/libs/automation"
+rm "$DESTDIR/frameworks/libs/mobile"/*
+rmdir "$DESTDIR/frameworks/libs/mobile"
+rm "$DESTDIR/frameworks/libs/mx"/*
+# rmdir "$DESTDIR/frameworks/libs/mx" FB needs this
+rm "$DESTDIR/frameworks/libs"/*
+
+echo "Copying Falcon files"
+mkdir -p "$DESTDIR/ant/lib"
+cp -r "$BASEDIR/ant/lib"/* "$DESTDIR/ant/lib"
+cp -r "$BASEDIR/bin"/* "$DESTDIR/bin"
+mkdir "$DESTDIR/bin-legacy"
+cp -r "$BASEDIR/bin-legacy"/* "$DESTDIR/bin-legacy"
+cp -r "$BASEDIR/lib"/* "$DESTDIR/lib"
+
+echo "Copying FalconJS files"
+mkdir "$DESTDIR/js"
+cp -r "$BASEDIR/js"/* "$DESTDIR/js"
+
+echo "Copying FlexJS files"
+cp -r "$BASEDIR/frameworks/libs"/* "$DESTDIR/frameworks/libs"
+mkdir "$DESTDIR/frameworks/as"
+mkdir "$DESTDIR/frameworks/as/src"
+cp -r "$BASEDIR/frameworks/src"/* "$DESTDIR/frameworks/as/src"
+
+mv "$DESTDIR/frameworks/as/src/basic-manifest.xml" "$DESTDIR/frameworks"
+mv "$DESTDIR/frameworks/as/src/html5-manifest.xml" "$DESTDIR/frameworks"
+mv "$DESTDIR/frameworks/as/src/flex-sdk-description.xml" "$DESTDIR"
+mv "$DESTDIR/frameworks/as/src/flex-config.xml" "$DESTDIR/frameworks"
+
+# needed for AIR apps
+cp "${argv[0]}/bin/adl" "$DESTDIR/bin"
+cp "${argv[0]}/bin/adt" "$DESTDIR/bin"
+
+./setuplaunches.sh "$DESTDIR" $JAVA_HOME/bin/java
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f9c75247/scripts/setuplaunches.bat
----------------------------------------------------------------------
diff --git a/scripts/setuplaunches.bat b/scripts/setuplaunches.bat
new file mode 100755
index 0000000..c01af14
--- /dev/null
+++ b/scripts/setuplaunches.bat
@@ -0,0 +1,116 @@
+@echo off
+rem Licensed to the Apache Software Foundation (ASF) under one or more
+
+rem contributor license agreements. See the NOTICE file distributed with
+
+rem this work for additional information regarding copyright ownership.
+
+rem The ASF licenses this file to You under the Apache License, Version 2.0
+
+rem (the "License"); you may not use this file except in compliance with
+
+rem the License. You may obtain a copy of the License at
+
+rem
+rem http:\\www.apache.org\licenses\LICENSE-2.0
+
+rem
+rem Unless required by applicable law or agreed to in writing, software
+
+rem distributed under the License is distributed on an "AS IS" BASIS,
+
+rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+
+rem See the License for the specific language governing permissions and
+
+rem limitations under the License.
+
+
+if "%~1" == "" goto usage
+goto check2
+
+:usage
+echo Usage: setuplaunches <absolute path to Apache Flex SDK> <absolute path to Java executable>
+goto exit
+
+:check2
+if "%~2" == "" goto usage
+if "%GOOG_HOME%" == "" goto nogoog
+goto doit
+
+:nogoog
+echo GOOG_HOME environment variable not set. Set to folder (usually called library) containing closure folder from Google Closure library
+goto exit
+
+:doit
+echo %~d0%~p0
+setlocal
+set BASEDIR=%~d0%~p0
+set FILENAME=FlexJS (Debug Build).launch
+echo Creating FlexJS Debug Launch Configuration
+echo ^<?xml version='1.0' encoding='UTF-8' standalone='no'?^> > "%~1\ide\flashbuilder\%FILENAME%"
+echo ^<launchConfiguration type='org.eclipse.ui.externaltools.ProgramLaunchConfigurationType'^> >> "%~1\ide\flashbuilder\%FILENAME%"
+echo ^<booleanAttribute key='org.eclipse.debug.core.appendEnvironmentVariables' value='false'/^> >> "%~1\ide\flashbuilder\%FILENAME%"
+echo ^<listAttribute key='org.eclipse.debug.ui.favoriteGroups'^> >> "%~1\ide\flashbuilder\%FILENAME%"
+echo ^<listEntry value='org.eclipse.ui.externaltools.launchGroup'/^> >> "%~1\ide\flashbuilder\%FILENAME%"
+echo ^</listAttribute^> >> "%~1\ide\flashbuilder\%FILENAME%"
+echo ^<stringAttribute key='org.eclipse.ui.externaltools.ATTR_LAUNCH_CONFIGURATION_BUILD_SCOPE' value='${project}'/^> >> "%~1\ide\flashbuilder\%FILENAME%"
+echo ^<stringAttribute key='org.eclipse.ui.externaltools.ATTR_LOCATION' value='%~2'/^> >> "%~1\ide\flashbuilder\%FILENAME%"
+echo ^<stringAttribute key='org.eclipse.ui.externaltools.ATTR_TOOL_ARGUMENTS' value='-Xmx384m -Dsun.io.useCanonCaches=false -Dflexcompiler=^"%~1^" -Dflexlib=^"%~1\frameworks^" -jar %~1\lib\falcon-mxmlc.jar -compiler.mxml.children-as-data -debug -compiler.binding-value-change-event=org.apache.flex.events.ValueChangeEvent -compiler.binding-value-change-event-kind=org.apache.flex.events.ValueChangeEvent -compiler.binding-value-change-event-type=valueChange -fb ^"${project_loc}^"'/^> >> "%~1\ide\flashbuilder\%FILENAME%"
+echo ^</launchConfiguration^> >> "%~1\ide\flashbuilder\%FILENAME%"
+
+set FILENAME=FlexJS (Release Build).launch
+echo Creating FlexJS Release Launch Configuration
+echo ^<?xml version='1.0' encoding='UTF-8' standalone='no'?^> > "%~1\ide\flashbuilder\%FILENAME%"
+echo ^<launchConfiguration type='org.eclipse.ui.externaltools.ProgramLaunchConfigurationType'^> >> "%~1\ide\flashbuilder\%FILENAME%"
+echo ^<booleanAttribute key='org.eclipse.debug.core.appendEnvironmentVariables' value='false'/^> >> "%~1\ide\flashbuilder\%FILENAME%"
+echo ^<listAttribute key='org.eclipse.debug.ui.favoriteGroups'^> >> "%~1\ide\flashbuilder\%FILENAME%"
+echo ^<listEntry value='org.eclipse.ui.externaltools.launchGroup'/^> >> "%~1\ide\flashbuilder\%FILENAME%"
+echo ^</listAttribute^> >> "%~1\ide\flashbuilder\%FILENAME%"
+echo ^<stringAttribute key='org.eclipse.ui.externaltools.ATTR_LAUNCH_CONFIGURATION_BUILD_SCOPE' value='${project}'/^> >> "%~1\ide\flashbuilder\%FILENAME%"
+echo ^<stringAttribute key='org.eclipse.ui.externaltools.ATTR_LOCATION' value='%~2'/^> >> "%~1\ide\flashbuilder\%FILENAME%"
+echo ^<stringAttribute key='org.eclipse.ui.externaltools.ATTR_TOOL_ARGUMENTS' value='-Xmx384m -Dsun.io.useCanonCaches=false -Dflexcompiler=^"%~1^" -Dflexlib=^"%~1\frameworks^" -jar %~1\lib\falcon-mxmlc.jar -compiler.mxml.children-as-data -compiler.binding-value-change-event=org.apache.flex.events.ValueChangeEvent -compiler.binding-value-change-event-kind=org.apache.flex.events.ValueChangeEvent -compiler.binding-value-change-event-type=valueChange -fb ^"${project_loc}^"'/^> >> "%~1\ide\flashbuilder\%FILENAME%"
+echo ^</launchConfiguration^> >> "%~1\ide\flashbuilder\%FILENAME%"
+
+set FILENAME=FlexJS (FalconJX Debug and Release Build).launch
+echo Creating FlexJS FalconJX Launch Configuration
+echo ^<?xml version='1.0' encoding='UTF-8' standalone='no'?^> > "%~1\ide\flashbuilder\%FILENAME%"
+echo ^<launchConfiguration type='org.eclipse.ui.externaltools.ProgramLaunchConfigurationType'^> >> "%~1\ide\flashbuilder\%FILENAME%"
+echo ^<booleanAttribute key='org.eclipse.debug.core.appendEnvironmentVariables' value='false'/^> >> "%~1\ide\flashbuilder\%FILENAME%"
+echo ^<listAttribute key='org.eclipse.debug.ui.favoriteGroups'^> >> "%~1\ide\flashbuilder\%FILENAME%"
+echo ^<listEntry value='org.eclipse.ui.externaltools.launchGroup'/^> >> "%~1\ide\flashbuilder\%FILENAME%"
+echo ^</listAttribute^> >> "%~1\ide\flashbuilder\%FILENAME%"
+echo ^<stringAttribute key='org.eclipse.ui.externaltools.ATTR_LAUNCH_CONFIGURATION_BUILD_SCOPE' value='${project}'/^> >> "%~1\ide\flashbuilder\%FILENAME%"
+echo ^<stringAttribute key='org.eclipse.ui.externaltools.ATTR_LOCATION' value='%~2'/^> >> "%~1\ide\flashbuilder\%FILENAME%"
+echo ^<stringAttribute key='org.eclipse.ui.externaltools.ATTR_TOOL_ARGUMENTS' value='-Xmx384m -Dfile.encoding=UTF8 -Dsun.io.useCanonCaches=false -Dflexcompiler=^"%~1^" -Dflexlib=^"%~1\frameworks^" -jar %~1\js\lib\mxmlc.jar -compiler.mxml.children-as-data -compiler.binding-value-change-event-type=valueChange -js-output-type=FLEXJS -closure-lib=%GOOG_HOME% -sdk-js-lib=%~1\js\src -fb ^"${project_loc}^"'/^> >> "%~1\ide\flashbuilder\%FILENAME%"
+echo ^</launchConfiguration^> >> "%~1\ide\flashbuilder\%FILENAME%"
+
+set FILENAME=FlexJS (COMPC).launch
+echo Creating FlexJS COMPC Configuration
+echo ^<?xml version='1.0' encoding='UTF-8' standalone='no'?^> > "%~1\ide\flashbuilder\%FILENAME%"
+echo ^<launchConfiguration type='org.eclipse.ui.externaltools.ProgramLaunchConfigurationType'^> >> "%~1\ide\flashbuilder\%FILENAME%"
+echo ^<booleanAttribute key='org.eclipse.debug.core.appendEnvironmentVariables' value='false'/^> >> "%~1\ide\flashbuilder\%FILENAME%"
+echo ^<listAttribute key='org.eclipse.debug.ui.favoriteGroups'^> >> "%~1\ide\flashbuilder\%FILENAME%"
+echo ^<listEntry value='org.eclipse.ui.externaltools.launchGroup'/^> >> "%~1\ide\flashbuilder\%FILENAME%"
+echo ^</listAttribute^> >> "%~1\ide\flashbuilder\%FILENAME%"
+echo ^<stringAttribute key='org.eclipse.ui.externaltools.ATTR_LAUNCH_CONFIGURATION_BUILD_SCOPE' value='${project}'/^> >> "%~1\ide\flashbuilder\%FILENAME%"
+echo ^<stringAttribute key='org.eclipse.ui.externaltools.ATTR_LOCATION' value='%~2'/^> >> "%~1\ide\flashbuilder\%FILENAME%"
+echo ^<stringAttribute key='org.eclipse.ui.externaltools.ATTR_TOOL_ARGUMENTS' value='-Xmx384m -Dsun.io.useCanonCaches=false -Dflexcompiler=^"%~1^" -Dflexlib=^"%~1\frameworks^" -jar %~1\lib\falcon-compc.jar -compiler.mxml.children-as-data -debug -compiler.binding-value-change-event=org.apache.flex.events.ValueChangeEvent -compiler.binding-value-change-event-kind=org.apache.flex.events.ValueChangeEvent -compiler.binding-value-change-event-type=valueChange -fb ^"${project_loc}^"'/^> >> "%~1\ide\flashbuilder\%FILENAME%"
+echo ^</launchConfiguration^> >> "%~1\ide\flashbuilder\%FILENAME%"
+
+set FILENAME=FlexJS (JS COMPC).launch
+echo Creating FlexJS JS COMPC Launch Configuration
+echo ^<?xml version='1.0' encoding='UTF-8' standalone='no'?^> > "%~1\ide\flashbuilder\%FILENAME%"
+echo ^<launchConfiguration type='org.eclipse.ui.externaltools.ProgramLaunchConfigurationType'^> >> "%~1\ide\flashbuilder\%FILENAME%"
+echo ^<booleanAttribute key='org.eclipse.debug.core.appendEnvironmentVariables' value='false'/^> >> "%~1\ide\flashbuilder\%FILENAME%"
+echo ^<listAttribute key='org.eclipse.debug.ui.favoriteGroups'^> >> "%~1\ide\flashbuilder\%FILENAME%"
+echo ^<listEntry value='org.eclipse.ui.externaltools.launchGroup'/^> >> "%~1\ide\flashbuilder\%FILENAME%"
+echo ^</listAttribute^> >> "%~1\ide\flashbuilder\%FILENAME%"
+echo ^<stringAttribute key='org.eclipse.ui.externaltools.ATTR_LAUNCH_CONFIGURATION_BUILD_SCOPE' value='${project}'/^> >> "%~1\ide\flashbuilder\%FILENAME%"
+echo ^<stringAttribute key='org.eclipse.ui.externaltools.ATTR_LOCATION' value='%~2'/^> >> "%~1\ide\flashbuilder\%FILENAME%"
+echo ^<stringAttribute key='org.eclipse.ui.externaltools.ATTR_TOOL_ARGUMENTS' value='-Xmx384m -Dfile.encoding=UTF8 -Dsun.io.useCanonCaches=false -Dflexcompiler=^"%~1^" -Dflexlib=^"%~1\frameworks^" -jar %~1\js\lib\mxmlc.jar -compiler.mxml.children-as-data -compiler.binding-value-change-event-type=valueChange -js-output-type=FLEXJS -closure-lib=%GOOG_HOME% -sdk-js-lib=%~1\js\src -fb ^"${project_loc}^"'/^> >> "%~1\ide\flashbuilder\%FILENAME%"
+echo ^</launchConfiguration^> >> "%~1\ide\flashbuilder\%FILENAME%"
+
+endlocal
+:exit
+
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f9c75247/scripts/setuplaunches.sh
----------------------------------------------------------------------
diff --git a/scripts/setuplaunches.sh b/scripts/setuplaunches.sh
new file mode 100755
index 0000000..443ba45
--- /dev/null
+++ b/scripts/setuplaunches.sh
@@ -0,0 +1,113 @@
+#!/bin/bash
+################################################################################
+##
+## 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.
+##
+################################################################################
+
+i=0
+argv=()
+for arg in "$@"; do
+ argv[$i]="$arg"
+ i=$((i + 1))
+done
+
+if [ "${argv[0]}" = "" ]
+ then
+ echo "Usage: setuplaunches <absolute path to Apache Flex SDK> <absolute path to Java executable>"
+ exit
+fi
+if [ "${argv[1]}" = "" ]
+ then
+ echo "Usage: setuplaunches <absolute path to Apache Flex SDK> <absolute path to Java executable>"
+ exit
+fi
+if [ ! -d "${argv[0]}/frameworks/" ]
+ then
+ echo "Error: not a valid SDK directory"
+ exit
+fi
+if [ "$GOOG_HOME" = "" ]
+ then
+ echo "GOOG_HOME environment variable not set. Set to folder (usually called library) containing closure folder from Google Closure library"
+ exit
+fi
+
+BASEDIR=$(dirname $0)
+FILENAME="FlexJS (Debug Build).launch"
+echo "Creating FlexJS Debug Launch Configuration"
+echo "<?xml version='1.0' encoding='UTF-8' standalone='no'?>" > "${argv[0]}/ide/flashbuilder/$FILENAME"
+echo "<launchConfiguration type='org.eclipse.ui.externaltools.ProgramLaunchConfigurationType'>" >> "${argv[0]}/ide/flashbuilder/$FILENAME"
+echo "<booleanAttribute key='org.eclipse.debug.core.appendEnvironmentVariables' value='false'/>" >> "${argv[0]}/ide/flashbuilder/$FILENAME"
+echo "<listAttribute key='org.eclipse.debug.ui.favoriteGroups'>" >> "${argv[0]}/ide/flashbuilder/$FILENAME"
+echo "<listEntry value='org.eclipse.ui.externaltools.launchGroup'/>" >> "${argv[0]}/ide/flashbuilder/$FILENAME"
+echo "</listAttribute>" >> "${argv[0]}/ide/flashbuilder/$FILENAME"
+echo "<stringAttribute key='org.eclipse.ui.externaltools.ATTR_LAUNCH_CONFIGURATION_BUILD_SCOPE' value='\${project}'/>" >> "${argv[0]}/ide/flashbuilder/$FILENAME"
+echo "<stringAttribute key='org.eclipse.ui.externaltools.ATTR_LOCATION' value='${argv[1]}'/>" >> "${argv[0]}/ide/flashbuilder/$FILENAME"
+echo "<stringAttribute key='org.eclipse.ui.externaltools.ATTR_TOOL_ARGUMENTS' value='-Xmx384m -Dsun.io.useCanonCaches=false -Dflexcompiler="${argv[0]}" -Dflexlib="${argv[0]}/frameworks" -jar "${argv[0]}/lib/falcon-mxmlc.jar" -compiler.mxml.children-as-data -debug -compiler.binding-value-change-event=org.apache.flex.events.ValueChangeEvent -compiler.binding-value-change-event-kind=org.apache.flex.events.ValueChangeEvent -compiler.binding-value-change-event-type=valueChange -fb "\${project_loc}"'/>" >> "${argv[0]}/ide/flashbuilder/$FILENAME"
+echo "</launchConfiguration>" >> "${argv[0]}/ide/flashbuilder/$FILENAME"
+
+FILENAME="FlexJS (Release Build).launch"
+echo "Creating FlexJS Release Launch Configuration"
+echo "<?xml version='1.0' encoding='UTF-8' standalone='no'?>" > "${argv[0]}/ide/flashbuilder/$FILENAME"
+echo "<launchConfiguration type='org.eclipse.ui.externaltools.ProgramLaunchConfigurationType'>" >> "${argv[0]}/ide/flashbuilder/$FILENAME"
+echo "<booleanAttribute key='org.eclipse.debug.core.appendEnvironmentVariables' value='false'/>" >> "${argv[0]}/ide/flashbuilder/$FILENAME"
+echo "<listAttribute key='org.eclipse.debug.ui.favoriteGroups'>" >> "${argv[0]}/ide/flashbuilder/$FILENAME"
+echo "<listEntry value='org.eclipse.ui.externaltools.launchGroup'/>" >> "${argv[0]}/ide/flashbuilder/$FILENAME"
+echo "</listAttribute>" >> "${argv[0]}/ide/flashbuilder/$FILENAME"
+echo "<stringAttribute key='org.eclipse.ui.externaltools.ATTR_LAUNCH_CONFIGURATION_BUILD_SCOPE' value='\${project}'/>" >> "${argv[0]}/ide/flashbuilder/$FILENAME"
+echo "<stringAttribute key='org.eclipse.ui.externaltools.ATTR_LOCATION' value='${argv[1]}'/>" >> "${argv[0]}/ide/flashbuilder/$FILENAME"
+echo "<stringAttribute key='org.eclipse.ui.externaltools.ATTR_TOOL_ARGUMENTS' value='-Xmx384m -Dsun.io.useCanonCaches=false -Dflexcompiler="${argv[0]}" -Dflexlib="${argv[0]}/frameworks" -jar "${argv[0]}/lib/falcon-mxmlc.jar" -compiler.mxml.children-as-data -compiler.binding-value-change-event=org.apache.flex.events.ValueChangeEvent -compiler.binding-value-change-event-kind=org.apache.flex.events.ValueChangeEvent -compiler.binding-value-change-event-type=valueChange -fb "\${project_loc}"'/>" >> "${argv[0]}/ide/flashbuilder/$FILENAME"
+echo "</launchConfiguration>" >> "${argv[0]}/ide/flashbuilder/$FILENAME"
+
+FILENAME="FlexJS (FalconJX Debug and Release Build).launch"
+echo "Creating FlexJS FalconJX Launch Configuration"
+echo "<?xml version='1.0' encoding='UTF-8' standalone='no'?>" > "${argv[0]}/ide/flashbuilder/$FILENAME"
+echo "<launchConfiguration type='org.eclipse.ui.externaltools.ProgramLaunchConfigurationType'>" >> "${argv[0]}/ide/flashbuilder/$FILENAME"
+echo "<booleanAttribute key='org.eclipse.debug.core.appendEnvironmentVariables' value='false'/>" >> "${argv[0]}/ide/flashbuilder/$FILENAME"
+echo "<listAttribute key='org.eclipse.debug.ui.favoriteGroups'>" >> "${argv[0]}/ide/flashbuilder/$FILENAME"
+echo "<listEntry value='org.eclipse.ui.externaltools.launchGroup'/>" >> "${argv[0]}/ide/flashbuilder/$FILENAME"
+echo "</listAttribute>" >> "${argv[0]}/ide/flashbuilder/$FILENAME"
+echo "<stringAttribute key='org.eclipse.ui.externaltools.ATTR_LAUNCH_CONFIGURATION_BUILD_SCOPE' value='\${project}'/>" >> "${argv[0]}/ide/flashbuilder/$FILENAME"
+echo "<stringAttribute key='org.eclipse.ui.externaltools.ATTR_LOCATION' value='${argv[1]}'/>" >> "${argv[0]}/ide/flashbuilder/$FILENAME"
+echo "<stringAttribute key='org.eclipse.ui.externaltools.ATTR_TOOL_ARGUMENTS' value='-Xmx384m -Dfile.encoding=UTF8 -Dsun.io.useCanonCaches=false -Dflexcompiler="${argv[0]}" -Dflexlib="${argv[0]}/frameworks" -jar "${argv[0]}/js/lib/mxmlc.jar" -compiler.mxml.children-as-data -compiler.binding-value-change-event-type=valueChange -js-output-type=FLEXJS -closure-lib="$GOOG_HOME" -sdk-js-lib="${argv[0]}/js/src" -fb "\${project_loc}"'/>" >> "${argv[0]}/ide/flashbuilder/$FILENAME"
+echo "</launchConfiguration>" >> "${argv[0]}/ide/flashbuilder/$FILENAME"
+
+FILENAME="FlexJS (COMPC).launch"
+echo "Creating FlexJS COMPC Launch Configuration"
+echo "<?xml version='1.0' encoding='UTF-8' standalone='no'?>" > "${argv[0]}/ide/flashbuilder/$FILENAME"
+echo "<launchConfiguration type='org.eclipse.ui.externaltools.ProgramLaunchConfigurationType'>" >> "${argv[0]}/ide/flashbuilder/$FILENAME"
+echo "<booleanAttribute key='org.eclipse.debug.core.appendEnvironmentVariables' value='false'/>" >> "${argv[0]}/ide/flashbuilder/$FILENAME"
+echo "<listAttribute key='org.eclipse.debug.ui.favoriteGroups'>" >> "${argv[0]}/ide/flashbuilder/$FILENAME"
+echo "<listEntry value='org.eclipse.ui.externaltools.launchGroup'/>" >> "${argv[0]}/ide/flashbuilder/$FILENAME"
+echo "</listAttribute>" >> "${argv[0]}/ide/flashbuilder/$FILENAME"
+echo "<stringAttribute key='org.eclipse.ui.externaltools.ATTR_LAUNCH_CONFIGURATION_BUILD_SCOPE' value='\${project}'/>" >> "${argv[0]}/ide/flashbuilder/$FILENAME"
+echo "<stringAttribute key='org.eclipse.ui.externaltools.ATTR_LOCATION' value='${argv[1]}'/>" >> "${argv[0]}/ide/flashbuilder/$FILENAME"
+echo "<stringAttribute key='org.eclipse.ui.externaltools.ATTR_TOOL_ARGUMENTS' value='-Xmx384m -Dsun.io.useCanonCaches=false -Dflexcompiler="${argv[0]}" -Dflexlib="${argv[0]}/frameworks" -jar "${argv[0]}/lib/falcon-compc.jar" -debug -compiler.mxml.children-as-data -compiler.binding-value-change-event=org.apache.flex.events.ValueChangeEvent -compiler.binding-value-change-event-kind=org.apache.flex.events.ValueChangeEvent -compiler.binding-value-change-event-type=valueChange -fb "\${project_loc}"' />" >> "${argv[0]}/ide/flashbuilder/$FILENAME"
+echo "</launchConfiguration>" >> "${argv[0]}/ide/flashbuilder/$FILENAME"
+
+FILENAME="FlexJS (JS COMPC).launch"
+echo "Creating FlexJS JS COMPC Launch Configuration"
+echo "<?xml version='1.0' encoding='UTF-8' standalone='no'?>" > "${argv[0]}/ide/flashbuilder/$FILENAME"
+echo "<launchConfiguration type='org.eclipse.ui.externaltools.ProgramLaunchConfigurationType'>" >> "${argv[0]}/ide/flashbuilder/$FILENAME"
+echo "<booleanAttribute key='org.eclipse.debug.core.appendEnvironmentVariables' value='false'/>" >> "${argv[0]}/ide/flashbuilder/$FILENAME"
+echo "<listAttribute key='org.eclipse.debug.ui.favoriteGroups'>" >> "${argv[0]}/ide/flashbuilder/$FILENAME"
+echo "<listEntry value='org.eclipse.ui.externaltools.launchGroup'/>" >> "${argv[0]}/ide/flashbuilder/$FILENAME"
+echo "</listAttribute>" >> "${argv[0]}/ide/flashbuilder/$FILENAME"
+echo "<stringAttribute key='org.eclipse.ui.externaltools.ATTR_LAUNCH_CONFIGURATION_BUILD_SCOPE' value='\${project}'/>" >> "${argv[0]}/ide/flashbuilder/$FILENAME"
+echo "<stringAttribute key='org.eclipse.ui.externaltools.ATTR_LOCATION' value='${argv[1]}'/>" >> "${argv[0]}/ide/flashbuilder/$FILENAME"
+echo "<stringAttribute key='org.eclipse.ui.externaltools.ATTR_TOOL_ARGUMENTS' value='-Xmx384m -Dfile.encoding=UTF8 -Dsun.io.useCanonCaches=false -Dflexcompiler="${argv[0]}" -Dflexlib="${argv[0]}/frameworks" -jar "${argv[0]}/js/lib/compc.jar" -compiler.mxml.children-as-data -compiler.binding-value-change-event-type=valueChange -js-output-type=FLEXJS -closure-lib=$GOOG_HOME -sdk-js-lib=${argv[0]}/js/src -fb "\${project_loc}"' />" >> "${argv[0]}/ide/flashbuilder/$FILENAME"
+echo "</launchConfiguration>" >> "${argv[0]}/ide/flashbuilder/$FILENAME"
[4/8] git commit: [flex-asjs] [refs/heads/develop] - fix output dir
Posted by ah...@apache.org.
fix output dir
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/9ef7a2c0
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/9ef7a2c0
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/9ef7a2c0
Branch: refs/heads/develop
Commit: 9ef7a2c0aff4bd1eb17349b08be409f7a08a1d18
Parents: d7e70f9
Author: Alex Harui <ah...@apache.org>
Authored: Mon Nov 18 21:40:23 2013 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Mon Nov 18 21:40:23 2013 -0800
----------------------------------------------------------------------
frameworks/as/projects/FlexJSUI/build.xml | 8 ++++----
frameworks/as/projects/MXMLCClasses/build.xml | 8 ++++----
2 files changed, 8 insertions(+), 8 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/9ef7a2c0/frameworks/as/projects/FlexJSUI/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSUI/build.xml b/frameworks/as/projects/FlexJSUI/build.xml
index 3962c34..f7d9f75 100644
--- a/frameworks/as/projects/FlexJSUI/build.xml
+++ b/frameworks/as/projects/FlexJSUI/build.xml
@@ -19,8 +19,8 @@
-->
-<project name="framework" default="main" basedir=".">
- <property name="FLEXJS_HOME" location="../.."/>
+<project name="flexjsui" default="main" basedir=".">
+ <property name="FLEXJS_HOME" location="../../../.."/>
<property file="${FLEXJS_HOME}/env.properties"/>
<property environment="env"/>
@@ -32,7 +32,7 @@
<target name="clean">
<delete failonerror="false">
- <fileset dir="${FLEXJS_HOME}/libs">
+ <fileset dir="${FLEXJS_HOME}/frameworks/as/libs">
<include name="FlexJSUI.swc"/>
</fileset>
</delete>
@@ -58,7 +58,7 @@
into the file bundles.properties in this directory.
-->
<compc fork="true"
- output="${FLEXJS_HOME}/libs/FlexJSUI.swc">
+ output="${FLEXJS_HOME}/frameworks/as/libs/FlexJSUI.swc">
<jvmarg line="${compc.jvm.args}"/>
<load-config filename="compile-config.xml" />
<arg value="+playerglobal.version=${playerglobal.version}" />
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/9ef7a2c0/frameworks/as/projects/MXMLCClasses/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/MXMLCClasses/build.xml b/frameworks/as/projects/MXMLCClasses/build.xml
index 1e8086a..8c2e3b4 100644
--- a/frameworks/as/projects/MXMLCClasses/build.xml
+++ b/frameworks/as/projects/MXMLCClasses/build.xml
@@ -19,8 +19,8 @@
-->
-<project name="framework" default="main" basedir=".">
- <property name="FLEXJS_HOME" location="../.."/>
+<project name="mxmlcclasses" default="main" basedir=".">
+ <property name="FLEXJS_HOME" location="../../../.."/>
<property file="${FLEXJS_HOME}/env.properties"/>
<property environment="env"/>
@@ -32,7 +32,7 @@
<target name="clean">
<delete failonerror="false">
- <fileset dir="${FLEXJS_HOME}/libs">
+ <fileset dir="${FLEXJS_HOME}/frameworks/as/libs">
<include name="MXMLCClasses.swc"/>
</fileset>
</delete>
@@ -58,7 +58,7 @@
into the file bundles.properties in this directory.
-->
<compc fork="true"
- output="${FLEXJS_HOME}/libs/MXMLCClasses.swc">
+ output="${FLEXJS_HOME}/frameworks/as/libs/MXMLCClasses.swc">
<jvmarg line="${compc.jvm.args}"/>
<load-config filename="compile-config.xml" />
<arg value="+playerglobal.version=${playerglobal.version}" />
[2/8] Factor out MXMLCClasses into it own swc and build a set of ant
scripts to build it and FlexJSUI
Posted by ah...@apache.org.
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d7e70f9a/frameworks/as/projects/FlexJSUI/src/mx/binding/RepeaterComponentWatcher.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSUI/src/mx/binding/RepeaterComponentWatcher.as b/frameworks/as/projects/FlexJSUI/src/mx/binding/RepeaterComponentWatcher.as
deleted file mode 100644
index b16f2ae..0000000
--- a/frameworks/as/projects/FlexJSUI/src/mx/binding/RepeaterComponentWatcher.as
+++ /dev/null
@@ -1,74 +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.
-//
-////////////////////////////////////////////////////////////////////////////////
-
-package mx.binding
-{
-
-
-[ExcludeClass]
-
-/**
- * @private
- */
-public class RepeaterComponentWatcher extends PropertyWatcher
-{
-
- //--------------------------------------------------------------------------
- //
- // Constructor
- //
- //--------------------------------------------------------------------------
-
- /**
- * @private
- *
- * Create a RepeaterComponentWatcher
- *
- * @param prop The name of the property to watch.
- * @param event The event type that indicates the property has changed.
- * @param listeners The binding objects that are listening to this Watcher.
- * @param propertyGetter A helper function used to access non-public variables.
- */
- public function RepeaterComponentWatcher(propertyName:String,
- events:Object,
- listeners:Array,
- propertyGetter:Function = null)
- {
- super(propertyName, events, listeners, propertyGetter);
- }
-
- //--------------------------------------------------------------------------
- //
- // Properties
- //
- //--------------------------------------------------------------------------
-
- /**
- * @private
- */
- private var clones:Array;
-
- /**
- * @private
- */
- private var original:Boolean = true;
-
-}
-
-}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d7e70f9a/frameworks/as/projects/FlexJSUI/src/mx/binding/RepeaterItemWatcher.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSUI/src/mx/binding/RepeaterItemWatcher.as b/frameworks/as/projects/FlexJSUI/src/mx/binding/RepeaterItemWatcher.as
deleted file mode 100644
index 8d5e8e2..0000000
--- a/frameworks/as/projects/FlexJSUI/src/mx/binding/RepeaterItemWatcher.as
+++ /dev/null
@@ -1,74 +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.
-//
-////////////////////////////////////////////////////////////////////////////////
-
-package mx.binding
-{
-
-[ExcludeClass]
-
-/**
- * @private
- * This class is used to satisfy old MXML codegen
- * for both Falcon and MXML, but in FlexJS with mxml.children-as-data output
- * it isn't needed so there is no JS equivalent
- */
-public class RepeaterItemWatcher extends Watcher
-{
-
- //--------------------------------------------------------------------------
- //
- // Constructor
- //
- //--------------------------------------------------------------------------
-
- /**
- * @private
- * Constructor.
- */
- public function RepeaterItemWatcher(dataProviderWatcher:PropertyWatcher)
- {
- super();
-
- this.dataProviderWatcher = dataProviderWatcher;
- }
-
- //--------------------------------------------------------------------------
- //
- // Properties
- //
- //--------------------------------------------------------------------------
-
- /**
- * @private
- */
- private var dataProviderWatcher:PropertyWatcher;
-
- /**
- * @private
- */
- private var clones:Array;
-
- /**
- * @private
- */
- private var original:Boolean = true;
-
-}
-
-}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d7e70f9a/frameworks/as/projects/FlexJSUI/src/mx/binding/StaticPropertyWatcher.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSUI/src/mx/binding/StaticPropertyWatcher.as b/frameworks/as/projects/FlexJSUI/src/mx/binding/StaticPropertyWatcher.as
deleted file mode 100644
index 726211a..0000000
--- a/frameworks/as/projects/FlexJSUI/src/mx/binding/StaticPropertyWatcher.as
+++ /dev/null
@@ -1,136 +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.
-//
-////////////////////////////////////////////////////////////////////////////////
-
-package mx.binding
-{
-
-[ExcludeClass]
-
-/**
- * @private
- * This class is used to satisfy old MXML codegen
- * for both Falcon and MXML, but in FlexJS with mxml.children-as-data output
- * it isn't needed so there is no JS equivalent
- */
-public class StaticPropertyWatcher extends Watcher
-{
-
- //--------------------------------------------------------------------------
- //
- // Constructor
- //
- //--------------------------------------------------------------------------
-
- /**
- * Create a StaticPropertyWatcher
- *
- * @param prop The name of the static property to watch.
- * @param event The event type that indicates the static property has changed.
- * @param listeners The binding objects that are listening to this Watcher.
- * @param propertyGetter A helper function used to access non-public variables.
- *
- * @langversion 3.0
- * @playerversion Flash 9
- * @playerversion AIR 1.1
- * @productversion Flex 3
- */
- public function StaticPropertyWatcher(propertyName:String,
- events:Object,
- listeners:Array,
- propertyGetter:Function = null)
- {
- super(listeners);
-
- _propertyName = propertyName;
- this.events = events;
- this.propertyGetter = propertyGetter;
- }
-
- //--------------------------------------------------------------------------
- //
- // Variables
- //
- //--------------------------------------------------------------------------
-
- /**
- * The parent class of this static property.
- *
- * @langversion 3.0
- * @playerversion Flash 9
- * @playerversion AIR 1.1
- * @productversion Flex 3
- */
- private var parentObj:Class;
-
- /**
- * The events that indicate the static property has changed
- *
- * @langversion 3.0
- * @playerversion Flash 9
- * @playerversion AIR 1.1
- * @productversion Flex 3
- */
- protected var events:Object;
-
- /**
- * Storage for the propertyGetter property.
- *
- * @langversion 3.0
- * @playerversion Flash 9
- * @playerversion AIR 1.1
- * @productversion Flex 3
- */
- private var propertyGetter:Function;
-
- //--------------------------------------------------------------------------
- //
- // Properties
- //
- //--------------------------------------------------------------------------
-
- //----------------------------------
- // propertyName
- //----------------------------------
-
- /**
- * Storage for the propertyName property.
- *
- * @langversion 3.0
- * @playerversion Flash 9
- * @playerversion AIR 1.1
- * @productversion Flex 3
- */
- private var _propertyName:String;
-
- /**
- * The name of the property this Watcher is watching.
- *
- * @langversion 3.0
- * @playerversion Flash 9
- * @playerversion AIR 1.1
- * @productversion Flex 3
- */
- public function get propertyName():String
- {
- return _propertyName;
- }
-
-}
-
-}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d7e70f9a/frameworks/as/projects/FlexJSUI/src/mx/binding/Watcher.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSUI/src/mx/binding/Watcher.as b/frameworks/as/projects/FlexJSUI/src/mx/binding/Watcher.as
deleted file mode 100644
index 39df030..0000000
--- a/frameworks/as/projects/FlexJSUI/src/mx/binding/Watcher.as
+++ /dev/null
@@ -1,88 +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.
-//
-////////////////////////////////////////////////////////////////////////////////
-
-package mx.binding
-{
-
-[ExcludeClass]
-
-/**
- * @private
- * This class is used to satisfy old MXML codegen
- * for both Falcon and MXML, but in FlexJS with mxml.children-as-data output
- * it isn't needed so there is no JS equivalent
- */
-public class Watcher
-{
-
- //--------------------------------------------------------------------------
- //
- // Constructor
- //
- //--------------------------------------------------------------------------
-
- /**
- * Constructor.
- *
- * @langversion 3.0
- * @playerversion Flash 9
- * @playerversion AIR 1.1
- * @productversion Flex 3
- */
- public function Watcher(listeners:Array = null)
- {
- super();
-
- this.listeners = listeners;
- }
-
- //--------------------------------------------------------------------------
- //
- // Variables
- //
- //--------------------------------------------------------------------------
-
- /**
- * @private
- * The binding objects that are listening to this Watcher.
- * The standard event mechanism isn't used because it's too heavyweight.
- */
- protected var listeners:Array;
-
- /**
- * @private
- * Children of this watcher are watching sub values.
- */
- protected var children:Array;
-
- /**
- * @private
- * The value itself.
- */
- public var value:Object;
-
- /**
- * @private
- * Keep track of cloning when used in Repeaters.
- */
- protected var cloneIndex:int;
-
-}
-
-}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d7e70f9a/frameworks/as/projects/FlexJSUI/src/mx/binding/XMLWatcher.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSUI/src/mx/binding/XMLWatcher.as b/frameworks/as/projects/FlexJSUI/src/mx/binding/XMLWatcher.as
deleted file mode 100644
index b324638..0000000
--- a/frameworks/as/projects/FlexJSUI/src/mx/binding/XMLWatcher.as
+++ /dev/null
@@ -1,106 +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.
-//
-////////////////////////////////////////////////////////////////////////////////
-
-package mx.binding
-{
-
-[ExcludeClass]
-
-/**
- * @private
- * This class is used to satisfy old MXML codegen
- * for both Falcon and MXML, but in FlexJS with mxml.children-as-data output
- * it isn't needed so there is no JS equivalent
- */
-public class XMLWatcher extends Watcher
-{
-
- //--------------------------------------------------------------------------
- //
- // Constructor
- //
- //--------------------------------------------------------------------------
-
- /**
- * Constructor.
- *
- * @langversion 3.0
- * @playerversion Flash 9
- * @playerversion AIR 1.1
- * @productversion Flex 3
- */
- public function XMLWatcher(propertyName:String, listeners:Array)
- {
- super(listeners);
-
- _propertyName = propertyName;
- }
-
- //--------------------------------------------------------------------------
- //
- // Variables
- //
- //--------------------------------------------------------------------------
-
- /**
- * The parent object of this property.
- *
- * @langversion 3.0
- * @playerversion Flash 9
- * @playerversion AIR 1.1
- * @productversion Flex 3
- */
- private var parentObj:Object;
-
- //--------------------------------------------------------------------------
- //
- // Properties
- //
- //--------------------------------------------------------------------------
-
- //----------------------------------
- // propertyName
- //----------------------------------
-
- /**
- * Storage for the propertyName property.
- *
- * @langversion 3.0
- * @playerversion Flash 9
- * @playerversion AIR 1.1
- * @productversion Flex 3
- */
- private var _propertyName:String;
-
- /**
- * The name of the property this Watcher is watching.
- *
- * @langversion 3.0
- * @playerversion Flash 9
- * @playerversion AIR 1.1
- * @productversion Flex 3
- */
- public function get propertyName():String
- {
- return _propertyName;
- }
-
-}
-
-}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d7e70f9a/frameworks/as/projects/FlexJSUI/src/mx/core/ClassFactory.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSUI/src/mx/core/ClassFactory.as b/frameworks/as/projects/FlexJSUI/src/mx/core/ClassFactory.as
deleted file mode 100644
index 8ca4e79..0000000
--- a/frameworks/as/projects/FlexJSUI/src/mx/core/ClassFactory.as
+++ /dev/null
@@ -1,100 +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.
-//
-////////////////////////////////////////////////////////////////////////////////
-
-package mx.core
-{
-/**
- * @private
- * This class is used to satisfy old MXML codegen
- * for both Falcon and MXML, but in FlexJS with mxml.children-as-data output
- * it isn't needed so there is no JS equivalent
- */
-public class ClassFactory implements IFactory
-{
-
- //--------------------------------------------------------------------------
- //
- // Constructor
- //
- //--------------------------------------------------------------------------
-
- /**
- * Constructor.
- *
- * @param generator The Class that the <code>newInstance()</code> method uses
- * to generate objects from this factory object.
- *
- * @langversion 3.0
- * @playerversion Flash 9
- * @playerversion AIR 1.1
- * @productversion Flex 3
- */
- public function ClassFactory(generator:Class = null)
- {
- super();
- }
-
- //--------------------------------------------------------------------------
- //
- // Properties
- //
- //--------------------------------------------------------------------------
-
- //----------------------------------
- // generator
- //----------------------------------
-
- /**
- * The Class that the <code>newInstance()</code> method uses
- * to generate objects from this factory object.
- *
- * @langversion 3.0
- * @playerversion Flash 9
- * @playerversion AIR 1.1
- * @productversion Flex 3
- */
- public var generator:Class;
-
- //----------------------------------
- // properties
- //----------------------------------
-
- /**
- * An Object whose name/value pairs specify the properties to be set
- * on each object generated by the <code>newInstance()</code> method.
- *
- * <p>For example, if you set <code>properties</code> to
- * <code>{ text: "Hello", width: 100 }</code>, then every instance
- * of the <code>generator</code> class that is generated by calling
- * <code>newInstance()</code> will have its <code>text</code> set to
- * <code>"Hello"</code> and its <code>width</code> set to
- * <code>100</code>.</p>
- *
- * @default null
- *
- * @langversion 3.0
- * @playerversion Flash 9
- * @playerversion AIR 1.1
- * @productversion Flex 3
- */
- public var properties:Object = null;
-
-}
-
-}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d7e70f9a/frameworks/as/projects/FlexJSUI/src/mx/core/DeferredInstanceFromClass.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSUI/src/mx/core/DeferredInstanceFromClass.as b/frameworks/as/projects/FlexJSUI/src/mx/core/DeferredInstanceFromClass.as
deleted file mode 100644
index 9893d34..0000000
--- a/frameworks/as/projects/FlexJSUI/src/mx/core/DeferredInstanceFromClass.as
+++ /dev/null
@@ -1,115 +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.
-//
-////////////////////////////////////////////////////////////////////////////////
-
-package mx.core
-{
-
-/**
- * @private
- * This class is used to satisfy old MXML codegen
- * for both Falcon and MXML, but in FlexJS with mxml.children-as-data output
- * it isn't needed so there is no JS equivalent
- */
-public class DeferredInstanceFromClass
-{
- //--------------------------------------------------------------------------
- //
- // Constructor
- //
- //--------------------------------------------------------------------------
-
- /**
- * Constructor.
- *
- * @param generator The class whose instance the <code>getInstance()</code>
- * method creates and returns.
- *
- * @langversion 3.0
- * @playerversion Flash 9
- * @playerversion AIR 1.1
- * @productversion Flex 3
- */
- public function DeferredInstanceFromClass(generator:Class)
- {
- super();
-
- this.generator = generator;
- }
-
- //--------------------------------------------------------------------------
- //
- // Variables
- //
- //--------------------------------------------------------------------------
-
- /**
- * @private
- * The generator class.
- */
- private var generator:Class;
-
- /**
- * @private
- * The generated value.
- */
- private var instance:Object = null;
-
- //--------------------------------------------------------------------------
- //
- // Methods
- //
- //--------------------------------------------------------------------------
-
- /**
- * Creates and returns an instance of the class specified in the
- * DeferredInstanceFromClass constructor, if it does not yet exist;
- * otherwise, returns the already-created class instance.
- *
- * @return An instance of the class specified in the
- * DeferredInstanceFromClass constructor.
- *
- * @langversion 3.0
- * @playerversion Flash 9
- * @playerversion AIR 1.1
- * @productversion Flex 3
- */
- public function getInstance():Object
- {
- if (!instance)
- instance = new generator();
-
- return instance;
- }
-
- /**
- * Resets the state of our factory to the initial, uninitialized state.
- * The reference to our cached instance is cleared.
- *
- * @langversion 3.0
- * @playerversion Flash 9
- * @playerversion AIR 1.1
- * @productversion Flex 4
- */
- public function reset():void
- {
- instance = null;
- }
-}
-
-}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d7e70f9a/frameworks/as/projects/FlexJSUI/src/mx/core/DeferredInstanceFromFunction.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSUI/src/mx/core/DeferredInstanceFromFunction.as b/frameworks/as/projects/FlexJSUI/src/mx/core/DeferredInstanceFromFunction.as
deleted file mode 100644
index b93a277..0000000
--- a/frameworks/as/projects/FlexJSUI/src/mx/core/DeferredInstanceFromFunction.as
+++ /dev/null
@@ -1,131 +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.
-//
-////////////////////////////////////////////////////////////////////////////////
-
-package mx.core
-{
-
-/**
- * @private
- * This class is used to satisfy old MXML codegen
- * for both Falcon and MXML, but in FlexJS with mxml.children-as-data output
- * it isn't needed so there is no JS equivalent
- */
-public class DeferredInstanceFromFunction
-{
-
- //--------------------------------------------------------------------------
- //
- // Constructor
- //
- //--------------------------------------------------------------------------
-
- /**
- * Constructor.
- *
- * @param generator A function that creates and returns an instance
- * of the required object.
- *
- * @param destructor An optional function used to cleanup outstanding
- * references when <code>reset()</code> is called.
- *
- * @langversion 3.0
- * @playerversion Flash 9
- * @playerversion AIR 1.1
- * @productversion Flex 3
- */
- public function DeferredInstanceFromFunction(generator:Function,
- destructor:Function = null )
- {
- super();
-
- this.generator = generator;
- this.destructor = destructor;
- }
-
- //--------------------------------------------------------------------------
- //
- // Variables
- //
- //--------------------------------------------------------------------------
-
- /**
- * @private
- * The generator function.
- */
- private var generator:Function;
-
- /**
- * @private
- * The generated value.
- */
- private var instance:Object = null;
-
- /**
- * @private
- * An optional function used to cleanup outstanding
- * references when reset() is invoked
- */
- private var destructor:Function;
-
- //--------------------------------------------------------------------------
- //
- // Methods
- //
- //--------------------------------------------------------------------------
-
- /**
- * Returns a reference to an instance of the desired object.
- * If no instance of the required object exists, calls the function
- * specified in this class' <code>generator</code> constructor parameter.
- *
- * @return An instance of the object.
- *
- * @langversion 3.0
- * @playerversion Flash 9
- * @playerversion AIR 1.1
- * @productversion Flex 3
- */
- public function getInstance():Object
- {
- if (!instance)
- instance = generator();
-
- return instance;
- }
-
- /**
- * Resets the state of our factory to the initial, uninitialized state.
- * The reference to our cached instance is cleared.
- *
- * @langversion 3.0
- * @playerversion Flash 9
- * @playerversion AIR 1.1
- * @productversion Flex 4
- */
- public function reset():void
- {
- instance = null;
-
- if (destructor != null)
- destructor();
- }
-
-}
-
-}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d7e70f9a/frameworks/as/projects/FlexJSUI/src/mx/core/IDeferredInstance.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSUI/src/mx/core/IDeferredInstance.as b/frameworks/as/projects/FlexJSUI/src/mx/core/IDeferredInstance.as
deleted file mode 100644
index e3ac094..0000000
--- a/frameworks/as/projects/FlexJSUI/src/mx/core/IDeferredInstance.as
+++ /dev/null
@@ -1,51 +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.
-//
-////////////////////////////////////////////////////////////////////////////////
-
-package mx.core
-{
-
-/**
- * @private
- * This class is used to satisfy old MXML codegen
- * for both Falcon and MXML, but in FlexJS with mxml.children-as-data output
- * it isn't needed so there is no JS equivalent
- */
-public interface IDeferredInstance
-{
- //--------------------------------------------------------------------------
- //
- // Methods
- //
- //--------------------------------------------------------------------------
-
- /**
- * Creates an instance Object from a class or function,
- * if the instance does not yet exist.
- *
- * @return The instance Object.
- *
- * @langversion 3.0
- * @playerversion Flash 9
- * @playerversion AIR 1.1
- * @productversion Flex 3
- */
- function getInstance():Object;
-}
-
-}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d7e70f9a/frameworks/as/projects/FlexJSUI/src/mx/core/IFactory.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSUI/src/mx/core/IFactory.as b/frameworks/as/projects/FlexJSUI/src/mx/core/IFactory.as
deleted file mode 100644
index 205200b..0000000
--- a/frameworks/as/projects/FlexJSUI/src/mx/core/IFactory.as
+++ /dev/null
@@ -1,39 +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.
-//
-////////////////////////////////////////////////////////////////////////////////
-
-package mx.core
-{
-
-/**
- * @private
- * This class is used to satisfy old MXML codegen
- * for both Falcon and MXML, but in FlexJS with mxml.children-as-data output
- * it isn't needed so there is no JS equivalent
- */
-public interface IFactory
-{
- //--------------------------------------------------------------------------
- //
- // Methods
- //
- //--------------------------------------------------------------------------
-
-}
-
-}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d7e70f9a/frameworks/as/projects/FlexJSUI/src/mx/core/IFlexModuleFactory.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSUI/src/mx/core/IFlexModuleFactory.as b/frameworks/as/projects/FlexJSUI/src/mx/core/IFlexModuleFactory.as
deleted file mode 100644
index 536c92a..0000000
--- a/frameworks/as/projects/FlexJSUI/src/mx/core/IFlexModuleFactory.as
+++ /dev/null
@@ -1,147 +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.
-//
-////////////////////////////////////////////////////////////////////////////////
-
-package mx.core
-{
-
-/**
- * @private
- * This class is used to satisfy old MXML codegen
- * for both Falcon and MXML, but in FlexJS with mxml.children-as-data output
- * it isn't needed so there is no JS equivalent
- */
-public interface IFlexModuleFactory
-{
-
-
- /**
- * Calls the <code>Security.allowDomain()</code> method for the SWF
- * associated with this IFlexModuleFactory plus all the SWFs associated
- * with RSLs preloaded by this IFlexModuleFactory. RSLs loaded after this
- * call will, by default, allow the same domains as have been allowed by
- * previous calls to this method. This behavior is controlled by the <code>
- * allowDomainsInNewRSLs</code> property.
- *
- * @param domains One or more strings or URLRequest objects that name
- * the domains from which you want to allow access.
- * You can specify the special domain "*" to allow access from all domains.
- *
- * @see flash.system.Security#allowDomain()
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion Flex 4.5
- */
- function allowDomain(... domains):void;
-
- /**
- * Calls the <code>Security.allowInsecureDomain()</code> method for the
- * SWF associated with this IFlexModuleFactory
- * plus all the SWFs associated with RSLs preloaded by this
- * IFlexModuleFactory. RSLs loaded after this call will, by default,
- * allow the same domains as have been allowed by
- * previous calls to this method. This behavior is controlled by the <code>
- * allowInsecureDomainsInNewRSLs</code> property.
- *
- * @param domains One or more strings or URLRequest objects that name
- * the domains from which you want to allow access.
- * You can specify the special domain "*" to allow access from all domains.
- *
- * @see flash.system.Security#allowInsecureDomain()
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion Flex 4.5
- */
- function allowInsecureDomain(... domains):void;
-
- /**
- * A way to call a method in this IFlexModuleFactory's context
- *
- * @param fn The function or method to call.
- * @param thisArg The <code>this</code> pointer for the function.
- * @param argArray The arguments for the function.
- * @param returns If <code>true</code>, the function returns a value.
- *
- * @return Whatever the function returns, if anything.
- *
- * @see Function.apply
- *
- * @langversion 3.0
- * @playerversion Flash 10
- * @playerversion AIR 1.5
- * @productversion Flex 3
- */
- function callInContext(fn:Function, thisArg:Object,
- argArray:Array, returns:Boolean = true):*;
-
- /**
- * A factory method that requests
- * an instance of a definition known to the module.
- *
- * <p>You can provide an optional set of parameters to let
- * building factories change what they create based
- * on the input.
- * Passing <code>null</code> indicates that the default
- * definition is created, if possible.</p>
- *
- * @param parameters An optional list of arguments. You can pass any number
- * of arguments, which are then stored in an Array called <code>parameters</code>.
- *
- * @return An instance of the module, or <code>null</code>.
- *
- * @langversion 3.0
- * @playerversion Flash 9
- * @playerversion AIR 1.1
- * @productversion Flex 3
- */
- function create(... parameters):Object;
-
- /**
- * Returns a block of key/value pairs
- * that hold static data known to the module.
- * This method always succeeds, but can return an empty object.
- *
- * @return An object containing key/value pairs. Typically, this object
- * contains information about the module or modules created by this
- * factory; for example:
- *
- * <pre>
- * return {"description": "This module returns 42."};
- * </pre>
- *
- * Other common values in the returned object include the following:
- * <ul>
- * <li><code>fonts</code>: A list of embedded font faces.</li>
- * <li><code>rsls</code>: A list of run-time shared libraries.</li>
- * <li><code>mixins</code>: A list of classes initialized at startup.</li>
- * </ul>
- *
- * @langversion 3.0
- * @playerversion Flash 9
- * @playerversion AIR 1.1
- * @productversion Flex 3
- */
- function info():Object;
-
-}
-
-}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d7e70f9a/frameworks/as/projects/FlexJSUI/src/mx/core/IPropertyChangeNotifier.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSUI/src/mx/core/IPropertyChangeNotifier.as b/frameworks/as/projects/FlexJSUI/src/mx/core/IPropertyChangeNotifier.as
deleted file mode 100644
index 39d86ed..0000000
--- a/frameworks/as/projects/FlexJSUI/src/mx/core/IPropertyChangeNotifier.as
+++ /dev/null
@@ -1,40 +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.
-//
-////////////////////////////////////////////////////////////////////////////////
-
-package mx.core
-{
-
-/**
- * @private
- * This class is used to satisfy old MXML codegen
- * for both Falcon and MXML, but in FlexJS with mxml.children-as-data output
- * it isn't needed so there is no JS equivalent
- */
-public interface IPropertyChangeNotifier
-{
- //--------------------------------------------------------------------------
- //
- // Properties
- //
- //--------------------------------------------------------------------------
-
- // Inherits uid property from IUID
-}
-
-}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d7e70f9a/frameworks/as/projects/FlexJSUI/src/mx/core/IStateClient2.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSUI/src/mx/core/IStateClient2.as b/frameworks/as/projects/FlexJSUI/src/mx/core/IStateClient2.as
deleted file mode 100644
index ae21531..0000000
--- a/frameworks/as/projects/FlexJSUI/src/mx/core/IStateClient2.as
+++ /dev/null
@@ -1,31 +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.
-//
-////////////////////////////////////////////////////////////////////////////////
-
-/**
- * @private
- * shim the mx classes for states. This class is used to satisfy old MXML codegen
- * for both Falcon and MXML, but in FlexJS with mxml.children-as-data output
- * it isn't needed so there is no JS equivalent
- */
-package mx.core
-{
- public interface IStateClient2
- {
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d7e70f9a/frameworks/as/projects/FlexJSUI/src/mx/events/PropertyChangeEvent.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSUI/src/mx/events/PropertyChangeEvent.as b/frameworks/as/projects/FlexJSUI/src/mx/events/PropertyChangeEvent.as
deleted file mode 100644
index dcb2996..0000000
--- a/frameworks/as/projects/FlexJSUI/src/mx/events/PropertyChangeEvent.as
+++ /dev/null
@@ -1,78 +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.
-//
-////////////////////////////////////////////////////////////////////////////////
-
-package mx.events
-{
-
-import flash.events.Event;
-import mx.events.PropertyChangeEventKind;
-
-/**
- * @private
- * This class is used to satisfy old MXML codegen
- * for both Falcon and MXML, but in FlexJS with mxml.children-as-data output
- * it isn't needed so there is no JS equivalent
- */
-public class PropertyChangeEvent extends Event
-{
-
- //--------------------------------------------------------------------------
- //
- // Class constants
- //
- //--------------------------------------------------------------------------
-
- public static const PROPERTY_CHANGE:String = "propertyChange";
-
- //--------------------------------------------------------------------------
- //
- // Class methods
- //
- //--------------------------------------------------------------------------
-
- public static function createUpdateEvent(
- source:Object,
- property:Object,
- oldValue:Object,
- newValue:Object):PropertyChangeEvent
- {
- return null;
- }
-
- //--------------------------------------------------------------------------
- //
- // Constructor
- //
- //--------------------------------------------------------------------------
-
-
- public function PropertyChangeEvent(type:String, bubbles:Boolean = false,
- cancelable:Boolean = false,
- kind:String = null,
- property:Object = null,
- oldValue:Object = null,
- newValue:Object = null,
- source:Object = null)
- {
- super(type, bubbles, cancelable);
- }
-
-}
-
-}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d7e70f9a/frameworks/as/projects/FlexJSUI/src/mx/events/PropertyChangeEventKind.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSUI/src/mx/events/PropertyChangeEventKind.as b/frameworks/as/projects/FlexJSUI/src/mx/events/PropertyChangeEventKind.as
deleted file mode 100644
index 3c7d321..0000000
--- a/frameworks/as/projects/FlexJSUI/src/mx/events/PropertyChangeEventKind.as
+++ /dev/null
@@ -1,59 +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.
-//
-////////////////////////////////////////////////////////////////////////////////
-
-package mx.events
-{
-
-/**
- * @private
- * This class is used to satisfy old MXML codegen
- * for both Falcon and MXML, but in FlexJS with mxml.children-as-data output
- * it isn't needed so there is no JS equivalent
- */
-public final class PropertyChangeEventKind
-{
-
- //--------------------------------------------------------------------------
- //
- // Class constants
- //
- //--------------------------------------------------------------------------
-
- /**
- * Indicates that the value of the property changed.
- *
- * @langversion 3.0
- * @playerversion Flash 9
- * @playerversion AIR 1.1
- * @productversion Flex 3
- */
- public static const UPDATE:String = "update";
-
- /**
- * Indicates that the property was deleted from the object.
- *
- * @langversion 3.0
- * @playerversion Flash 9
- * @playerversion AIR 1.1
- * @productversion Flex 3
- */
- public static const DELETE:String = "delete";
-}
-
-}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d7e70f9a/frameworks/as/projects/FlexJSUI/src/mx/filters/IBitmapFilter.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSUI/src/mx/filters/IBitmapFilter.as b/frameworks/as/projects/FlexJSUI/src/mx/filters/IBitmapFilter.as
deleted file mode 100644
index efe40a9..0000000
--- a/frameworks/as/projects/FlexJSUI/src/mx/filters/IBitmapFilter.as
+++ /dev/null
@@ -1,31 +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.
-//
-////////////////////////////////////////////////////////////////////////////////
-
-/**
- * @private
- * This class is used to satisfy old MXML codegen
- * for both Falcon and MXML, but in FlexJS with mxml.children-as-data output
- * it isn't needed so there is no JS equivalent
- */
-package mx.filters
-{
- public interface IBitmapFilter
- {
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d7e70f9a/frameworks/as/projects/FlexJSUI/src/mx/styles/CSSCondition.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSUI/src/mx/styles/CSSCondition.as b/frameworks/as/projects/FlexJSUI/src/mx/styles/CSSCondition.as
deleted file mode 100644
index 82052ff..0000000
--- a/frameworks/as/projects/FlexJSUI/src/mx/styles/CSSCondition.as
+++ /dev/null
@@ -1,61 +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.
-//
-////////////////////////////////////////////////////////////////////////////////
-
-package mx.styles
-{
-
-/**
- * @private
- * This class is used to satisfy old MXML codegen
- * for both Falcon and MXML, but in FlexJS with mxml.children-as-data output
- * it isn't needed so there is no JS equivalent
- */
-public class CSSCondition
-{
- //--------------------------------------------------------------------------
- //
- // Constructor
- //
- //--------------------------------------------------------------------------
-
- /**
- * Constructor.
- *
- * @param kind The kind of condition. For valid values see the
- * CSSConditionKind enumeration.
- * @param value The condition value (without CSS syntax).
- *
- * @langversion 3.0
- * @playerversion Flash 10
- * @playerversion AIR 1.5
- * @productversion Flex 4
- */
- public function CSSCondition(kind:String, value:String)
- {
- }
-
- //--------------------------------------------------------------------------
- //
- // Properties
- //
- //--------------------------------------------------------------------------
-
-}
-
-}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d7e70f9a/frameworks/as/projects/FlexJSUI/src/mx/styles/CSSSelector.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSUI/src/mx/styles/CSSSelector.as b/frameworks/as/projects/FlexJSUI/src/mx/styles/CSSSelector.as
deleted file mode 100644
index dd0ada2..0000000
--- a/frameworks/as/projects/FlexJSUI/src/mx/styles/CSSSelector.as
+++ /dev/null
@@ -1,69 +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.
-//
-////////////////////////////////////////////////////////////////////////////////
-
-package mx.styles
-{
-
-/**
- * @private
- * This class is used to satisfy old MXML codegen
- * for both Falcon and MXML, but in FlexJS with mxml.children-as-data output
- * it isn't needed so there is no JS equivalent
- */
-public class CSSSelector
-{
- //--------------------------------------------------------------------------
- //
- // Constructor
- //
- //--------------------------------------------------------------------------
-
- /**
- * Constructor.
- *
- * @param subject The plain representation of this selector without
- * conditions or ancestors. This is typically a fully-qualified class name; for example,
- * "spark.components.Button". You can use "*" to match all components or "global" for a global selector.
- *
- * @param conditions An optional Array of objects of type CSSCondition that is used to match a
- * subset of component instances. Currently only a single or a pair of
- * conditions are supported.
- *
- * @param ancestor An optional selector to match on a component that
- * descends from an arbitrary ancestor.
- *
- * @langversion 3.0
- * @playerversion Flash 10
- * @playerversion AIR 1.5
- * @productversion Flex 4
- */
- public function CSSSelector(subject:String,
- conditions:Array=null, ancestor:CSSSelector=null)
- {
- }
-
- //--------------------------------------------------------------------------
- //
- // Properties
- //
- //--------------------------------------------------------------------------
-
-}
-
-}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d7e70f9a/frameworks/as/projects/FlexJSUI/src/mx/styles/CSSStyleDeclaration.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSUI/src/mx/styles/CSSStyleDeclaration.as b/frameworks/as/projects/FlexJSUI/src/mx/styles/CSSStyleDeclaration.as
deleted file mode 100644
index 238504f..0000000
--- a/frameworks/as/projects/FlexJSUI/src/mx/styles/CSSStyleDeclaration.as
+++ /dev/null
@@ -1,191 +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.
-//
-////////////////////////////////////////////////////////////////////////////////
-
-package mx.styles
-{
-
-/**
- * @private
- * This class is used to satisfy old MXML codegen
- * for both Falcon and MXML, but in FlexJS with mxml.children-as-data output
- * it isn't needed so there is no JS equivalent
- */
-public class CSSStyleDeclaration
-{
-
- //--------------------------------------------------------------------------
- //
- // Constructor
- //
- //--------------------------------------------------------------------------
-
- /**
- * Constructor.
- *
- * @param selector - If the selector is a CSSSelector then advanced
- * CSS selectors are supported. If a String is used for the selector then
- * only simple CSS selectors are supported. If the String starts with a
- * dot it is interpreted as a universal class selector, otherwise it must
- * represent a simple type selector. If not null, this CSSStyleDeclaration
- * will be registered with StyleManager.
- *
- * @param styleManager - The style manager to set this declaration into. If the
- * styleManager is null the top-level style manager will be used.
- *
- * @param autoRegisterWithStyleManager - If true set the selector in the styleManager. The selector
- * will only be set if both <code>selector</code> and <code>styleManager</code> are
- * both non-null.
- *
- * @langversion 3.0
- * @playerversion Flash 9
- * @playerversion AIR 1.1
- * @productversion Flex 3
- */
- public function CSSStyleDeclaration(selector:Object=null, styleManager:IStyleManager2=null, autoRegisterWithStyleManager:Boolean = true)
- {
- }
-
- /**
- * This function, if it isn't <code>null</code>,
- * is usually autogenerated by the MXML compiler.
- * It produce copies of a plain Object, such as
- * <code>{ leftMargin: 10, rightMargin: 10 }</code>,
- * containing name/value pairs for style properties; the object is used
- * to build a node of the prototype chain for looking up style properties.
- *
- * <p>If this CSSStyleDeclaration is owned by a UIComponent
- * written in MXML, this function encodes the style attributes
- * that were specified on the root tag of the component definition.</p>
- *
- * <p>If the UIComponent was written in ActionScript,
- * this property is <code>null</code>.</p>
- *
- * @langversion 3.0
- * @playerversion Flash 9
- * @playerversion AIR 1.1
- * @productversion Flex 3
- */
- public function get defaultFactory():Function
- {
- return null;
- }
-
- /**
- * @private
- */
- public function set defaultFactory(f:Function):void
- {
- }
-
- //----------------------------------
- // factory
- //----------------------------------
-
- private var _factory:Function;
-
- [Inspectable(environment="none")]
-
- /**
- * This function, if it isn't <code>null</code>,
- * is usually autogenerated by the MXML compiler.
- * It produce copies of a plain Object, such as
- * <code>{ leftMargin: 10, rightMargin: 10 }</code>,
- * containing name/value pairs for style properties; the object is used
- * to build a node of the prototype chain for looking up style properties.
- *
- * <p>If this CSSStyleDeclaration is owned by a UIComponent,
- * this function encodes the style attributes that were specified in MXML
- * for an instance of that component.</p>
- *
- * @langversion 3.0
- * @playerversion Flash 9
- * @playerversion AIR 1.1
- * @productversion Flex 3
- */
- public function get factory():Function
- {
- return _factory;
- }
-
- /**
- * @private
- */
- public function set factory(f:Function):void
- {
- _factory = f;
- }
-
- //----------------------------------
- // overrides
- //----------------------------------
-
- private var _overrides:Object;
-
- /**
- * If the <code>setStyle()</code> method is called on a UIComponent or CSSStyleDeclaration
- * at run time, this object stores the name/value pairs that were set;
- * they override the name/value pairs in the objects produced by
- * the methods specified by the <code>defaultFactory</code> and
- * <code>factory</code> properties.
- *
- * @langversion 3.0
- * @playerversion Flash 9
- * @playerversion AIR 1.1
- * @productversion Flex 3
- */
- public function get overrides():Object
- {
- return _overrides;
- }
-
- /**
- * @private
- */
- public function set overrides(o:Object):void
- {
- _overrides = o;
- }
-
- //----------------------------------
- // selector
- //----------------------------------
-
- private var _selector:CSSSelector;
-
- /**
- * This property is the base selector of a potential chain of selectors
- * and conditions that are used to match CSS style declarations to
- * components.
- *
- * @langversion 3.0
- * @playerversion Flash 10
- * @playerversion AIR 1.5
- * @productversion Flex 4
- */
- public function get selector():CSSSelector
- {
- return _selector;
- }
-
- public function set selector(value:CSSSelector):void
- {
- }
-}
-
-}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d7e70f9a/frameworks/as/projects/FlexJSUI/src/mx/styles/IStyleManager2.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSUI/src/mx/styles/IStyleManager2.as b/frameworks/as/projects/FlexJSUI/src/mx/styles/IStyleManager2.as
deleted file mode 100644
index b8cb6f4..0000000
--- a/frameworks/as/projects/FlexJSUI/src/mx/styles/IStyleManager2.as
+++ /dev/null
@@ -1,34 +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.
-//
-////////////////////////////////////////////////////////////////////////////////
-
-package mx.styles
-{
-
-/**
- * @private
- * This class is used to satisfy old MXML codegen
- * for both Falcon and MXML, but in FlexJS with mxml.children-as-data output
- * it isn't needed so there is no JS equivalent
- */
-public interface IStyleManager2
-{
- function getStyleDeclaration(selector:String):CSSStyleDeclaration;
-}
-
-}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d7e70f9a/frameworks/as/projects/FlexJSUI/src/mx/styles/StyleManager.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSUI/src/mx/styles/StyleManager.as b/frameworks/as/projects/FlexJSUI/src/mx/styles/StyleManager.as
deleted file mode 100644
index c54d9d2..0000000
--- a/frameworks/as/projects/FlexJSUI/src/mx/styles/StyleManager.as
+++ /dev/null
@@ -1,50 +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.
-//
-////////////////////////////////////////////////////////////////////////////////
-
-/**
- * @private
- * This class is used to satisfy old MXML codegen
- * for both Falcon and MXML, but in FlexJS with mxml.children-as-data output
- * it isn't needed so there is no JS equivalent
- */
-package mx.styles
-{
- import mx.core.IFlexModuleFactory;
-
- public class StyleManager
- {
- /**
- * Returns the style manager for an object.
- *
- * @param moduleFactory The module factory of an object you want the
- * style manager for. If null, the top-level style manager is returned.
- *
- * @return the style manager for the given module factory.
- *
- * @langversion 3.0
- * @playerversion Flash 10
- * @playerversion AIR 1.5
- * @productversion Flex 4
- */
- public static function getStyleManager(moduleFactory:IFlexModuleFactory):IStyleManager2
- {
- return null;
- }
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d7e70f9a/frameworks/as/projects/MXMLCClasses/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/MXMLCClasses/build.xml b/frameworks/as/projects/MXMLCClasses/build.xml
new file mode 100644
index 0000000..1e8086a
--- /dev/null
+++ b/frameworks/as/projects/MXMLCClasses/build.xml
@@ -0,0 +1,69 @@
+<?xml version="1.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.
+
+-->
+
+
+<project name="framework" default="main" basedir=".">
+ <property name="FLEXJS_HOME" location="../.."/>
+
+ <property file="${FLEXJS_HOME}/env.properties"/>
+ <property environment="env"/>
+ <property file="${FLEXJS_HOME}/build.properties"/>
+ <property name="FLEX_HOME" value="${env.FLEX_HOME}"/>
+
+ <target name="main" depends="clean,compile" description="Clean build of MXMLCClasses.swc">
+ </target>
+
+ <target name="clean">
+ <delete failonerror="false">
+ <fileset dir="${FLEXJS_HOME}/libs">
+ <include name="MXMLCClasses.swc"/>
+ </fileset>
+ </delete>
+ </target>
+
+ <target name="compile" description="Compiles MXMLCClasses.swc">
+ <echo message="Compiling libs/MXMLCClasses.swc"/>
+ <echo message="FLEX_HOME: ${FLEX_HOME}"/>
+
+ <!-- Load the <compc> 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="${FLEX_HOME}/lib/flexTasks.jar"/>
+ <!--
+ Link in the classes (and their dependencies) for the MXML tags
+ listed in this project's manifest.xml.
+ Also link the additional classes (and their dependencies)
+ listed in MXMLCClassesClasses.as,
+ because these aren't referenced by the manifest classes.
+ Keep the standard metadata when compiling.
+ Include the appropriate CSS files and assets in the SWC.
+ Don't include any resources in the SWC.
+ Write a bundle list of referenced resource bundles
+ into the file bundles.properties in this directory.
+ -->
+ <compc fork="true"
+ output="${FLEXJS_HOME}/libs/MXMLCClasses.swc">
+ <jvmarg line="${compc.jvm.args}"/>
+ <load-config filename="compile-config.xml" />
+ <arg value="+playerglobal.version=${playerglobal.version}" />
+ <arg value="+env.PLAYERGLOBAL_HOME=${env.PLAYERGLOBAL_HOME}" />
+ </compc>
+ </target>
+
+</project>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d7e70f9a/frameworks/as/projects/MXMLCClasses/compile-config.xml
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/MXMLCClasses/compile-config.xml b/frameworks/as/projects/MXMLCClasses/compile-config.xml
new file mode 100644
index 0000000..6c087f2
--- /dev/null
+++ b/frameworks/as/projects/MXMLCClasses/compile-config.xml
@@ -0,0 +1,44 @@
+<!--
+
+ 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-config>
+
+ <compiler>
+ <accessible>false</accessible>
+
+ <external-library-path>
+ <path-element>${env.PLAYERGLOBAL_HOME}/${playerglobal.version}/playerglobal.swc</path-element>
+ </external-library-path>
+
+ <locale/>
+
+ <library-path/>
+
+ <source-path>
+ <path-element>src</path-element>
+ </source-path>
+
+ <warn-no-constructor>false</warn-no-constructor>
+ </compiler>
+
+ <include-classes>
+ <class>MXMLCClasses</class>
+ </include-classes>
+
+ <target-player>${playerglobal.version}</target-player>
+</flex-config>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d7e70f9a/frameworks/as/projects/MXMLCClasses/src/MXMLCClasses.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/MXMLCClasses/src/MXMLCClasses.as b/frameworks/as/projects/MXMLCClasses/src/MXMLCClasses.as
new file mode 100644
index 0000000..bbbb6fb
--- /dev/null
+++ b/frameworks/as/projects/MXMLCClasses/src/MXMLCClasses.as
@@ -0,0 +1,60 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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.
+//
+////////////////////////////////////////////////////////////////////////////////
+package
+{
+
+/**
+ * @private
+ * This class is used to link additional classes into rpc.swc
+ * beyond those that are found by dependecy analysis starting
+ * from the classes specified in manifest.xml.
+ */
+internal class MXMLCClasses
+{
+
+ import mx.binding.ArrayElementWatcher; ArrayElementWatcher;
+ import mx.binding.Binding; Binding;
+ import mx.binding.BindingManager; BindingManager;
+ import mx.binding.FunctionReturnWatcher; FunctionReturnWatcher;
+ import mx.binding.IBindingClient; IBindingClient;
+ import mx.binding.IWatcherSetupUtil2; IWatcherSetupUtil2;
+ import mx.binding.PropertyWatcher; PropertyWatcher;
+ import mx.binding.RepeaterComponentWatcher; RepeaterComponentWatcher;
+ import mx.binding.RepeaterItemWatcher; RepeaterItemWatcher;
+ import mx.binding.StaticPropertyWatcher; StaticPropertyWatcher;
+ import mx.binding.Watcher; Watcher;
+ import mx.binding.XMLWatcher; XMLWatcher;
+ import mx.core.ClassFactory; ClassFactory;
+ import mx.core.DeferredInstanceFromClass; DeferredInstanceFromClass;
+ import mx.core.DeferredInstanceFromFunction; DeferredInstanceFromFunction;
+ import mx.core.IDeferredInstance; IDeferredInstance;
+ import mx.core.IFactory; IFactory;
+ import mx.core.IFlexModuleFactory; IFlexModuleFactory;
+ import mx.core.IPropertyChangeNotifier; IPropertyChangeNotifier;
+ import mx.core.IStateClient2; IStateClient2;
+ import mx.events.PropertyChangeEvent; PropertyChangeEvent;
+ import mx.filters.IBitmapFilter; IBitmapFilter;
+ import mx.styles.CSSCondition; CSSCondition;
+ import mx.styles.CSSSelector; CSSSelector;
+ import mx.styles.CSSStyleDeclaration; CSSStyleDeclaration;
+ import mx.styles.IStyleManager2; IStyleManager2;
+ import mx.styles.StyleManager; StyleManager;
+}
+
+}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d7e70f9a/frameworks/as/projects/MXMLCClasses/src/mx/binding/ArrayElementWatcher.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/MXMLCClasses/src/mx/binding/ArrayElementWatcher.as b/frameworks/as/projects/MXMLCClasses/src/mx/binding/ArrayElementWatcher.as
new file mode 100644
index 0000000..024af6c
--- /dev/null
+++ b/frameworks/as/projects/MXMLCClasses/src/mx/binding/ArrayElementWatcher.as
@@ -0,0 +1,77 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.binding
+{
+
+[ExcludeClass]
+
+/**
+ * @private
+ * This class is used to satisfy old MXML codegen
+ * for both Falcon and MXML, but in FlexJS with mxml.children-as-data output
+ * it isn't needed so there is no JS equivalent
+ */
+public class ArrayElementWatcher extends Watcher
+{
+
+ //--------------------------------------------------------------------------
+ //
+ // Constructor
+ //
+ //--------------------------------------------------------------------------
+
+ /**
+ * @private
+ * Constructor
+ */
+ public function ArrayElementWatcher(document:Object,
+ accessorFunc:Function,
+ listeners:Array)
+ {
+ super(listeners);
+
+ this.document = document;
+ this.accessorFunc = accessorFunc;
+ }
+
+ //--------------------------------------------------------------------------
+ //
+ // Variables
+ //
+ //--------------------------------------------------------------------------
+
+ /**
+ * @private
+ */
+ private var document:Object;
+
+ /**
+ * @private
+ */
+ private var accessorFunc:Function;
+
+ /**
+ * @private
+ */
+ public var arrayWatcher:Watcher;
+
+}
+
+}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d7e70f9a/frameworks/as/projects/MXMLCClasses/src/mx/binding/Binding.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/MXMLCClasses/src/mx/binding/Binding.as b/frameworks/as/projects/MXMLCClasses/src/mx/binding/Binding.as
new file mode 100644
index 0000000..b822dcd
--- /dev/null
+++ b/frameworks/as/projects/MXMLCClasses/src/mx/binding/Binding.as
@@ -0,0 +1,85 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.binding
+{
+
+/**
+ * @private
+ * This class is used to satisfy old MXML codegen
+ * for both Falcon and MXML, but in FlexJS with mxml.children-as-data output
+ * it isn't needed so there is no JS equivalent
+ */
+public class Binding
+{
+
+ //--------------------------------------------------------------------------
+ //
+ // Constructor
+ //
+ //--------------------------------------------------------------------------
+
+ /**
+ * Create a Binding object
+ *
+ * @param document The document that is the target of all of this work.
+ *
+ * @param srcFunc The function that returns us the value
+ * to use in this Binding.
+ *
+ * @param destFunc The function that will take a value
+ * and assign it to the destination.
+ *
+ * @param destString The destination represented as a String.
+ * We can then tell the ValidationManager to validate this field.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 9
+ * @playerversion AIR 1.1
+ * @productversion Flex 3
+ */
+ public function Binding(document:Object, srcFunc:Function,
+ destFunc:Function, destString:String,
+ srcString:String = null)
+ {
+ }
+
+ //--------------------------------------------------------------------------
+ //
+ // Variables
+ //
+ //--------------------------------------------------------------------------
+
+ /**
+ * Execute the binding.
+ * Call the source function and get the value we'll use.
+ * Then call the destination function passing the value as an argument.
+ * Finally try to validate the destination.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 9
+ * @playerversion AIR 1.1
+ * @productversion Flex 3
+ */
+ public function execute(o:Object = null):void
+ {
+ }
+}
+
+}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d7e70f9a/frameworks/as/projects/MXMLCClasses/src/mx/binding/BindingManager.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/MXMLCClasses/src/mx/binding/BindingManager.as b/frameworks/as/projects/MXMLCClasses/src/mx/binding/BindingManager.as
new file mode 100644
index 0000000..3ef557b
--- /dev/null
+++ b/frameworks/as/projects/MXMLCClasses/src/mx/binding/BindingManager.as
@@ -0,0 +1,37 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+/**
+ * @private
+ * This class is used to satisfy old MXML codegen
+ * for both Falcon and MXML, but in FlexJS with mxml.children-as-data output
+ * it isn't needed so there is no JS equivalent
+ */
+package mx.binding
+{
+ public class BindingManager
+ {
+ public static function executeBindings(document:Object,
+ destStr:String,
+ destObj:Object):void
+ {
+
+ }
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d7e70f9a/frameworks/as/projects/MXMLCClasses/src/mx/binding/FunctionReturnWatcher.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/MXMLCClasses/src/mx/binding/FunctionReturnWatcher.as b/frameworks/as/projects/MXMLCClasses/src/mx/binding/FunctionReturnWatcher.as
new file mode 100644
index 0000000..2dfd63e
--- /dev/null
+++ b/frameworks/as/projects/MXMLCClasses/src/mx/binding/FunctionReturnWatcher.as
@@ -0,0 +1,129 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.binding
+{
+
+[ExcludeClass]
+
+/**
+ * @private
+ * This class is used to satisfy old MXML codegen
+ * for both Falcon and MXML, but in FlexJS with mxml.children-as-data output
+ * it isn't needed so there is no JS equivalent
+ */
+public class FunctionReturnWatcher extends Watcher
+{
+
+ //--------------------------------------------------------------------------
+ //
+ // Constructor
+ //
+ //--------------------------------------------------------------------------
+
+ /**
+ * @private
+ * Constructor.
+ */
+ public function FunctionReturnWatcher(functionName:String,
+ document:Object,
+ parameterFunction:Function,
+ events:Object,
+ listeners:Array,
+ functionGetter:Function = null,
+ isStyle:Boolean = false)
+ {
+ super(listeners);
+
+ this.functionName = functionName;
+ this.document = document;
+ this.parameterFunction = parameterFunction;
+ this.events = events;
+ this.functionGetter = functionGetter;
+ this.isStyle = isStyle;
+ }
+
+ //--------------------------------------------------------------------------
+ //
+ // Variables
+ //
+ //--------------------------------------------------------------------------
+
+ /**
+ * @private
+ * The name of the property, used to actually get the property
+ * and for comparison in propertyChanged events.
+ */
+ private var functionName:String;
+
+ /**
+ * @private
+ * The document is what we need to use to execute the parameter function.
+ */
+ private var document:Object;
+
+ /**
+ * @private
+ * The function that will give us the parameters for calling the function.
+ */
+ private var parameterFunction:Function;
+
+ /**
+ * @private
+ * The events that indicate the property has changed.
+ */
+ private var events:Object;
+
+ /**
+ * @private
+ * The parent object of this function.
+ */
+ private var parentObj:Object;
+
+ /**
+ * @private
+ * The watcher holding onto the parent object.
+ */
+ public var parentWatcher:Watcher;
+
+ /**
+ * Storage for the functionGetter property.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 9
+ * @playerversion AIR 1.1
+ * @productversion Flex 3
+ */
+ private var functionGetter:Function;
+
+ /**
+ * Storage for the isStyle property. This will be true, when
+ * watching a function marked with [Bindable(style="true")]. For
+ * example, UIComponent.getStyle().
+ *
+ * @langversion 3.0
+ * @playerversion Flash 9
+ * @playerversion AIR 1.1
+ * @productversion Flex 4
+ */
+ private var isStyle:Boolean;
+
+}
+
+}
[7/8] git commit: [flex-asjs] [refs/heads/develop] - ant release
appears to create a binary package that approximates FlexJSOverlay
Posted by ah...@apache.org.
ant release appears to create a binary package that approximates FlexJSOverlay
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/01518308
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/01518308
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/01518308
Branch: refs/heads/develop
Commit: 01518308a7c4ddf5219adca8de63f2d0bb9c2d31
Parents: b8421ae
Author: Alex Harui <ah...@apache.org>
Authored: Tue Nov 19 12:01:41 2013 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Tue Nov 19 12:01:41 2013 -0800
----------------------------------------------------------------------
build.xml | 116 +++++----
frameworks/as/air-config.xml | 354 ++++++++++++++++++++++++++++
frameworks/as/build.xml | 1 -
frameworks/as/flex-config-template.xml | 1 +
4 files changed, 421 insertions(+), 51 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/01518308/build.xml
----------------------------------------------------------------------
diff --git a/build.xml b/build.xml
index 25ef7dc..cec1d58 100644
--- a/build.xml
+++ b/build.xml
@@ -85,7 +85,7 @@
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-goog-env,source-release,binary-release,rat-check"
+ depends="check-compile-env,check-runtime-env,check-falcon-home,source-release,binary-release,rat-check"
description="Creates source and binary kits for Apache FlexJS."/>
<target name="source-release"
@@ -212,9 +212,9 @@
value="${env.FALCON_HOME}"/>
<available file="${env.FALCON_HOME}/lib/falcon-mxmlc.jar"
- type="dir"
+ type="file"
property="FALCON_HOME"
- value="${env.FALCON_HOME}/../../../..../"/>
+ value="${env.FALCON_HOME}/../../../.."/>
<fail message="FALCON_HOME must be set to a flex-falcon repo for a release build or compiler/generated/dist/sdk folder in flex-falcon repo"
unless="FALCON_HOME"/>
@@ -253,7 +253,7 @@
</target>
<target name="create-config" description="Create flex config file">
- <ant dir="${basedir}/frameworks" target="flex-config" />
+ <ant dir="${basedir}/frameworks/as" target="flex-config" />
</target>
<target name="setup-binary-release" depends="thirdparty-clean"
@@ -296,13 +296,15 @@
<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" />
<ant dir="${basedir}/mustella" target="clean"/>
+ -->
</target>
<target name="examples-clean">
- <ant dir="${basedir}/examples" target="clean"/>
+ <!--<ant dir="${basedir}/examples" target="clean"/>-->
</target>
<target name="frameworks-as-clean">
@@ -330,7 +332,7 @@
-->
<target name="examples" description="Build the examples">
- <ant dir="${basedir}/examples"/>
+ <!--<ant dir="${basedir}/examples"/>-->
</target>
<!--
@@ -347,7 +349,7 @@
</target>
<target name="other.locales" description="Build resource SWCs for additional locales">
- <ant dir="${basedir}/frameworks" target="other.locales"/>
+ <!--<ant dir="${basedir}/frameworks" target="other.locales"/>-->
</target>
<target name="sample-themes" description="Build the sample themes">
@@ -423,7 +425,7 @@
<include name="build.properties"/>
<include name="env-template.properties"/>
<include name="flex-sdk-description.xml"/>
- <include name="README"/>
+ <include name="READme"/>
<include name="RELEASE_NOTES"/>
</fileset>
<fileset dir="${FLEX_HOME}">
@@ -506,8 +508,8 @@
<!-- frameworks -->
<!-- javascript and test directories follow -->
<target name="stage-framework-as">
- <copy todir="${basedir}/temp/frameworks/as" includeEmptyDirs="false">
- <fileset dir="${basedir}/frameworks/as">
+ <copy todir="${basedir}/temp/frameworks/src" includeEmptyDirs="false">
+ <fileset dir="${basedir}/frameworks/as/projects/FlexJSUI/src">
<include name="**"/>
<exclude name="**/libs/**"/>
<exclude name="**/*.swc"/>
@@ -522,6 +524,23 @@
<exclude name="projects/*/.settings/**"/>
</fileset>
</copy>
+ <copy todir="${basedir}/temp/frameworks/src" includeEmptyDirs="false">
+ <fileset dir="${basedir}/frameworks/as/projects/FlexJSUI">
+ <include name="basic-manifest.xml"/>
+ <include name="html5-manifest.xml"/>
+ </fileset>
+ </copy>
+ <copy todir="${basedir}/temp/frameworks/src" includeEmptyDirs="false">
+ <fileset dir="${basedir}/frameworks/as">
+ <include name="air-config.xml"/>
+ <include name="flex-config.xml"/>
+ </fileset>
+ </copy>
+ <copy todir="${basedir}/temp/frameworks/src" includeEmptyDirs="false">
+ <fileset dir="${basedir}">
+ <include name="flex-sdk-description.xml"/>
+ </fileset>
+ </copy>
<tstamp>
<format property="build.number.date" pattern="yyyyMMdd" />
@@ -530,19 +549,19 @@
<!-- 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}" />
+ <fix-config-file file="${basedir}/temp/frameworks/src/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}" />
+ <fix-config-file file="${basedir}/temp/frameworks/src/flex-config.xml" version="${build.version}" />
<!-- Update all Version.as files in the kit frameworks directory with build.number -->
- <antcall target="version-update"/>
+ <!--<antcall target="version-update"/>-->
</target>
<!-- tlf -->
- <target name="stage-frameworks-js">
- <copy todir="${basedir}/temp/frameworks/js" includeEmptyDirs="false">
- <fileset dir="${FLEXJS_HOME}/frameworks/js/FlexJS">
- <include name="src/**"/>
+ <target name="stage-framework-js">
+ <copy todir="${basedir}/temp/js/src" includeEmptyDirs="false">
+ <fileset dir="${FLEXJS_HOME}/frameworks/js/FlexJS/src">
+ <include name="**"/>
</fileset>
</copy>
</target>
@@ -570,8 +589,8 @@
</fileset>
</copy>
<copy todir="${basedir}/temp/lib" includeEmptyDirs="false">
- <fileset dir="${FALCON_HOME}/compiler/generated/dist/sdk//lib">
- <include name="*"/>
+ <fileset dir="${FALCON_HOME}/compiler/generated/dist/sdk/lib">
+ <include name="**"/>
<exclude name="adl*"/>
<exclude name="adt*"/>
</fileset>
@@ -664,24 +683,9 @@
<filelist dir="${FLEX_HOME}" files="LICENSE,LICENSE.bin"/>
</concat-->
-
- <!-- generated files in frameworks excepts libs and rsls -->
- <copy todir="${basedir}/temp/frameworks/as">
- <fileset dir="${basedir}/frameworks/as">
- <include name="projects/*/bundles.properties"/>
- <include name="projects/spark/manifest.xml"/>
- <include name="**/*.pbj"/>
- <include name="**/*.swc"/>
- <include name="**/*.swf"/>
- <exclude name="libs/**"/>
- <exclude name="rsls/**"/>
- <exclude name="tests/**"/>
- </fileset>
- </copy>
-
<!-- frameworks/libs -->
<copy todir="${basedir}/temp/frameworks/libs">
- <fileset dir="${basedir}/frameworks/libs">
+ <fileset dir="${basedir}/frameworks/as/libs">
<include name="FlexJSUI.swc"/>
<include name="MXMLCClasses.swc"/>
</fileset>
@@ -693,30 +697,39 @@
<!-- falconjx -->
<antcall target="stage-falconjx"/>
- <!-- ide -->
+ <!-- ide
<copy todir="${basedir}/temp/ide">
<fileset dir="${basedir}/ide" >
<include name="flashbuilder/config"/>
</fileset>
</copy>
-
+ -->
+
<!-- sample themes -->
- <copy todir="${basedir}/temp/samples">
- <fileset dir="${basedir}/samples" >
+ <copy todir="${basedir}/temp/examples">
+ <fileset dir="${basedir}/examples" >
<include name="**/build.xml"/>
<include name="**/*.swc"/>
<include name="**/*.swf"/>
</fileset>
</copy>
- <!-- swfobject templates except for downloaded files -->
+ <!-- deploy scripts -->
+ <copy todir="${basedir}/temp/">
+ <fileset dir="${basedir}/scripts" >
+ <include name="**/*"/>
+ </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"/>
</target>
@@ -960,7 +973,7 @@
<!-- Builds fat swcs. -->
<target name="doc">
- <ant dir="${basedir}/frameworks" target="doc" />
+ <!--<ant dir="${basedir}/frameworks" target="doc" />-->
</target>
<!--
@@ -978,12 +991,13 @@
<target name="basictests-mustella" depends="mustella-setup,basictests"/>
<target name="mustella-setup" depends="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=""/>
+ <property name="moreCompilerArgs" value=""/> -->
<!-- compile the results parser -->
- <javac srcdir="mustella" includes="MustellaResultsParser.java"/>
+ <!--<javac srcdir="mustella" includes="MustellaResultsParser.java"/>-->
</target>
<!-- To run the checkintests as well as any mustella tests need AIR for the adl and
@@ -1028,7 +1042,7 @@
<target name="basictests" depends="load-task" description="run basic tests using mustella">
- <!-- compile the basic tests -->
+ <!-- compile the basic tests
<mxmlc fork="true"
file="${basedir}/frameworks/tests/basicTests/BasicTests.mxml">
<jvmarg line="${mxmlc.jvm.args}"/>
@@ -1036,8 +1050,8 @@
<include name="mustella/mustella.swc"/>
</library-path>
</mxmlc>
-
- <!-- compile supporting swfs for basic tests -->
+ -->
+ <!-- compile supporting swfs for basic tests
<mxmlc fork="true"
file="${basedir}/frameworks/tests/basicTests/basicLoader.as">
<jvmarg line="${mxmlc.jvm.args}"/>
@@ -1052,14 +1066,16 @@
remove-unused-rsls="true" >
<jvmarg line="${mxmlc.jvm.args}"/>
</mxmlc>
-
- <!-- run the component smoke -->
+ -->
+ <!-- run the component smoke
<echo message="launching player and swf"/>
<exec executable="${flash.player}" dir="${basedir}/frameworks" failonerror="true">
<arg value="${basedir}/frameworks/tests/basicTests/BasicTests.swf"/>
</exec>
- <!-- halt if there was an error -->
+ -->
+ <!-- halt if there was an error
<antcall target="mustellaresultsparser"/>
+ -->
</target>
<target name="mustellaresultsparser">
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/01518308/frameworks/as/air-config.xml
----------------------------------------------------------------------
diff --git a/frameworks/as/air-config.xml b/frameworks/as/air-config.xml
new file mode 100644
index 0000000..417fe16
--- /dev/null
+++ b/frameworks/as/air-config.xml
@@ -0,0 +1,354 @@
+<?xml version="1.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-config>
+ <!-- Specifies the minimum player version that will run the compiled SWF. -->
+ <target-player>@playerversion@</target-player>
+
+ <!-- Specifies the version of the compiled SWF -->
+ <swf-version>@swfversion@</swf-version>
+
+ <compiler>
+
+ <!-- Turn on generation of accessible SWFs. -->
+ <accessible>true</accessible>
+
+ <!-- Specifies the locales for internationalization. -->
+ <locale>
+ <locale-element>@locale@</locale-element>
+ </locale>
+
+ <!-- List of path elements that form the roots of ActionScript class hierarchies. -->
+ <!-- not set -->
+ <!--
+ <source-path>
+ <path-element>string</path-element>
+ </source-path>
+ -->
+
+ <!-- Allow the source-path to have path-elements which contain other path-elements -->
+ <allow-source-path-overlap>false</allow-source-path-overlap>
+
+ <!-- Run the AS3 compiler in a mode that detects legal but potentially incorrect -->
+ <!-- code. -->
+ <show-actionscript-warnings>true</show-actionscript-warnings>
+
+ <!-- Turn on generation of debuggable SWFs. False by default for mxmlc, -->
+ <!-- but true by default for compc. -->
+ <!--
+ <debug>true</debug>
+ -->
+
+ <!-- List of SWC files or directories to compile against but to omit from -->
+ <!-- linking. -->
+ <external-library-path>
+ <path-element>{airHome}/frameworks/libs/air/airglobal.swc</path-element>
+ </external-library-path>
+
+ <!-- Turn on writing of generated/*.as files to disk. These files are generated by -->
+ <!-- the compiler during mxml translation and are helpful with understanding and -->
+ <!-- debugging Flex applications. -->
+ <keep-generated-actionscript>false</keep-generated-actionscript>
+
+ <!-- not set -->
+ <!--
+ <include-libraries>
+ <library>string</library>
+ </include-libraries>
+ -->
+
+ <!-- List of SWC files or directories that contain SWC files. -->
+ <library-path>
+ <path-element>libs</path-element>
+ <path-element>libs/as</path-element>
+ <path-element>libs/air</path-element>
+ <path-element>{airHome}/frameworks/libs/air</path-element>
+ <path-element>locale/{locale}</path-element>
+ </library-path>
+
+ <namespaces>
+ <!-- Specify a URI to associate with a manifest of components for use as MXML -->
+ <!-- elements. -->
+ <namespace>
+ <uri>library://ns.apache.org/flexjs/basic</uri>
+
+ <manifest>basic-manifest.xml</manifest>
+
+ </namespace>
+ <namespace>
+ <uri>library://ns.apache.org/flexjs/html5</uri>
+
+ <manifest>html5-manifest.xml</manifest>
+
+ </namespace>
+ </namespaces>
+
+ <!-- Enable post-link SWF optimization. -->
+ <optimize>true</optimize>
+
+ <!-- Keep the following AS3 metadata in the bytecodes. -->
+ <!-- Warning: For the data binding feature in the Flex framework to work properly, -->
+ <!-- the following metadata must be kept: -->
+ <!-- 1. Bindable -->
+ <!-- 2. Managed -->
+ <!-- 3. ChangeEvent -->
+ <!-- 4. NonCommittingChangeEvent -->
+ <!-- 5. Transient -->
+ <!--
+ <keep-as3-metadata>
+ <name>Bindable</name>
+ <name>Managed</name>
+ <name>ChangeEvent</name>
+ <name>NonCommittingChangeEvent</name>
+ <name>Transient</name>
+ </keep-as3-metadata>
+ -->
+
+ <!-- Turn on reporting of data binding warnings. For example: Warning: Data binding -->
+ <!-- will not be able to detect assignments to "foo". -->
+ <show-binding-warnings>true</show-binding-warnings>
+
+ <!-- toggle whether warnings generated from unused type selectors are displayed -->
+ <show-unused-type-selector-warnings>true</show-unused-type-selector-warnings>
+
+ <!-- Run the AS3 compiler in strict error checking mode. -->
+ <strict>true</strict>
+
+ <!-- Use the ActionScript 3 class based object model for greater performance and better error reporting. -->
+ <!-- In the class based object model most built-in functions are implemented as fixed methods of classes -->
+ <!-- (-strict is recommended, but not required, for earlier errors) -->
+ <as3>true</as3>
+
+ <!-- Use the ECMAScript edition 3 prototype based object model to allow dynamic overriding of prototype -->
+ <!-- properties. In the prototype based object model built-in functions are implemented as dynamic -->
+ <!-- properties of prototype objects (-strict is allowed, but may result in compiler errors for -->
+ <!-- references to dynamic properties) -->
+ <es>false</es>
+
+ <!-- List of CSS or SWC files to apply as a theme. -->
+ <!-- not set -->
+ <!--
+ <theme>
+ <filename>string</filename>
+ <filename>string</filename>
+ </theme>
+ -->
+
+ <!-- Turns on the display of stack traces for uncaught runtime errors. -->
+ <verbose-stacktraces>false</verbose-stacktraces>
+
+ <!-- Defines the AS3 file encoding. -->
+ <!-- not set -->
+ <!--
+ <actionscript-file-encoding></actionscript-file-encoding>
+ -->
+
+ <fonts>
+
+ <!-- Enables advanced anti-aliasing for embedded fonts, which provides greater clarity for small -->
+ <!-- fonts. This setting can be overriden in CSS for specific fonts. -->
+ <!-- NOTE: flash-type has been deprecated. Please use advanced-anti-aliasing <flash-type>true</flash-type> -->
+ <advanced-anti-aliasing>true</advanced-anti-aliasing>
+
+ <!-- The number of embedded font faces that are cached. -->
+ <max-cached-fonts>20</max-cached-fonts>
+
+ <!-- The number of character glyph outlines to cache for each font face. -->
+ <max-glyphs-per-face>1000</max-glyphs-per-face>
+
+ <!-- Defines ranges that can be used across multiple font-face declarations. -->
+ <!-- See flash-unicode-table.xml for more examples. -->
+ <!-- not set -->
+ <!--
+ <languages>
+ <language-range>
+ <lang>englishRange</lang>
+ <range>U+0020-U+007E</range>
+ </language-range>
+ </languages>
+ -->
+
+ <!-- Compiler font manager classes, in policy resolution order-->
+ <managers>
+ <manager-class>flash.fonts.JREFontManager</manager-class>
+ <manager-class>flash.fonts.AFEFontManager</manager-class>
+ <manager-class>flash.fonts.BatikFontManager</manager-class>
+ <manager-class>flash.fonts.CFFFontManager</manager-class>
+ </managers>
+
+ <!-- File containing cached system font licensing information produced via
+ java -cp mxmlc.jar flex2.tools.FontSnapshot (fontpath)
+ Will default to winFonts.ser on Windows XP and
+ macFonts.ser on Mac OS X, so is commented out by default.
+
+ <local-fonts-snapshot>localFonts.ser</local-fonts-snapshot>
+ -->
+
+ </fonts>
+
+ <!-- Array.toString() format has changed. -->
+ <warn-array-tostring-changes>false</warn-array-tostring-changes>
+
+ <!-- Assignment within conditional. -->
+ <warn-assignment-within-conditional>true</warn-assignment-within-conditional>
+
+ <!-- Possibly invalid Array cast operation. -->
+ <warn-bad-array-cast>true</warn-bad-array-cast>
+
+ <!-- Non-Boolean value used where a Boolean value was expected. -->
+ <warn-bad-bool-assignment>true</warn-bad-bool-assignment>
+
+ <!-- Invalid Date cast operation. -->
+ <warn-bad-date-cast>true</warn-bad-date-cast>
+
+ <!-- Unknown method. -->
+ <warn-bad-es3-type-method>true</warn-bad-es3-type-method>
+
+ <!-- Unknown property. -->
+ <warn-bad-es3-type-prop>true</warn-bad-es3-type-prop>
+
+ <!-- Illogical comparison with NaN. Any comparison operation involving NaN will evaluate to false because NaN != NaN. -->
+ <warn-bad-nan-comparison>true</warn-bad-nan-comparison>
+
+ <!-- Impossible assignment to null. -->
+ <warn-bad-null-assignment>true</warn-bad-null-assignment>
+
+ <!-- Illogical comparison with null. -->
+ <warn-bad-null-comparison>true</warn-bad-null-comparison>
+
+ <!-- Illogical comparison with undefined. Only untyped variables (or variables of type *) can be undefined. -->
+ <warn-bad-undefined-comparison>true</warn-bad-undefined-comparison>
+
+ <!-- Boolean() with no arguments returns false in ActionScript 3.0. Boolean() returned undefined in ActionScript 2.0. -->
+ <warn-boolean-constructor-with-no-args>false</warn-boolean-constructor-with-no-args>
+
+ <!-- __resolve is no longer supported. -->
+ <warn-changes-in-resolve>false</warn-changes-in-resolve>
+
+ <!-- Class is sealed. It cannot have members added to it dynamically. -->
+ <warn-class-is-sealed>true</warn-class-is-sealed>
+
+ <!-- Constant not initialized. -->
+ <warn-const-not-initialized>true</warn-const-not-initialized>
+
+ <!-- Function used in new expression returns a value. Result will be what the -->
+ <!-- function returns, rather than a new instance of that function. -->
+ <warn-constructor-returns-value>false</warn-constructor-returns-value>
+
+ <!-- EventHandler was not added as a listener. -->
+ <warn-deprecated-event-handler-error>false</warn-deprecated-event-handler-error>
+
+ <!-- Unsupported ActionScript 2.0 function. -->
+ <warn-deprecated-function-error>true</warn-deprecated-function-error>
+
+ <!-- Unsupported ActionScript 2.0 property. -->
+ <warn-deprecated-property-error>true</warn-deprecated-property-error>
+
+ <!-- More than one argument by the same name. -->
+ <warn-duplicate-argument-names>true</warn-duplicate-argument-names>
+
+ <!-- Duplicate variable definition -->
+ <warn-duplicate-variable-def>true</warn-duplicate-variable-def>
+
+ <!-- ActionScript 3.0 iterates over an object's properties within a "for x in target" statement in random order. -->
+ <warn-for-var-in-changes>false</warn-for-var-in-changes>
+
+ <!-- Importing a package by the same name as the current class will hide that class identifier in this scope. -->
+ <warn-import-hides-class>true</warn-import-hides-class>
+
+ <!-- Use of the instanceof operator. -->
+ <warn-instance-of-changes>true</warn-instance-of-changes>
+
+ <!-- Internal error in compiler. -->
+ <warn-internal-error>true</warn-internal-error>
+
+ <!-- _level is no longer supported. For more information, see the flash.display package. -->
+ <warn-level-not-supported>true</warn-level-not-supported>
+
+ <!-- Missing namespace declaration (e.g. variable is not defined to be public, private, etc.). -->
+ <warn-missing-namespace-decl>true</warn-missing-namespace-decl>
+
+ <!-- Negative value will become a large positive value when assigned to a uint data type. -->
+ <warn-negative-uint-literal>true</warn-negative-uint-literal>
+
+ <!-- Missing constructor. -->
+ <warn-no-constructor>false</warn-no-constructor>
+
+ <!-- The super() statement was not called within the constructor. -->
+ <warn-no-explicit-super-call-in-constructor>false</warn-no-explicit-super-call-in-constructor>
+
+ <!-- Missing type declaration. -->
+ <warn-no-type-decl>true</warn-no-type-decl>
+
+ <!-- In ActionScript 3.0, white space is ignored and '' returns 0. Number() returns -->
+ <!-- NaN in ActionScript 2.0 when the parameter is '' or contains white space. -->
+ <warn-number-from-string-changes>false</warn-number-from-string-changes>
+
+ <!-- Change in scoping for the this keyword. Class methods extracted from an -->
+ <!-- instance of a class will always resolve this back to that instance. In -->
+ <!-- ActionScript 2.0 this is looked up dynamically based on where the method -->
+ <!-- is invoked from. -->
+ <warn-scoping-change-in-this>false</warn-scoping-change-in-this>
+
+ <!-- Inefficient use of += on a TextField.-->
+ <warn-slow-text-field-addition>true</warn-slow-text-field-addition>
+
+ <!-- Possible missing parentheses. -->
+ <warn-unlikely-function-value>true</warn-unlikely-function-value>
+
+ <!-- Possible usage of the ActionScript 2.0 XML class. -->
+ <warn-xml-class-has-changed>false</warn-xml-class-has-changed>
+
+ </compiler>
+
+ <!-- compute-digest: writes a digest to the catalog.xml of a library. Use this when the library will be used as a
+ cross-domain rsl.-->
+ <!-- compute-digest usage:
+ <compute-digest>boolean</compute-digest>
+ -->
+
+ <!-- remove-unused-rsls: remove RSLs that are not being used by the application-->
+ <remove-unused-rsls>true</remove-unused-rsls>
+
+
+ <!-- static-link-runtime-shared-libraries: statically link the libraries specified by the -runtime-shared-libraries-path option.-->
+ <static-link-runtime-shared-libraries>true</static-link-runtime-shared-libraries>
+
+ <!-- target-player: specifies the version of the player the application is targeting.
+ Features requiring a later version will not be compiled into the application.
+ The minimum value supported is "9.0.0".-->
+ <!-- target-player usage:
+ <target-player>version</target-player>
+ -->
+
+ <!-- Enables SWFs to access the network. -->
+ <use-network>true</use-network>
+
+ <!-- Metadata added to SWFs via the SWF Metadata tag. -->
+ <metadata>
+ <title>Apache FlexJS Application</title>
+ <description>http://flex.apache.org/</description>
+ <publisher>Apache Software Foundation</publisher>
+ <creator>Apache Software Foundation</creator>
+ <language>en_US</language>
+ </metadata>
+
+</flex-config>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/01518308/frameworks/as/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/as/build.xml b/frameworks/as/build.xml
index 565d243..cfdc8b5 100644
--- a/frameworks/as/build.xml
+++ b/frameworks/as/build.xml
@@ -98,7 +98,6 @@
</target>
<target name="clean" description="Cleans all SWCs and their resource bundles">
- <delete file="${basedir}/flex-config.xml"/>
<!-- Delete output from SWC projects -->
<ant dir="${basedir}/projects/FlexJSUI" target="clean"/>
<ant dir="${basedir}/projects/MXMLCClasses" target="clean"/>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/01518308/frameworks/as/flex-config-template.xml
----------------------------------------------------------------------
diff --git a/frameworks/as/flex-config-template.xml b/frameworks/as/flex-config-template.xml
index 2d37ae1..e3db9a4 100644
--- a/frameworks/as/flex-config-template.xml
+++ b/frameworks/as/flex-config-template.xml
@@ -79,6 +79,7 @@
<!-- List of SWC files or directories that contain SWC files. -->
<library-path>
<path-element>libs</path-element>
+ <path-element>libs/as</path-element>
<path-element>locale/en_US</path-element>
<path-element>libs/player/{targetPlayerMajorVersion}.{targetPlayerMinorVersion}</path-element>
</library-path>
[6/8] git commit: [flex-asjs] [refs/heads/develop] - setup scripts
for first attempt at release targets
Posted by ah...@apache.org.
setup scripts for first attempt at release targets
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/b8421ae5
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/b8421ae5
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/b8421ae5
Branch: refs/heads/develop
Commit: b8421ae5380658fa621fa2bfbf76715373321716
Parents: f9c7524
Author: Alex Harui <ah...@apache.org>
Authored: Tue Nov 19 07:59:08 2013 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Tue Nov 19 07:59:08 2013 -0800
----------------------------------------------------------------------
RELEASE_NOTES | 20 +
build.xml | 100 +++--
env-template.properties | 110 +++++
frameworks/as/build.xml | 49 +++
frameworks/as/flex-config-template.xml | 354 +++++++++++++++
.../as/projects/FlexJSUI/build.properties | 60 ---
frameworks/as/projects/FlexJSUI/flex-config.xml | 434 -------------------
.../projects/FlexJSUI/flex-sdk-description.xml | 25 --
8 files changed, 601 insertions(+), 551 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/b8421ae5/RELEASE_NOTES
----------------------------------------------------------------------
diff --git a/RELEASE_NOTES b/RELEASE_NOTES
new file mode 100644
index 0000000..3e36608
--- /dev/null
+++ b/RELEASE_NOTES
@@ -0,0 +1,20 @@
+Apache FlexJS 0.0.1
+=================
+
+Apache FlexJS is a next-generation Flex SDK that provides the capability
+to cross-compile MXML and AS applications to HTML/JS/CSS so they can run
+in a browser without Flash.
+
+Known Issues
+_____________
+
+Adobe Flash Builder Integration
+
+Flash Builder will not generate a correct MXML when using an Apache FlexJS SDK.
+
+Please report new issues to our bugbase at:
+
+ https://issues.apache.org/jira/browse/FLEX
+
+ The Apache Flex Project
+ <http://flex.apache.org/>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/b8421ae5/build.xml
----------------------------------------------------------------------
diff --git a/build.xml b/build.xml
index c0bad9c..25ef7dc 100644
--- a/build.xml
+++ b/build.xml
@@ -85,7 +85,7 @@
This does not build the docs. Use doc-packages or asdoc-packages.
-->
<target name="release"
- depends="check-compile-env,check-runtime-env,check-goog-env,source-release,binary-release,rat-check"
+ depends="check-compile-env,check-runtime-env,check-falcon-home,check-goog-env,source-release,binary-release,rat-check"
description="Creates source and binary kits for Apache FlexJS."/>
<target name="source-release"
@@ -130,7 +130,7 @@
<target name="prebuild" depends="check-compile-env,thirdparty-downloads,create-description"
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"
+ <target name="check-compile-env" depends="check-playerglobal-home,check-air-home,check-flex-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>
@@ -202,31 +202,22 @@
</target>
<target name="check-falcon-home" unless="FALCON_HOME"
- description="Check TLF_HOME is a directory.">
+ description="Check FALCON_HOME is a directory.">
<echo message="FALCON_HOME is ${env.FALCON_HOME}"/>
- <available file="${env.FALCON_HOME}"
+ <available file="${env.FALCON_HOME}/compiler.jx"
type="dir"
property="FALCON_HOME"
value="${env.FALCON_HOME}"/>
+
+ <available file="${env.FALCON_HOME}/lib/falcon-mxmlc.jar"
+ type="dir"
+ property="FALCON_HOME"
+ value="${env.FALCON_HOME}/../../../..../"/>
- <fail message="FALCON_HOME must be set correctly for a release build"
+ <fail message="FALCON_HOME must be set to a flex-falcon repo for a release build or compiler/generated/dist/sdk folder in flex-falcon repo"
unless="FALCON_HOME"/>
-
- </target>
-
- <target name="check-goog-env" unless="GOOG_HOME.set"
- description="Check GOOG_HOME is a directory.">
-
- <echo message="GOOG_HOME is ${env.GOOG_HOME}"/>
-
- <available file="${env.GOOG_HOME}"
- type="file"
- property="GOOG_HOME.set"/>
-
- <fail message="GOOG_HOME must be set correctly for a release build"
- unless="GOOG_HOME.set"/>
</target>
<target name="create-description" description="Generate flex-sdk-description.xml">
@@ -432,12 +423,13 @@
<include name="build.properties"/>
<include name="env-template.properties"/>
<include name="flex-sdk-description.xml"/>
- <include name="CHANGES"/>
- <include name="LICENSE"/>
- <include name="NOTICE"/>
<include name="README"/>
<include name="RELEASE_NOTES"/>
</fileset>
+ <fileset dir="${FLEX_HOME}">
+ <include name="LICENSE"/>
+ <include name="NOTICE"/>
+ </fileset>
</copy>
<!-- frameworks/as -->
@@ -446,14 +438,15 @@
<!-- frameworks/as -->
<antcall target="stage-framework-js"/>
- <!-- asdoc -->
+ <!-- asdoc
<copy todir="${basedir}/temp/asdoc" includeEmptyDirs="false">
<fileset dir="${basedir}/asdoc">
<exclude name="test/**" />
</fileset>
- </copy>
+ </copy>
+ -->
- <!-- ide -->
+ <!-- ide
<copy todir="${basedir}/temp/ide">
<fileset dir="${basedir}/ide" >
<include name="flashbuilder/**"/>
@@ -461,7 +454,8 @@
<include name="*.bat"/>
</fileset>
</copy>
-
+ -->
+
<!-- samples -->
<copy todir="${basedir}/temp/examples">
<fileset dir="${basedir}/examples" >
@@ -470,7 +464,7 @@
</fileset>
</copy>
- <!-- templates -->
+ <!-- templates
<copy todir="${basedir}/temp/templates">
<fileset dir="${basedir}/templates" >
<include name="swfobject/**"/>
@@ -478,6 +472,7 @@
<exclude name="**/swfobject.js"/>
</fileset>
</copy>
+ -->
<!--
Source files have Windows line endings. Most UNIX editors can handle
@@ -554,7 +549,28 @@
<target name="stage-falcon">
<copy todir="${basedir}/temp/bin" includeEmptyDirs="false">
- <fileset dir="${basedir}/bin">
+ <fileset dir="${FALCON_HOME}/compiler/generated/dist/sdk/bin">
+ <include name="*"/>
+ <exclude name="adl*"/>
+ <exclude name="adt*"/>
+ </fileset>
+ </copy>
+ <copy todir="${basedir}/temp/bin-legacy" includeEmptyDirs="false">
+ <fileset dir="${FALCON_HOME}/compiler/generated/dist/sdk/bin-legacy">
+ <include name="*"/>
+ <exclude name="adl*"/>
+ <exclude name="adt*"/>
+ </fileset>
+ </copy>
+ <copy todir="${basedir}/temp/ant/lib" includeEmptyDirs="false">
+ <fileset dir="${FALCON_HOME}/compiler/generated/dist/sdk/ant/lib">
+ <include name="*"/>
+ <exclude name="adl*"/>
+ <exclude name="adt*"/>
+ </fileset>
+ </copy>
+ <copy todir="${basedir}/temp/lib" includeEmptyDirs="false">
+ <fileset dir="${FALCON_HOME}/compiler/generated/dist/sdk//lib">
<include name="*"/>
<exclude name="adl*"/>
<exclude name="adt*"/>
@@ -569,12 +585,21 @@
<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>
</target>
<target name="stage-falconjx">
<!-- modules -->
- <copy todir="${basedir}/temp/modules" includeEmptyDirs="false">
- <fileset dir="${basedir}/modules">
+ <copy todir="${basedir}/temp/js/bin" includeEmptyDirs="false">
+ <fileset dir="${FALCON_HOME}/compiler.jx/bin">
<include name="**"/>
<exclude name="thirdparty/**"/>
<exclude name=".metadata/**"/>
@@ -592,11 +617,12 @@
<exclude name="**/.classpath"/>
<exclude name="**/.project"/>
</fileset>
+
</copy>
<!-- modules/thirdparty -->
- <copy todir="${basedir}/temp/modules/thirdparty" includeEmptyDirs="true">
- <fileset dir="${basedir}/modules/thirdparty">
+ <copy todir="${basedir}/temp/js/lib" includeEmptyDirs="true">
+ <fileset dir="${FALCON_HOME}/compiler.jx/lib">
<include name="**"/>
<exclude name="**/classes/**"/>
<exclude name="**/.classpath"/>
@@ -604,6 +630,16 @@
<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>
+
</target>
<target name="binary-package"
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/b8421ae5/env-template.properties
----------------------------------------------------------------------
diff --git a/env-template.properties b/env-template.properties
new file mode 100644
index 0000000..d1465ca
--- /dev/null
+++ b/env-template.properties
@@ -0,0 +1,110 @@
+################################################################################
+##
+## 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.
+##
+################################################################################
+
+# If you chose to use this file rename it to env.properties and uncomment the
+# properties you wish to set.
+
+# For each of
+#
+# AIR_HOME
+# FLASHPLAYER_DEBUGGER
+# PLAYERGLOBAL_HOME
+# PIXELBENDER_HOME
+# ADOBE_EXTENSION_MANAGER
+#
+# you need to set an environment variable with that name or set the property here
+# prefixed with "env.". If a property is set in this file, and the corresponding
+# environment variable is also set, the property set here takes precedence over the
+# corresponding environment variable.
+#
+# Use absolute file paths.
+#
+# This is a Java property file. On Windows if you use the '\' file
+# separator you must use "\\", but not escape spaces, for example,
+#
+# env.FLASHPLAYER_DEBUGGER=z:\\tools\\player\\flashplayer_11_sa_debug_32bit.exe
+# or
+# env.PIXELBENDER_HOME=C:\\Program Files (x86)\\Adobe\\Adobe Utilities - CS5\\Pixel Bender Toolkit 2
+#
+# See the README file for more information about the different variables.
+
+#
+# Set this to the directory that contains the unzipped Adobe AIR SDK for your
+# platform.
+#
+#env.AIR_HOME=
+
+#
+# Set this to absolute path that contains the Adobe Flash Player content debugger
+# for your platform.
+#
+#env.FLASHPLAYER_DEBUGGER=
+
+#
+# PLAYERGLOBAL_HOME is a directory which contains one or more subdirectories.
+# The name of each subdirectory corresponds to a supported target player version and
+# in each of the subdirectories is the playerglobal.swc that corresponds to that target
+# player. The default
+#
+# For this sample directory structure, set PLAYERGLOBAL_HOME to the full path of the
+# player directory.
+#
+# - player (dir)
+# - 11.1 (dir)
+# playerglobal.swc (file)
+#
+#env.PLAYERGLOBAL_HOME=
+
+#
+# Set this to the directory that contains the Adobe Pixel Bender Toolkit
+# for your platform.
+#
+# On Windows (32-bit), if installed to the default location, the setting would be
+# env.PIXELBENDER_HOME=C:\\Program Files\\Adobe\\Adobe Utilities - CS5\\Pixel Bender Toolkit 2
+#
+# or on a 64-bit version of Windows
+# env.PIXELBENDER_HOME=C:\\Program Files (x86)\\Adobe\\Adobe Utilities - CS5\\Pixel Bender Toolkit 2
+#
+# Note: the folder "Program Files" (or "Program Files (x86)") might have a different name
+# depending on the language of your Windows installation.
+#
+# On Mac, if installed to the default location, the setting would be
+# env.PIXELBENDER_HOME=/Applications/Utilities/Adobe Utilities-CS5.localized/Pixel Bender Toolkit 2/
+#
+#env.PIXELBENDER_HOME=
+
+#
+# Set this to the file that contains the Adobe Extension Manager CS5
+# for your platform. This is optional and is only required for those
+# who need flash integration in order to build the MXP for the flash integration kit.
+#
+# On Windows (32-bit), if installed to the default location, the setting would be
+# env.ADOBE_EXTENSION_MANAGER=C:\\Program Files\\Adobe\\Adobe Extension Manager CS5\\Adobe Extension Manager CS5.exe
+#
+# or on a 64-bit version of Windows
+# env.ADOBE_EXTENSION_MANAGER=C:\\Program Files (x86)\\Adobe\\Adobe Extension Manager CS5\\Adobe Extension Manager CS5.exe
+#
+# Note: the folder "Program Files" (or "Program Files (x86)") might have a different name
+# depending on the language of your Windows installation.
+#
+# On Mac, if installed to the default location, the setting would be
+# env.ADOBE_EXTENSION_MANAGER=/Applications/Adobe Extension Manager CS5/Adobe Extension Manager CS5.app/Contents/MacOS/Adobe Extension Manager CS5
+#
+#env.ADOBE_EXTENSION_MANAGER=
+
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/b8421ae5/frameworks/as/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/as/build.xml b/frameworks/as/build.xml
index 0bcc1ac..565d243 100644
--- a/frameworks/as/build.xml
+++ b/frameworks/as/build.xml
@@ -129,4 +129,53 @@
<ant dir="${basedir}/projects/MXMLCClasses"/>
</target>
+ <target name="flex-config" depends="playerglobal-setswfversion" description="Copy the flex config template to flex-config.xml and inject version numbers">
+ <copy file="${basedir}/flex-config-template.xml" tofile="${basedir}/flex-config.xml" overwrite="true">
+ <filterset>
+ <filter token="playerversion" value="${playerglobal.version}"/>
+ <filter token="swfversion" value="${playerglobal.swfversion}"/>
+ <filter token="locale" value="${locale}"/>
+ </filterset>
+ </copy>
+ </target>
+
+ <target name="playerglobal-setswfversion" description="Set the swfversion to insert into the flex config file">
+ <condition property="playerglobal.swfversion" value="11">
+ <equals arg1="${playerglobal.version}" arg2="10.2" />
+ </condition>
+ <condition property="playerglobal.swfversion" value="12">
+ <equals arg1="${playerglobal.version}" arg2="10.3" />
+ </condition>
+ <condition property="playerglobal.swfversion" value="13">
+ <equals arg1="${playerglobal.version}" arg2="11.0" />
+ </condition>
+ <condition property="playerglobal.swfversion" value="14">
+ <equals arg1="${playerglobal.version}" arg2="11.1" />
+ </condition>
+ <condition property="playerglobal.swfversion" value="15">
+ <equals arg1="${playerglobal.version}" arg2="11.2" />
+ </condition>
+ <condition property="playerglobal.swfversion" value="16">
+ <equals arg1="${playerglobal.version}" arg2="11.3" />
+ </condition>
+ <condition property="playerglobal.swfversion" value="17">
+ <equals arg1="${playerglobal.version}" arg2="11.4" />
+ </condition>
+ <condition property="playerglobal.swfversion" value="18">
+ <equals arg1="${playerglobal.version}" arg2="11.5" />
+ </condition>
+ <condition property="playerglobal.swfversion" value="19">
+ <equals arg1="${playerglobal.version}" arg2="11.6" />
+ </condition>
+ <condition property="playerglobal.swfversion" value="20">
+ <equals arg1="${playerglobal.version}" arg2="11.7" />
+ </condition>
+ <condition property="playerglobal.swfversion" value="21">
+ <equals arg1="${playerglobal.version}" arg2="11.8" />
+ </condition>
+ <condition property="playerglobal.swfversion" value="22">
+ <equals arg1="${playerglobal.version}" arg2="11.9" />
+ </condition>
+ </target>
+
</project>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/b8421ae5/frameworks/as/flex-config-template.xml
----------------------------------------------------------------------
diff --git a/frameworks/as/flex-config-template.xml b/frameworks/as/flex-config-template.xml
new file mode 100644
index 0000000..2d37ae1
--- /dev/null
+++ b/frameworks/as/flex-config-template.xml
@@ -0,0 +1,354 @@
+<?xml version="1.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-config>
+ <!-- Specifies the minimum player version that will run the compiled SWF. -->
+ <target-player>@playerversion@</target-player>
+
+ <!-- Specifies the version of the compiled SWF -->
+ <swf-version>@swfversion@</swf-version>
+
+ <compiler>
+
+ <!-- Turn on generation of accessible SWFs. -->
+ <accessible>true</accessible>
+
+ <!-- Specifies the locales for internationalization. -->
+ <locale>
+ <locale-element>@locale@</locale-element>
+ </locale>
+
+ <!-- List of path elements that form the roots of ActionScript class hierarchies. -->
+ <!-- not set -->
+ <!--
+ <source-path>
+ <path-element>string</path-element>
+ </source-path>
+ -->
+
+ <!-- Allow the source-path to have path-elements which contain other path-elements -->
+ <allow-source-path-overlap>false</allow-source-path-overlap>
+
+ <!-- Run the AS3 compiler in a mode that detects legal but potentially incorrect -->
+ <!-- code. -->
+ <show-actionscript-warnings>true</show-actionscript-warnings>
+
+ <!-- Turn on generation of debuggable SWFs. False by default for mxmlc, -->
+ <!-- but true by default for compc. -->
+ <!--
+ <debug>true</debug>
+ -->
+
+ <!-- List of SWC files or directories to compile against but to omit from -->
+ <!-- linking. -->
+ <external-library-path>
+ <path-element>libs/player/{targetPlayerMajorVersion}.{targetPlayerMinorVersion}/playerglobal.swc</path-element>
+ </external-library-path>
+
+ <!-- Turn on writing of generated/*.as files to disk. These files are generated by -->
+ <!-- the compiler during mxml translation and are helpful with understanding and -->
+ <!-- debugging Flex applications. -->
+ <keep-generated-actionscript>false</keep-generated-actionscript>
+
+ <!-- not set -->
+ <!--
+ <include-libraries>
+ <library>string</library>
+ </include-libraries>
+ -->
+
+ <!-- List of SWC files or directories that contain SWC files. -->
+ <library-path>
+ <path-element>libs</path-element>
+ <path-element>locale/en_US</path-element>
+ <path-element>libs/player/{targetPlayerMajorVersion}.{targetPlayerMinorVersion}</path-element>
+ </library-path>
+
+ <namespaces>
+ <!-- Specify a URI to associate with a manifest of components for use as MXML -->
+ <!-- elements. -->
+ <namespace>
+ <uri>library://ns.apache.org/flexjs/basic</uri>
+
+ <manifest>basic-manifest.xml</manifest>
+
+ </namespace>
+ <namespace>
+ <uri>library://ns.apache.org/flexjs/html5</uri>
+
+ <manifest>html5-manifest.xml</manifest>
+
+ </namespace>
+ </namespaces>
+
+ <!-- Enable post-link SWF optimization. -->
+ <optimize>true</optimize>
+
+ <!-- Enable trace statement omission. -->
+ <omit-trace-statements>true</omit-trace-statements>
+
+ <!-- Keep the following AS3 metadata in the bytecodes. -->
+ <!-- Warning: For the data binding feature in the Flex framework to work properly, -->
+ <!-- the following metadata must be kept: -->
+ <!-- 1. Bindable -->
+ <!-- 2. Managed -->
+ <!-- 3. ChangeEvent -->
+ <!-- 4. NonCommittingChangeEvent -->
+ <!-- 5. Transient -->
+ <!--
+ <keep-as3-metadata>
+ <name>Bindable</name>
+ <name>Managed</name>
+ <name>ChangeEvent</name>
+ <name>NonCommittingChangeEvent</name>
+ <name>Transient</name>
+ </keep-as3-metadata>
+ -->
+
+ <!-- Turn on reporting of data binding warnings. For example: Warning: Data binding -->
+ <!-- will not be able to detect assignments to "foo". -->
+ <show-binding-warnings>true</show-binding-warnings>
+
+ <!-- toggle whether warnings generated from unused type selectors are displayed -->
+ <show-unused-type-selector-warnings>true</show-unused-type-selector-warnings>
+
+ <!-- Run the AS3 compiler in strict error checking mode. -->
+ <strict>true</strict>
+
+ <!-- Use the ActionScript 3 class based object model for greater performance and better error reporting. -->
+ <!-- In the class based object model most built-in functions are implemented as fixed methods of classes -->
+ <!-- (-strict is recommended, but not required, for earlier errors) -->
+ <as3>true</as3>
+
+ <!-- Use the ECMAScript edition 3 prototype based object model to allow dynamic overriding of prototype -->
+ <!-- properties. In the prototype based object model built-in functions are implemented as dynamic -->
+ <!-- properties of prototype objects (-strict is allowed, but may result in compiler errors for -->
+ <!-- references to dynamic properties) -->
+ <es>false</es>
+
+ <!-- List of CSS or SWC files to apply as a theme. -->
+ <theme>
+ </theme>
+
+ <!-- Turns on the display of stack traces for uncaught runtime errors. -->
+ <verbose-stacktraces>false</verbose-stacktraces>
+
+ <!-- Defines the AS3 file encoding. -->
+ <!-- not set -->
+ <!--
+ <actionscript-file-encoding></actionscript-file-encoding>
+ -->
+
+ <fonts>
+
+ <!-- Enables advanced anti-aliasing for embedded fonts, which provides greater clarity for small -->
+ <!-- fonts. This setting can be overriden in CSS for specific fonts. -->
+ <!-- NOTE: flash-type has been deprecated. Please use advanced-anti-aliasing <flash-type>true</flash-type> -->
+ <advanced-anti-aliasing>true</advanced-anti-aliasing>
+
+ <!-- The number of embedded font faces that are cached. -->
+ <max-cached-fonts>20</max-cached-fonts>
+
+ <!-- The number of character glyph outlines to cache for each font face. -->
+ <max-glyphs-per-face>1000</max-glyphs-per-face>
+
+ <!-- Defines ranges that can be used across multiple font-face declarations. -->
+ <!-- See flash-unicode-table.xml for more examples. -->
+ <!-- not set -->
+ <!--
+ <languages>
+ <language-range>
+ <lang>englishRange</lang>
+ <range>U+0020-007E</range>
+ </language-range>
+ </languages>
+ -->
+
+ <!-- Compiler font manager classes, in policy resolution order -->
+ <!-- NOTE: For Apache Flex -->
+ <!-- AFEFontManager and CFFFontManager both use proprietary technology. -->
+ <!-- You must install the optional font jars if you wish to use embedded fonts -->
+ <!-- directly or you can use fontswf to precompile the font as a swf. -->
+ <managers>
+ <manager-class>flash.fonts.JREFontManager</manager-class>
+ <manager-class>flash.fonts.BatikFontManager</manager-class>
+ <manager-class>flash.fonts.AFEFontManager</manager-class>
+ <manager-class>flash.fonts.CFFFontManager</manager-class>
+ </managers>
+
+ <!-- File containing cached system font licensing information produced via
+ java -cp mxmlc.jar flex2.tools.FontSnapshot (fontpath)
+ Will default to winFonts.ser on Windows XP and
+ macFonts.ser on Mac OS X, so is commented out by default.
+
+ <local-fonts-snapshot>localFonts.ser</local-fonts-snapshot>
+ -->
+
+ </fonts>
+
+ <!-- Array.toString() format has changed. -->
+ <warn-array-tostring-changes>false</warn-array-tostring-changes>
+
+ <!-- Assignment within conditional. -->
+ <warn-assignment-within-conditional>true</warn-assignment-within-conditional>
+
+ <!-- Possibly invalid Array cast operation. -->
+ <warn-bad-array-cast>true</warn-bad-array-cast>
+
+ <!-- Non-Boolean value used where a Boolean value was expected. -->
+ <warn-bad-bool-assignment>true</warn-bad-bool-assignment>
+
+ <!-- Invalid Date cast operation. -->
+ <warn-bad-date-cast>true</warn-bad-date-cast>
+
+ <!-- Unknown method. -->
+ <warn-bad-es3-type-method>true</warn-bad-es3-type-method>
+
+ <!-- Unknown property. -->
+ <warn-bad-es3-type-prop>true</warn-bad-es3-type-prop>
+
+ <!-- Illogical comparison with NaN. Any comparison operation involving NaN will evaluate to false because NaN != NaN. -->
+ <warn-bad-nan-comparison>true</warn-bad-nan-comparison>
+
+ <!-- Impossible assignment to null. -->
+ <warn-bad-null-assignment>true</warn-bad-null-assignment>
+
+ <!-- Illogical comparison with null. -->
+ <warn-bad-null-comparison>true</warn-bad-null-comparison>
+
+ <!-- Illogical comparison with undefined. Only untyped variables (or variables of type *) can be undefined. -->
+ <warn-bad-undefined-comparison>true</warn-bad-undefined-comparison>
+
+ <!-- Boolean() with no arguments returns false in ActionScript 3.0. Boolean() returned undefined in ActionScript 2.0. -->
+ <warn-boolean-constructor-with-no-args>false</warn-boolean-constructor-with-no-args>
+
+ <!-- __resolve is no longer supported. -->
+ <warn-changes-in-resolve>false</warn-changes-in-resolve>
+
+ <!-- Class is sealed. It cannot have members added to it dynamically. -->
+ <warn-class-is-sealed>true</warn-class-is-sealed>
+
+ <!-- Constant not initialized. -->
+ <warn-const-not-initialized>true</warn-const-not-initialized>
+
+ <!-- Function used in new expression returns a value. Result will be what the -->
+ <!-- function returns, rather than a new instance of that function. -->
+ <warn-constructor-returns-value>false</warn-constructor-returns-value>
+
+ <!-- EventHandler was not added as a listener. -->
+ <warn-deprecated-event-handler-error>false</warn-deprecated-event-handler-error>
+
+ <!-- Unsupported ActionScript 2.0 function. -->
+ <warn-deprecated-function-error>true</warn-deprecated-function-error>
+
+ <!-- Unsupported ActionScript 2.0 property. -->
+ <warn-deprecated-property-error>true</warn-deprecated-property-error>
+
+ <!-- More than one argument by the same name. -->
+ <warn-duplicate-argument-names>true</warn-duplicate-argument-names>
+
+ <!-- Duplicate variable definition -->
+ <warn-duplicate-variable-def>true</warn-duplicate-variable-def>
+
+ <!-- ActionScript 3.0 iterates over an object's properties within a "for x in target" statement in random order. -->
+ <warn-for-var-in-changes>false</warn-for-var-in-changes>
+
+ <!-- Importing a package by the same name as the current class will hide that class identifier in this scope. -->
+ <warn-import-hides-class>true</warn-import-hides-class>
+
+ <!-- Use of the instanceof operator. -->
+ <warn-instance-of-changes>true</warn-instance-of-changes>
+
+ <!-- Internal error in compiler. -->
+ <warn-internal-error>true</warn-internal-error>
+
+ <!-- _level is no longer supported. For more information, see the flash.display package. -->
+ <warn-level-not-supported>true</warn-level-not-supported>
+
+ <!-- Missing namespace declaration (e.g. variable is not defined to be public, private, etc.). -->
+ <warn-missing-namespace-decl>true</warn-missing-namespace-decl>
+
+ <!-- Negative value will become a large positive value when assigned to a uint data type. -->
+ <warn-negative-uint-literal>true</warn-negative-uint-literal>
+
+ <!-- Missing constructor. -->
+ <warn-no-constructor>false</warn-no-constructor>
+
+ <!-- The super() statement was not called within the constructor. -->
+ <warn-no-explicit-super-call-in-constructor>false</warn-no-explicit-super-call-in-constructor>
+
+ <!-- Missing type declaration. -->
+ <warn-no-type-decl>true</warn-no-type-decl>
+
+ <!-- In ActionScript 3.0, white space is ignored and '' returns 0. Number() returns -->
+ <!-- NaN in ActionScript 2.0 when the parameter is '' or contains white space. -->
+ <warn-number-from-string-changes>false</warn-number-from-string-changes>
+
+ <!-- Change in scoping for the this keyword. Class methods extracted from an -->
+ <!-- instance of a class will always resolve this back to that instance. In -->
+ <!-- ActionScript 2.0 this is looked up dynamically based on where the method -->
+ <!-- is invoked from. -->
+ <warn-scoping-change-in-this>false</warn-scoping-change-in-this>
+
+ <!-- Inefficient use of += on a TextField.-->
+ <warn-slow-text-field-addition>true</warn-slow-text-field-addition>
+
+ <!-- Possible missing parentheses. -->
+ <warn-unlikely-function-value>true</warn-unlikely-function-value>
+
+ <!-- Possible usage of the ActionScript 2.0 XML class. -->
+ <warn-xml-class-has-changed>false</warn-xml-class-has-changed>
+
+ </compiler>
+
+ <!-- compute-digest: writes a digest to the catalog.xml of a library. Use this when the library will be used as a
+ cross-domain rsl.-->
+ <!-- compute-digest usage:
+ <compute-digest>boolean</compute-digest>
+ -->
+
+ <!-- remove-unused-rsls: remove RSLs that are not being used by the application-->
+ <remove-unused-rsls>true</remove-unused-rsls>
+
+ <!-- static-link-runtime-shared-libraries: statically link the libraries specified by the -runtime-shared-libraries-path option.-->
+ <static-link-runtime-shared-libraries>true</static-link-runtime-shared-libraries>
+
+ <!-- target-player: specifies the version of the player the application is targeting.
+ Features requiring a later version will not be compiled into the application.
+ The minimum value supported is "9.0.0".-->
+ <!-- target-player usage:
+ <target-player>version</target-player>
+ -->
+
+ <!-- Enables SWFs to access the network. -->
+ <use-network>true</use-network>
+
+ <!-- Metadata added to SWFs via the SWF Metadata tag. -->
+ <metadata>
+ <title>Apache FlexJS Application</title>
+ <description>http://flex.apache.org/</description>
+ <publisher>Apache Software Foundation</publisher>
+ <creator>unknown</creator>
+ <language>EN</language>
+ </metadata>
+
+</flex-config>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/b8421ae5/frameworks/as/projects/FlexJSUI/build.properties
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSUI/build.properties b/frameworks/as/projects/FlexJSUI/build.properties
deleted file mode 100644
index 06c0c33..0000000
--- a/frameworks/as/projects/FlexJSUI/build.properties
+++ /dev/null
@@ -1,60 +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 = Apache Flex ASJS 0.0.1
-release.version = 0.0.1
-
-# override on command line with -Dbuild.number=999 or in local.properties
-build.number = 0
-
-playerglobal.version = 11.1
-
-# locale = en_US
-
-qa.dir = ${basedir}/../qa
-asc = ${basedir}/bin/asc
-
-# TextLayoutFormat version. This is a sub-directory in frameworks/textLayout.
-tlf.version = 3.0.33
-
-# 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 ASJS
-manifest.Implementation-Version=${release.version}
-manifest.Implementation-Vendor=The Apache Software Foundation
-manifest.Implementation-Vendor-Id=org.apache
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/b8421ae5/frameworks/as/projects/FlexJSUI/flex-config.xml
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSUI/flex-config.xml b/frameworks/as/projects/FlexJSUI/flex-config.xml
deleted file mode 100644
index e91d830..0000000
--- a/frameworks/as/projects/FlexJSUI/flex-config.xml
+++ /dev/null
@@ -1,434 +0,0 @@
-<?xml version="1.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-config>
- <!-- Specifies the minimum player version that will run the compiled SWF. -->
- <target-player>11.1</target-player>
-
- <!-- Specifies the version of the compiled SWF -->
- <swf-version>14</swf-version>
-
- <compiler>
-
- <!-- Turn on generation of accessible SWFs. -->
- <accessible>true</accessible>
-
- <!-- Specifies the locales for internationalization. -->
- <locale>
- <locale-element>en_US</locale-element>
- </locale>
-
- <!-- List of path elements that form the roots of ActionScript class hierarchies. -->
- <!-- not set -->
- <!--
- <source-path>
- <path-element>string</path-element>
- </source-path>
- -->
-
- <!-- Allow the source-path to have path-elements which contain other path-elements -->
- <allow-source-path-overlap>false</allow-source-path-overlap>
-
- <!-- Run the AS3 compiler in a mode that detects legal but potentially incorrect -->
- <!-- code. -->
- <show-actionscript-warnings>true</show-actionscript-warnings>
-
- <!-- Turn on generation of debuggable SWFs. False by default for mxmlc, -->
- <!-- but true by default for compc. -->
- <!--
- <debug>true</debug>
- -->
-
- <!-- List of SWC files or directories to compile against but to omit from -->
- <!-- linking. -->
- <external-library-path>
- <path-element>libs/player/{targetPlayerMajorVersion}.{targetPlayerMinorVersion}/playerglobal.swc</path-element>
- </external-library-path>
-
- <!-- Turn on writing of generated/*.as files to disk. These files are generated by -->
- <!-- the compiler during mxml translation and are helpful with understanding and -->
- <!-- debugging Flex applications. -->
- <keep-generated-actionscript>false</keep-generated-actionscript>
-
- <!-- not set -->
- <!--
- <include-libraries>
- <library>string</library>
- </include-libraries>
- -->
-
- <!-- List of SWC files or directories that contain SWC files. -->
- <library-path>
- <path-element>libs</path-element>
- <path-element>locale/en_US</path-element>
- <path-element>libs/player/{targetPlayerMajorVersion}.{targetPlayerMinorVersion}</path-element>
- </library-path>
-
- <namespaces>
- <!-- Specify a URI to associate with a manifest of components for use as MXML -->
- <!-- elements. -->
- <namespace>
- <uri>library://ns.apache.org/flexjs/basic</uri>
-
- <manifest>basic-manifest.xml</manifest>
-
- </namespace>
- <namespace>
- <uri>library://ns.apache.org/flexjs/html5</uri>
-
- <manifest>html5-manifest.xml</manifest>
-
- </namespace>
- </namespaces>
-
- <!-- Enable post-link SWF optimization. -->
- <optimize>true</optimize>
-
- <!-- Enable trace statement omission. -->
- <omit-trace-statements>true</omit-trace-statements>
-
- <!-- Keep the following AS3 metadata in the bytecodes. -->
- <!-- Warning: For the data binding feature in the Flex framework to work properly, -->
- <!-- the following metadata must be kept: -->
- <!-- 1. Bindable -->
- <!-- 2. Managed -->
- <!-- 3. ChangeEvent -->
- <!-- 4. NonCommittingChangeEvent -->
- <!-- 5. Transient -->
- <!--
- <keep-as3-metadata>
- <name>Bindable</name>
- <name>Managed</name>
- <name>ChangeEvent</name>
- <name>NonCommittingChangeEvent</name>
- <name>Transient</name>
- </keep-as3-metadata>
- -->
-
- <!-- Turn on reporting of data binding warnings. For example: Warning: Data binding -->
- <!-- will not be able to detect assignments to "foo". -->
- <show-binding-warnings>true</show-binding-warnings>
-
- <!-- toggle whether warnings generated from unused type selectors are displayed -->
- <show-unused-type-selector-warnings>true</show-unused-type-selector-warnings>
-
- <!-- Run the AS3 compiler in strict error checking mode. -->
- <strict>true</strict>
-
- <!-- Use the ActionScript 3 class based object model for greater performance and better error reporting. -->
- <!-- In the class based object model most built-in functions are implemented as fixed methods of classes -->
- <!-- (-strict is recommended, but not required, for earlier errors) -->
- <as3>true</as3>
-
- <!-- Use the ECMAScript edition 3 prototype based object model to allow dynamic overriding of prototype -->
- <!-- properties. In the prototype based object model built-in functions are implemented as dynamic -->
- <!-- properties of prototype objects (-strict is allowed, but may result in compiler errors for -->
- <!-- references to dynamic properties) -->
- <es>false</es>
-
- <!-- List of CSS or SWC files to apply as a theme. -->
- <theme>
- </theme>
-
- <!-- Turns on the display of stack traces for uncaught runtime errors. -->
- <verbose-stacktraces>false</verbose-stacktraces>
-
- <!-- Defines the AS3 file encoding. -->
- <!-- not set -->
- <!--
- <actionscript-file-encoding></actionscript-file-encoding>
- -->
-
- <fonts>
-
- <!-- Enables advanced anti-aliasing for embedded fonts, which provides greater clarity for small -->
- <!-- fonts. This setting can be overriden in CSS for specific fonts. -->
- <!-- NOTE: flash-type has been deprecated. Please use advanced-anti-aliasing <flash-type>true</flash-type> -->
- <advanced-anti-aliasing>true</advanced-anti-aliasing>
-
- <!-- The number of embedded font faces that are cached. -->
- <max-cached-fonts>20</max-cached-fonts>
-
- <!-- The number of character glyph outlines to cache for each font face. -->
- <max-glyphs-per-face>1000</max-glyphs-per-face>
-
- <!-- Defines ranges that can be used across multiple font-face declarations. -->
- <!-- See flash-unicode-table.xml for more examples. -->
- <!-- not set -->
- <!--
- <languages>
- <language-range>
- <lang>englishRange</lang>
- <range>U+0020-007E</range>
- </language-range>
- </languages>
- -->
-
- <!-- Compiler font manager classes, in policy resolution order -->
- <!-- NOTE: For Apache Flex -->
- <!-- AFEFontManager and CFFFontManager both use proprietary technology. -->
- <!-- You must install the optional font jars if you wish to use embedded fonts -->
- <!-- directly or you can use fontswf to precompile the font as a swf. -->
- <managers>
- <manager-class>flash.fonts.JREFontManager</manager-class>
- <manager-class>flash.fonts.BatikFontManager</manager-class>
- <manager-class>flash.fonts.AFEFontManager</manager-class>
- <manager-class>flash.fonts.CFFFontManager</manager-class>
- </managers>
-
- <!-- File containing cached system font licensing information produced via
- java -cp mxmlc.jar flex2.tools.FontSnapshot (fontpath)
- Will default to winFonts.ser on Windows XP and
- macFonts.ser on Mac OS X, so is commented out by default.
-
- <local-fonts-snapshot>localFonts.ser</local-fonts-snapshot>
- -->
-
- </fonts>
-
- <!-- Array.toString() format has changed. -->
- <warn-array-tostring-changes>false</warn-array-tostring-changes>
-
- <!-- Assignment within conditional. -->
- <warn-assignment-within-conditional>true</warn-assignment-within-conditional>
-
- <!-- Possibly invalid Array cast operation. -->
- <warn-bad-array-cast>true</warn-bad-array-cast>
-
- <!-- Non-Boolean value used where a Boolean value was expected. -->
- <warn-bad-bool-assignment>true</warn-bad-bool-assignment>
-
- <!-- Invalid Date cast operation. -->
- <warn-bad-date-cast>true</warn-bad-date-cast>
-
- <!-- Unknown method. -->
- <warn-bad-es3-type-method>true</warn-bad-es3-type-method>
-
- <!-- Unknown property. -->
- <warn-bad-es3-type-prop>true</warn-bad-es3-type-prop>
-
- <!-- Illogical comparison with NaN. Any comparison operation involving NaN will evaluate to false because NaN != NaN. -->
- <warn-bad-nan-comparison>true</warn-bad-nan-comparison>
-
- <!-- Impossible assignment to null. -->
- <warn-bad-null-assignment>true</warn-bad-null-assignment>
-
- <!-- Illogical comparison with null. -->
- <warn-bad-null-comparison>true</warn-bad-null-comparison>
-
- <!-- Illogical comparison with undefined. Only untyped variables (or variables of type *) can be undefined. -->
- <warn-bad-undefined-comparison>true</warn-bad-undefined-comparison>
-
- <!-- Boolean() with no arguments returns false in ActionScript 3.0. Boolean() returned undefined in ActionScript 2.0. -->
- <warn-boolean-constructor-with-no-args>false</warn-boolean-constructor-with-no-args>
-
- <!-- __resolve is no longer supported. -->
- <warn-changes-in-resolve>false</warn-changes-in-resolve>
-
- <!-- Class is sealed. It cannot have members added to it dynamically. -->
- <warn-class-is-sealed>true</warn-class-is-sealed>
-
- <!-- Constant not initialized. -->
- <warn-const-not-initialized>true</warn-const-not-initialized>
-
- <!-- Function used in new expression returns a value. Result will be what the -->
- <!-- function returns, rather than a new instance of that function. -->
- <warn-constructor-returns-value>false</warn-constructor-returns-value>
-
- <!-- EventHandler was not added as a listener. -->
- <warn-deprecated-event-handler-error>false</warn-deprecated-event-handler-error>
-
- <!-- Unsupported ActionScript 2.0 function. -->
- <warn-deprecated-function-error>true</warn-deprecated-function-error>
-
- <!-- Unsupported ActionScript 2.0 property. -->
- <warn-deprecated-property-error>true</warn-deprecated-property-error>
-
- <!-- More than one argument by the same name. -->
- <warn-duplicate-argument-names>true</warn-duplicate-argument-names>
-
- <!-- Duplicate variable definition -->
- <warn-duplicate-variable-def>true</warn-duplicate-variable-def>
-
- <!-- ActionScript 3.0 iterates over an object's properties within a "for x in target" statement in random order. -->
- <warn-for-var-in-changes>false</warn-for-var-in-changes>
-
- <!-- Importing a package by the same name as the current class will hide that class identifier in this scope. -->
- <warn-import-hides-class>true</warn-import-hides-class>
-
- <!-- Use of the instanceof operator. -->
- <warn-instance-of-changes>true</warn-instance-of-changes>
-
- <!-- Internal error in compiler. -->
- <warn-internal-error>true</warn-internal-error>
-
- <!-- _level is no longer supported. For more information, see the flash.display package. -->
- <warn-level-not-supported>true</warn-level-not-supported>
-
- <!-- Missing namespace declaration (e.g. variable is not defined to be public, private, etc.). -->
- <warn-missing-namespace-decl>true</warn-missing-namespace-decl>
-
- <!-- Negative value will become a large positive value when assigned to a uint data type. -->
- <warn-negative-uint-literal>true</warn-negative-uint-literal>
-
- <!-- Missing constructor. -->
- <warn-no-constructor>false</warn-no-constructor>
-
- <!-- The super() statement was not called within the constructor. -->
- <warn-no-explicit-super-call-in-constructor>false</warn-no-explicit-super-call-in-constructor>
-
- <!-- Missing type declaration. -->
- <warn-no-type-decl>true</warn-no-type-decl>
-
- <!-- In ActionScript 3.0, white space is ignored and '' returns 0. Number() returns -->
- <!-- NaN in ActionScript 2.0 when the parameter is '' or contains white space. -->
- <warn-number-from-string-changes>false</warn-number-from-string-changes>
-
- <!-- Change in scoping for the this keyword. Class methods extracted from an -->
- <!-- instance of a class will always resolve this back to that instance. In -->
- <!-- ActionScript 2.0 this is looked up dynamically based on where the method -->
- <!-- is invoked from. -->
- <warn-scoping-change-in-this>false</warn-scoping-change-in-this>
-
- <!-- Inefficient use of += on a TextField.-->
- <warn-slow-text-field-addition>true</warn-slow-text-field-addition>
-
- <!-- Possible missing parentheses. -->
- <warn-unlikely-function-value>true</warn-unlikely-function-value>
-
- <!-- Possible usage of the ActionScript 2.0 XML class. -->
- <warn-xml-class-has-changed>false</warn-xml-class-has-changed>
-
- </compiler>
-
- <!-- compute-digest: writes a digest to the catalog.xml of a library. Use this when the library will be used as a
- cross-domain rsl.-->
- <!-- compute-digest usage:
- <compute-digest>boolean</compute-digest>
- -->
-
- <!-- remove-unused-rsls: remove RSLs that are not being used by the application-->
- <remove-unused-rsls>true</remove-unused-rsls>
-
- <!-- A list of runtime shared library URLs to be loaded before applications start. -->
- <!-- not set -->
- <!--
- <runtime-shared-libraries>
- <url>string</url>
- <url>string</url>
- </runtime-shared-libraries>
- -->
-
- <!-- runtime-shared-library-path: specifies a SWC or directory to link against and an RSL URL to load with optional failover URLs -->
- <!-- Framework SWC
- <runtime-shared-library-path>
- <path-element>libs/framework.swc</path-element>
- <rsl-url>framework_4.9.0.1425567.swf</rsl-url>
- </runtime-shared-library-path>
- -->
-
-
- <!-- TextLayout SWC -->
- <!--
- Even though there is no textLayout rsl leave this in so that in a FlashBuilder
- Flex Library project, FlashBuilder will allow "Link Type" to be external.
- <runtime-shared-library-path>
- <path-element>libs/textLayout.swc</path-element>
- <rsl-url>textLayout_4.9.0.1425567.swf</rsl-url>
- </runtime-shared-library-path>
- -->
-
- <!-- Spark SWC
- <runtime-shared-library-path>
- <path-element>libs/spark.swc</path-element>
- <rsl-url>spark_4.9.0.1425567.swf</rsl-url>
- </runtime-shared-library-path>
- -->
- <!-- Sparkskins SWC
- <runtime-shared-library-path>
- <path-element>libs/sparkskins.swc</path-element>
- <rsl-url>sparkskins_4.9.0.1425567.swf</rsl-url>
- </runtime-shared-library-path>
- -->
- <!-- RPC SWC
- <runtime-shared-library-path>
- <path-element>libs/rpc.swc</path-element>
- <rsl-url>rpc_4.9.0.1425567.swf</rsl-url>
- </runtime-shared-library-path>
- -->
- <!-- Charts SWC
- <runtime-shared-library-path>
- <path-element>libs/charts.swc</path-element>
- <rsl-url>charts_4.9.0.1425567.swf</rsl-url>
- </runtime-shared-library-path>
- -->
- <!-- Spark_dmv SWC
- <runtime-shared-library-path>
- <path-element>libs/spark_dmv.swc</path-element>
- <rsl-url>spark_dmv_4.9.0.1425567.swf</rsl-url>
- </runtime-shared-library-path>
- -->
- <!-- OSMF SWC -->
- <!--
- Even though there is no OSMF rsl leave this in so that in a FlashBuilder
- Flex Library project, FlashBuilder will allow "Link Type" to be external.
- <runtime-shared-library-path>
- <path-element>libs/osmf.swc</path-element>
- <rsl-url>osmf_4.9.0.1425567.swf</rsl-url>
- </runtime-shared-library-path>
- -->
-
- <!-- MX SWC
- <runtime-shared-library-path>
- <path-element>libs/mx/mx.swc</path-element>
- <rsl-url>mx_4.9.0.1425567.swf</rsl-url>
- </runtime-shared-library-path>
- -->
- <!-- Advancedgrids SWC
- <runtime-shared-library-path>
- <path-element>libs/advancedgrids.swc</path-element>
- <rsl-url>advancedgrids_4.9.0.1425567.swf</rsl-url>
- </runtime-shared-library-path>
- -->
- <!-- static-link-runtime-shared-libraries: statically link the libraries specified by the -runtime-shared-libraries-path option.-->
- <static-link-runtime-shared-libraries>true</static-link-runtime-shared-libraries>
-
- <!-- target-player: specifies the version of the player the application is targeting.
- Features requiring a later version will not be compiled into the application.
- The minimum value supported is "9.0.0".-->
- <!-- target-player usage:
- <target-player>version</target-player>
- -->
-
- <!-- Enables SWFs to access the network. -->
- <use-network>true</use-network>
-
- <!-- Metadata added to SWFs via the SWF Metadata tag. -->
- <metadata>
- <title>Apache FlexJS Application</title>
- <description>http://flex.apache.org/</description>
- <publisher>Apache Software Foundation</publisher>
- <creator>unknown</creator>
- <language>EN</language>
- </metadata>
-
-</flex-config>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/b8421ae5/frameworks/as/projects/FlexJSUI/flex-sdk-description.xml
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSUI/flex-sdk-description.xml b/frameworks/as/projects/FlexJSUI/flex-sdk-description.xml
deleted file mode 100644
index cc72eab..0000000
--- a/frameworks/as/projects/FlexJSUI/flex-sdk-description.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-<?xml version="1.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>
-<name>Apache FlexJS Prototype</name>
-<version>4.9.0</version>
-<build>1425567</build>
-</flex-sdk-description>
-
\ No newline at end of file
[3/8] git commit: [flex-asjs] [refs/heads/develop] - Factor out
MXMLCClasses into it own swc and build a set of ant scripts to build it and
FlexJSUI
Posted by ah...@apache.org.
Factor out MXMLCClasses into it own swc and build a set of ant scripts to build it and FlexJSUI
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/d7e70f9a
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/d7e70f9a
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/d7e70f9a
Branch: refs/heads/develop
Commit: d7e70f9a0e04141cece1ecc1c3bf8652e27932e3
Parents: 66246d8
Author: Alex Harui <ah...@apache.org>
Authored: Mon Nov 18 21:30:59 2013 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Mon Nov 18 21:30:59 2013 -0800
----------------------------------------------------------------------
build.properties | 65 +
build.xml | 1179 ++++++++++++++++++
frameworks/as/build.xml | 132 ++
frameworks/as/projects/FlexJSUI/build.xml | 2 +-
.../as/projects/FlexJSUI/src/FlexJSUIClasses.as | 28 -
.../src/mx/binding/ArrayElementWatcher.as | 77 --
.../projects/FlexJSUI/src/mx/binding/Binding.as | 85 --
.../FlexJSUI/src/mx/binding/BindingManager.as | 37 -
.../src/mx/binding/FunctionReturnWatcher.as | 129 --
.../FlexJSUI/src/mx/binding/IBindingClient.as | 33 -
.../src/mx/binding/IWatcherSetupUtil2.as | 47 -
.../FlexJSUI/src/mx/binding/PropertyWatcher.as | 148 ---
.../src/mx/binding/RepeaterComponentWatcher.as | 74 --
.../src/mx/binding/RepeaterItemWatcher.as | 74 --
.../src/mx/binding/StaticPropertyWatcher.as | 136 --
.../projects/FlexJSUI/src/mx/binding/Watcher.as | 88 --
.../FlexJSUI/src/mx/binding/XMLWatcher.as | 106 --
.../FlexJSUI/src/mx/core/ClassFactory.as | 100 --
.../src/mx/core/DeferredInstanceFromClass.as | 115 --
.../src/mx/core/DeferredInstanceFromFunction.as | 131 --
.../FlexJSUI/src/mx/core/IDeferredInstance.as | 51 -
.../projects/FlexJSUI/src/mx/core/IFactory.as | 39 -
.../FlexJSUI/src/mx/core/IFlexModuleFactory.as | 147 ---
.../src/mx/core/IPropertyChangeNotifier.as | 40 -
.../FlexJSUI/src/mx/core/IStateClient2.as | 31 -
.../src/mx/events/PropertyChangeEvent.as | 78 --
.../src/mx/events/PropertyChangeEventKind.as | 59 -
.../FlexJSUI/src/mx/filters/IBitmapFilter.as | 31 -
.../FlexJSUI/src/mx/styles/CSSCondition.as | 61 -
.../FlexJSUI/src/mx/styles/CSSSelector.as | 69 -
.../src/mx/styles/CSSStyleDeclaration.as | 191 ---
.../FlexJSUI/src/mx/styles/IStyleManager2.as | 34 -
.../FlexJSUI/src/mx/styles/StyleManager.as | 50 -
frameworks/as/projects/MXMLCClasses/build.xml | 69 +
.../as/projects/MXMLCClasses/compile-config.xml | 44 +
.../projects/MXMLCClasses/src/MXMLCClasses.as | 60 +
.../src/mx/binding/ArrayElementWatcher.as | 77 ++
.../MXMLCClasses/src/mx/binding/Binding.as | 85 ++
.../src/mx/binding/BindingManager.as | 37 +
.../src/mx/binding/FunctionReturnWatcher.as | 129 ++
.../src/mx/binding/IBindingClient.as | 33 +
.../src/mx/binding/IWatcherSetupUtil2.as | 47 +
.../src/mx/binding/PropertyWatcher.as | 148 +++
.../src/mx/binding/RepeaterComponentWatcher.as | 74 ++
.../src/mx/binding/RepeaterItemWatcher.as | 74 ++
.../src/mx/binding/StaticPropertyWatcher.as | 136 ++
.../MXMLCClasses/src/mx/binding/Watcher.as | 88 ++
.../MXMLCClasses/src/mx/binding/XMLWatcher.as | 106 ++
.../MXMLCClasses/src/mx/core/ClassFactory.as | 100 ++
.../src/mx/core/DeferredInstanceFromClass.as | 115 ++
.../src/mx/core/DeferredInstanceFromFunction.as | 131 ++
.../src/mx/core/IDeferredInstance.as | 51 +
.../MXMLCClasses/src/mx/core/IFactory.as | 39 +
.../src/mx/core/IFlexModuleFactory.as | 147 +++
.../src/mx/core/IPropertyChangeNotifier.as | 40 +
.../MXMLCClasses/src/mx/core/IStateClient2.as | 31 +
.../src/mx/events/PropertyChangeEvent.as | 78 ++
.../src/mx/events/PropertyChangeEventKind.as | 59 +
.../src/mx/filters/IBitmapFilter.as | 31 +
.../MXMLCClasses/src/mx/styles/CSSCondition.as | 61 +
.../MXMLCClasses/src/mx/styles/CSSSelector.as | 69 +
.../src/mx/styles/CSSStyleDeclaration.as | 191 +++
.../src/mx/styles/IStyleManager2.as | 34 +
.../MXMLCClasses/src/mx/styles/StyleManager.as | 50 +
frameworks/js/build.xml | 92 ++
65 files changed, 3903 insertions(+), 2290 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d7e70f9a/build.properties
----------------------------------------------------------------------
diff --git a/build.properties b/build.properties
new file mode 100644
index 0000000..854d453
--- /dev/null
+++ b/build.properties
@@ -0,0 +1,65 @@
+################################################################################
+##
+## 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 = Apache Flex (FlexJS) 0.0.1
+release.version = 0.0.1
+
+# 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 = 3.9
+
+# 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
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d7e70f9a/build.xml
----------------------------------------------------------------------
diff --git a/build.xml b/build.xml
new file mode 100644
index 0000000..c0bad9c
--- /dev/null
+++ b/build.xml
@@ -0,0 +1,1179 @@
+<?xml version="1.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.
+
+-->
+
+<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="FLEX_HOME" value="${env.FLEX_HOME}" />
+
+ <property name="debug" value="true"/>
+ <property name="strict" value="true"/>
+ <property name="javac.src" value="1.5"/>
+
+ <property name="kit.prefix" value="apache-flex-sdk-${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,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>
+
+ <!--
+ 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-goog-env,source-release,binary-release,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="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"
+ 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"
+ 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-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_HOME.set"/>
+
+ <fail message="The environment variable FLEX_HOME is not set to a directory"
+ unless="FLEX_HOME.set"/>
+
+ <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 TLF_HOME is a directory.">
+
+ <echo message="FALCON_HOME is ${env.FALCON_HOME}"/>
+
+ <available file="${env.FALCON_HOME}"
+ type="dir"
+ property="FALCON_HOME"
+ value="${env.FALCON_HOME}"/>
+
+ <fail message="FALCON_HOME must be set correctly for a release build"
+ unless="FALCON_HOME"/>
+
+ </target>
+
+ <target name="check-goog-env" unless="GOOG_HOME.set"
+ description="Check GOOG_HOME is a directory.">
+
+ <echo message="GOOG_HOME is ${env.GOOG_HOME}"/>
+
+ <available file="${env.GOOG_HOME}"
+ type="file"
+ property="GOOG_HOME.set"/>
+
+ <fail message="GOOG_HOME must be set correctly for a release build"
+ unless="GOOG_HOME.set"/>
+ </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"><?xml version="1.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>
+<name>${release} FP${playerglobal.version} AIR${air.version} ${locale}</name>
+<version>${release.version}</version>
+<build>${build.number.date}</build>
+</flex-sdk-description>
+ </echo>
+ </target>
+
+ <target name="create-config" description="Create flex config file">
+ <ant dir="${basedir}/frameworks" target="flex-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" />
+ <ant dir="${basedir}/mustella" target="clean"/>
+ </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">
+ <ant dir="${basedir}/examples"/>
+ </target>
+
+ <!--
+ Build framework SWCs
+ -->
+
+ <target name="frameworks" description="Full build of all framework SWCs, including resource bundles and themes">
+ <ant dir="${basedir}/frameworks/as">
+ <property name="locale" value="${locale}"/>
+ </ant>
+ <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="${FLEX_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"
+ description="Package source files required to build in zip file">
+
+ <antcall target="clean-temp"/>
+
+ <copy todir="${basedir}/temp" includeEmptyDirs="false">
+ <fileset dir="${basedir}">
+ <include name="build.xml"/>
+ <include name="build.properties"/>
+ <include name="env-template.properties"/>
+ <include name="flex-sdk-description.xml"/>
+ <include name="CHANGES"/>
+ <include name="LICENSE"/>
+ <include name="NOTICE"/>
+ <include name="README"/>
+ <include name="RELEASE_NOTES"/>
+ </fileset>
+ </copy>
+
+ <!-- frameworks/as -->
+ <antcall target="stage-framework-as"/>
+
+ <!-- frameworks/as -->
+ <antcall target="stage-framework-js"/>
+
+ <!-- asdoc -->
+ <copy todir="${basedir}/temp/asdoc" includeEmptyDirs="false">
+ <fileset dir="${basedir}/asdoc">
+ <exclude name="test/**" />
+ </fileset>
+ </copy>
+
+ <!-- ide -->
+ <copy todir="${basedir}/temp/ide">
+ <fileset dir="${basedir}/ide" >
+ <include name="flashbuilder/**"/>
+ <include name="*.sh"/>
+ <include name="*.bat"/>
+ </fileset>
+ </copy>
+
+ <!-- samples -->
+ <copy todir="${basedir}/temp/examples">
+ <fileset dir="${basedir}/examples" >
+ <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.
+ The bin directory is handled in stage-bin.
+ -->
+ <fixcrlf srcdir="${basedir}/temp" 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/**"/>
+ </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/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}" />
+
+ <!-- Update all Version.as files in the kit frameworks directory with build.number -->
+ <antcall target="version-update"/>
+ </target>
+
+ <!-- tlf -->
+ <target name="stage-frameworks-js">
+ <copy todir="${basedir}/temp/frameworks/js" includeEmptyDirs="false">
+ <fileset dir="${FLEXJS_HOME}/frameworks/js/FlexJS">
+ <include name="src/**"/>
+ </fileset>
+ </copy>
+ </target>
+
+ <target name="stage-falcon">
+ <copy todir="${basedir}/temp/bin" includeEmptyDirs="false">
+ <fileset dir="${basedir}/bin">
+ <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>
+ </target>
+
+ <target name="stage-falconjx">
+ <!-- modules -->
+ <copy todir="${basedir}/temp/modules" includeEmptyDirs="false">
+ <fileset dir="${basedir}/modules">
+ <include name="**"/>
+ <exclude name="thirdparty/**"/>
+ <exclude name=".metadata/**"/>
+ <exclude name="**/*.jar"/>
+ <exclude name="**/*.vms"/>
+ <exclude name="*/test/**"/>
+ <exclude name="compiler/src/java/velocity.log"/>
+ <exclude name="compiler/**/ParseException.java"/>
+ <exclude name="compiler/**/Parser.java"/>
+ <exclude name="compiler/**/ParserConstants.java"/>
+ <exclude name="compiler/**/Token.java"/>
+ <exclude name="compiler/**/TokenManager.java"/>
+ <exclude name="compiler/**/TokenMgrError.java"/>
+ <exclude name="**/classes/**"/>
+ <exclude name="**/.classpath"/>
+ <exclude name="**/.project"/>
+ </fileset>
+ </copy>
+
+ <!-- modules/thirdparty -->
+ <copy todir="${basedir}/temp/modules/thirdparty" includeEmptyDirs="true">
+ <fileset dir="${basedir}/modules/thirdparty">
+ <include name="**"/>
+ <exclude name="**/classes/**"/>
+ <exclude name="**/.classpath"/>
+ <exclude name="**/.project"/>
+ <exclude name="*/test*/**"/>
+ </fileset>
+ </copy>
+ </target>
+
+ <target name="binary-package"
+ description="Package binary files in zip and tar-gzip file.">
+
+ <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>
+
+ <!-- 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_HOME}" files="LICENSE,LICENSE.bin"/>
+ </concat-->
+
+
+ <!-- generated files in frameworks excepts libs and rsls -->
+ <copy todir="${basedir}/temp/frameworks/as">
+ <fileset dir="${basedir}/frameworks/as">
+ <include name="projects/*/bundles.properties"/>
+ <include name="projects/spark/manifest.xml"/>
+ <include name="**/*.pbj"/>
+ <include name="**/*.swc"/>
+ <include name="**/*.swf"/>
+ <exclude name="libs/**"/>
+ <exclude name="rsls/**"/>
+ <exclude name="tests/**"/>
+ </fileset>
+ </copy>
+
+ <!-- frameworks/libs -->
+ <copy todir="${basedir}/temp/frameworks/libs">
+ <fileset dir="${basedir}/frameworks/libs">
+ <include name="FlexJSUI.swc"/>
+ <include name="MXMLCClasses.swc"/>
+ </fileset>
+ </copy>
+
+ <!-- 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>
+
+ <!-- sample themes -->
+ <copy todir="${basedir}/temp/samples">
+ <fileset dir="${basedir}/samples" >
+ <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"/>
+ </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="<warn-no-explicit-super-call-in-constructor>true"
+ value="<warn-no-explicit-super-call-in-constructor>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">
+
+ <available property="have.greptask"
+ classname="ise.antelope.tasks.Find"
+ classpathref="anttask.classpath"/>
+
+ <antcall target="have-greptask"/>
+ <antcall target="no-greptask"/>
+ </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="${FLEX_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>
+
+ <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>
+
+ <!-- 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>
+
+
+ <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
+ -->
+
+ <!-- FixMe: add dependency checker and mobile tests -->
+ <target name="checkintests" depends="basictests-mustella" 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: Mustella checkintests
+ -->
+
+ <target name="basictests-mustella" depends="mustella-setup,basictests"/>
+
+ <target name="mustella-setup" depends="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="${basedir}/lib/flexTasks.jar"/>
+ </target>
+
+ <target name="basictests" depends="load-task" description="run basic tests using mustella">
+
+ <!-- compile the basic tests -->
+ <mxmlc fork="true"
+ file="${basedir}/frameworks/tests/basicTests/BasicTests.mxml">
+ <jvmarg line="${mxmlc.jvm.args}"/>
+ <library-path dir="${basedir}" 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}/frameworks" failonerror="true">
+ <arg value="${basedir}/frameworks/tests/basicTests/BasicTests.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="${basedir}"/>
+ </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 Flash Professional file used for integration with Flash Professional -->
+ <exclude name="frameworks/projects/flash-integration/FLA/ContentHolder.fla"/>
+ <!-- exclude font embedded in asdoc example -->
+ <exclude name="frameworks/projects/framework/asdoc/en_US/mx/effects/examples/assets/OpenSans-Regular.ttf"/>
+ <!-- exclude media (png, gif, jpg, mp3, flv) -->
+ <exclude name="**/*.png"/>
+ <exclude name="**/*.gif"/>
+ <exclude name="**/*.jpg"/>
+ <exclude name="**/*.mp3"/>
+ <exclude name="**/*.flv"/>
+ <!-- exclude batik icon -->
+ <exclude name="modules/thirdparty/batik/sources/*.icns"/>
+ <!-- End of binary files -->
+ <!-- exclude batik manifests -->
+ <exclude name="modules/thirdparty/batik/sources/*.mf"/>
+ <!-- exclude text files -->
+ <exclude name="modules/thirdparty/batik/lib/**/LICENSE*.txt"/>
+ <exclude name="modules/thirdparty/batik/lib/**/README*.txt"/>
+ <!-- exclude w3c sources -->
+ <exclude name="modules/thirdparty/batik/resources/org/apache/flex/forks/batik/dom/svg/resources/*.mod"/>
+ <exclude name="modules/thirdparty/batik/resources/org/apache/flex/forks/batik/dom/svg/resources/*.dtd"/>
+ <exclude name="modules/thirdparty/batik/sources/org/w3c/css/sac/LexicalUnit.java"/>
+ <exclude name="modules/thirdparty/batik/sources/org/w3c/flex/forks/css/sac/*.java"/>
+ <exclude name="modules/thirdparty/batik/sources/org/w3c/flex/forks/css/sac/helpers/ParserFactory.java"/>
+ <!-- exclude config files -->
+ <exclude name="modules/thirdparty/batik/svn-revision"/>
+ <exclude name="modules/thirdparty/xerces-patch/src/java/META-INF/services/javax.xml.parsers.SAXParserFactory"/>
+ <exclude name="modules/thirdparty/xerces-patch/src/java/META-INF/services/org.apache.xerces.xni.parser.XMLParserConfiguration"/>
+ <exclude name="modules/thirdparty/xerces-patch/src/java/org/apache/xerces/jaxp/javax.xml.parsers.SAXParserFactory"/>
+ </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>
+
+</project>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d7e70f9a/frameworks/as/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/as/build.xml b/frameworks/as/build.xml
new file mode 100644
index 0000000..0bcc1ac
--- /dev/null
+++ b/frameworks/as/build.xml
@@ -0,0 +1,132 @@
+<?xml version="1.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.
+
+-->
+
+<!-- Note:
+ If you modify this file you may have to make the same change in build_framework.xml.
+ build_framework.xml is renamed to build.xml when it is packaged.
+ It is used to build the frameworks directory from the zip file.
+-->
+<project name="frameworks-as" default="main" basedir=".">
+
+ <property name="FLEXJS_HOME" location="../.."/>
+
+ <!-- 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="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>
+
+ <!-- Property for the platform. -->
+ <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 file="${FLEXJS_HOME}/env.properties"/>
+ <property environment="env"/>
+ <property file="${FLEXJS_HOME}/build.properties"/>
+ <property name="FLEX_HOME" value="${env.FLEX_HOME}" />
+
+ <target name="main" depends="check-compile-env,clean,prepare,compile"
+ description="Clean build of all SWCs"/>
+
+ <target name="check-compile-env" description="Check for the required environment variables">
+ <ant antfile="${FLEXJS_HOME}/build.xml" target="check-compile-env" dir="${FLEXJS_HOME}"/>
+ </target>
+
+
+ <target name="prepare" depends="thirdparty-downloads"/>
+
+ <target name="thirdparty-downloads" unless="no.thirdparty-downloads" description="Downloads all the required thirdparty code.">
+ <!--<ant antfile="${basedir}/downloads.xml" dir="${basedir}"/>-->
+ </target>
+
+ <target name="compile" description="Builds all SWCs but not their resource bundles">
+ <antcall target="flexjsui"/>
+ <antcall target="mxmlcclasses"/>
+ </target>
+
+ <target name="other.locales" description ="Builds resource SWCs for all locales">
+ <!--<ant dir="${basedir}/projects/FlexJSUI" target="other.locales"/>-->
+ </target>
+
+ <target name="doc" >
+ <ant dir="${basedir}/projects/FlexJSUI" target="doc" />
+ </target>
+
+ <!--
+ Cleanup
+ -->
+
+ <target name="super-clean" depends="thirdparty-clean,clean" description="Cleans everything including thirdparty downloads."/>
+
+ <target name="thirdparty-clean" unless="no.thirdparty-clean" description="Removes all thirdparty downloads.">
+ <!--<ant antfile="${basedir}/downloads.xml" target="clean" dir="${basedir}"/>-->
+ </target>
+
+ <target name="clean" description="Cleans all SWCs and their resource bundles">
+ <delete file="${basedir}/flex-config.xml"/>
+ <!-- Delete output from SWC projects -->
+ <ant dir="${basedir}/projects/FlexJSUI" target="clean"/>
+ <ant dir="${basedir}/projects/MXMLCClasses" target="clean"/>
+
+ <!-- delete the FlashBuilder executable directories -->
+ <delete includeemptydirs="true" failonerror="false">
+ <fileset dir="${basedir}/projects">
+ <include name="*/bin/**"/>
+ </fileset>
+ </delete>
+ <!-- Delete empty folders -->
+ <delete dir="${basedir}/libs"/>
+ <delete dir="${basedir}/locale">
+ <exclude name="**/metadata.properties"/>
+ </delete>
+ <delete dir="${basedir}/libs/generated"/>
+ <!-- Delete only if it exists and it is empty. air and swfobject put dirs here. -->
+ <delete includeemptydirs="true" failonerror="false">
+ <fileset dir="${FLEXJS_HOME}/templates" excludes="**/*" />
+ </delete>
+ </target>
+
+ <target name="flexjsui" description="Clean build of FlexJSUI.swc">
+ <ant dir="${basedir}/projects/FlexJSUI"/>
+ </target>
+
+ <target name="mxmlcclasses" description="Clean build of MXMLClasses.swc">
+ <ant dir="${basedir}/projects/MXMLCClasses"/>
+ </target>
+
+</project>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d7e70f9a/frameworks/as/projects/FlexJSUI/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSUI/build.xml b/frameworks/as/projects/FlexJSUI/build.xml
index 3a31fbe..3962c34 100644
--- a/frameworks/as/projects/FlexJSUI/build.xml
+++ b/frameworks/as/projects/FlexJSUI/build.xml
@@ -20,7 +20,7 @@
<project name="framework" default="main" basedir=".">
- <property name="FLEXJS_HOME" location="."/>
+ <property name="FLEXJS_HOME" location="../.."/>
<property file="${FLEXJS_HOME}/env.properties"/>
<property environment="env"/>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d7e70f9a/frameworks/as/projects/FlexJSUI/src/FlexJSUIClasses.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSUI/src/FlexJSUIClasses.as b/frameworks/as/projects/FlexJSUI/src/FlexJSUIClasses.as
index f9c6a68..1fe8a69 100644
--- a/frameworks/as/projects/FlexJSUI/src/FlexJSUIClasses.as
+++ b/frameworks/as/projects/FlexJSUI/src/FlexJSUIClasses.as
@@ -91,34 +91,6 @@ internal class FlexJSUIClasses
import org.apache.flex.utils.Timer; Timer;
import org.apache.flex.core.SimpleStatesImpl; SimpleStatesImpl;
- import mx.binding.ArrayElementWatcher; ArrayElementWatcher;
- import mx.binding.Binding; Binding;
- import mx.binding.BindingManager; BindingManager;
- import mx.binding.FunctionReturnWatcher; FunctionReturnWatcher;
- import mx.binding.IBindingClient; IBindingClient;
- import mx.binding.IWatcherSetupUtil2; IWatcherSetupUtil2;
- import mx.binding.PropertyWatcher; PropertyWatcher;
- import mx.binding.RepeaterComponentWatcher; RepeaterComponentWatcher;
- import mx.binding.RepeaterItemWatcher; RepeaterItemWatcher;
- import mx.binding.StaticPropertyWatcher; StaticPropertyWatcher;
- import mx.binding.Watcher; Watcher;
- import mx.binding.XMLWatcher; XMLWatcher;
- import mx.core.ClassFactory; ClassFactory;
- import mx.core.DeferredInstanceFromClass; DeferredInstanceFromClass;
- import mx.core.DeferredInstanceFromFunction; DeferredInstanceFromFunction;
- import mx.core.IDeferredInstance; IDeferredInstance;
- import mx.core.IFactory; IFactory;
- import mx.core.IFlexModuleFactory; IFlexModuleFactory;
- import mx.core.IPropertyChangeNotifier; IPropertyChangeNotifier;
- import mx.core.IStateClient2; IStateClient2;
- import mx.events.PropertyChangeEvent; PropertyChangeEvent;
- import mx.filters.IBitmapFilter; IBitmapFilter;
- import mx.styles.CSSCondition; CSSCondition;
- import mx.styles.CSSSelector; CSSSelector;
- import mx.styles.CSSStyleDeclaration; CSSStyleDeclaration;
- import mx.styles.IStyleManager2; IStyleManager2;
- import mx.styles.StyleManager; StyleManager;
-
import mx.states.AddItems; AddItems;
import mx.states.SetProperty; SetProperty;
import mx.states.State; State;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d7e70f9a/frameworks/as/projects/FlexJSUI/src/mx/binding/ArrayElementWatcher.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSUI/src/mx/binding/ArrayElementWatcher.as b/frameworks/as/projects/FlexJSUI/src/mx/binding/ArrayElementWatcher.as
deleted file mode 100644
index 024af6c..0000000
--- a/frameworks/as/projects/FlexJSUI/src/mx/binding/ArrayElementWatcher.as
+++ /dev/null
@@ -1,77 +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.
-//
-////////////////////////////////////////////////////////////////////////////////
-
-package mx.binding
-{
-
-[ExcludeClass]
-
-/**
- * @private
- * This class is used to satisfy old MXML codegen
- * for both Falcon and MXML, but in FlexJS with mxml.children-as-data output
- * it isn't needed so there is no JS equivalent
- */
-public class ArrayElementWatcher extends Watcher
-{
-
- //--------------------------------------------------------------------------
- //
- // Constructor
- //
- //--------------------------------------------------------------------------
-
- /**
- * @private
- * Constructor
- */
- public function ArrayElementWatcher(document:Object,
- accessorFunc:Function,
- listeners:Array)
- {
- super(listeners);
-
- this.document = document;
- this.accessorFunc = accessorFunc;
- }
-
- //--------------------------------------------------------------------------
- //
- // Variables
- //
- //--------------------------------------------------------------------------
-
- /**
- * @private
- */
- private var document:Object;
-
- /**
- * @private
- */
- private var accessorFunc:Function;
-
- /**
- * @private
- */
- public var arrayWatcher:Watcher;
-
-}
-
-}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d7e70f9a/frameworks/as/projects/FlexJSUI/src/mx/binding/Binding.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSUI/src/mx/binding/Binding.as b/frameworks/as/projects/FlexJSUI/src/mx/binding/Binding.as
deleted file mode 100644
index b822dcd..0000000
--- a/frameworks/as/projects/FlexJSUI/src/mx/binding/Binding.as
+++ /dev/null
@@ -1,85 +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.
-//
-////////////////////////////////////////////////////////////////////////////////
-
-package mx.binding
-{
-
-/**
- * @private
- * This class is used to satisfy old MXML codegen
- * for both Falcon and MXML, but in FlexJS with mxml.children-as-data output
- * it isn't needed so there is no JS equivalent
- */
-public class Binding
-{
-
- //--------------------------------------------------------------------------
- //
- // Constructor
- //
- //--------------------------------------------------------------------------
-
- /**
- * Create a Binding object
- *
- * @param document The document that is the target of all of this work.
- *
- * @param srcFunc The function that returns us the value
- * to use in this Binding.
- *
- * @param destFunc The function that will take a value
- * and assign it to the destination.
- *
- * @param destString The destination represented as a String.
- * We can then tell the ValidationManager to validate this field.
- *
- * @langversion 3.0
- * @playerversion Flash 9
- * @playerversion AIR 1.1
- * @productversion Flex 3
- */
- public function Binding(document:Object, srcFunc:Function,
- destFunc:Function, destString:String,
- srcString:String = null)
- {
- }
-
- //--------------------------------------------------------------------------
- //
- // Variables
- //
- //--------------------------------------------------------------------------
-
- /**
- * Execute the binding.
- * Call the source function and get the value we'll use.
- * Then call the destination function passing the value as an argument.
- * Finally try to validate the destination.
- *
- * @langversion 3.0
- * @playerversion Flash 9
- * @playerversion AIR 1.1
- * @productversion Flex 3
- */
- public function execute(o:Object = null):void
- {
- }
-}
-
-}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d7e70f9a/frameworks/as/projects/FlexJSUI/src/mx/binding/BindingManager.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSUI/src/mx/binding/BindingManager.as b/frameworks/as/projects/FlexJSUI/src/mx/binding/BindingManager.as
deleted file mode 100644
index 3ef557b..0000000
--- a/frameworks/as/projects/FlexJSUI/src/mx/binding/BindingManager.as
+++ /dev/null
@@ -1,37 +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.
-//
-////////////////////////////////////////////////////////////////////////////////
-
-/**
- * @private
- * This class is used to satisfy old MXML codegen
- * for both Falcon and MXML, but in FlexJS with mxml.children-as-data output
- * it isn't needed so there is no JS equivalent
- */
-package mx.binding
-{
- public class BindingManager
- {
- public static function executeBindings(document:Object,
- destStr:String,
- destObj:Object):void
- {
-
- }
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d7e70f9a/frameworks/as/projects/FlexJSUI/src/mx/binding/FunctionReturnWatcher.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSUI/src/mx/binding/FunctionReturnWatcher.as b/frameworks/as/projects/FlexJSUI/src/mx/binding/FunctionReturnWatcher.as
deleted file mode 100644
index 2dfd63e..0000000
--- a/frameworks/as/projects/FlexJSUI/src/mx/binding/FunctionReturnWatcher.as
+++ /dev/null
@@ -1,129 +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.
-//
-////////////////////////////////////////////////////////////////////////////////
-
-package mx.binding
-{
-
-[ExcludeClass]
-
-/**
- * @private
- * This class is used to satisfy old MXML codegen
- * for both Falcon and MXML, but in FlexJS with mxml.children-as-data output
- * it isn't needed so there is no JS equivalent
- */
-public class FunctionReturnWatcher extends Watcher
-{
-
- //--------------------------------------------------------------------------
- //
- // Constructor
- //
- //--------------------------------------------------------------------------
-
- /**
- * @private
- * Constructor.
- */
- public function FunctionReturnWatcher(functionName:String,
- document:Object,
- parameterFunction:Function,
- events:Object,
- listeners:Array,
- functionGetter:Function = null,
- isStyle:Boolean = false)
- {
- super(listeners);
-
- this.functionName = functionName;
- this.document = document;
- this.parameterFunction = parameterFunction;
- this.events = events;
- this.functionGetter = functionGetter;
- this.isStyle = isStyle;
- }
-
- //--------------------------------------------------------------------------
- //
- // Variables
- //
- //--------------------------------------------------------------------------
-
- /**
- * @private
- * The name of the property, used to actually get the property
- * and for comparison in propertyChanged events.
- */
- private var functionName:String;
-
- /**
- * @private
- * The document is what we need to use to execute the parameter function.
- */
- private var document:Object;
-
- /**
- * @private
- * The function that will give us the parameters for calling the function.
- */
- private var parameterFunction:Function;
-
- /**
- * @private
- * The events that indicate the property has changed.
- */
- private var events:Object;
-
- /**
- * @private
- * The parent object of this function.
- */
- private var parentObj:Object;
-
- /**
- * @private
- * The watcher holding onto the parent object.
- */
- public var parentWatcher:Watcher;
-
- /**
- * Storage for the functionGetter property.
- *
- * @langversion 3.0
- * @playerversion Flash 9
- * @playerversion AIR 1.1
- * @productversion Flex 3
- */
- private var functionGetter:Function;
-
- /**
- * Storage for the isStyle property. This will be true, when
- * watching a function marked with [Bindable(style="true")]. For
- * example, UIComponent.getStyle().
- *
- * @langversion 3.0
- * @playerversion Flash 9
- * @playerversion AIR 1.1
- * @productversion Flex 4
- */
- private var isStyle:Boolean;
-
-}
-
-}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d7e70f9a/frameworks/as/projects/FlexJSUI/src/mx/binding/IBindingClient.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSUI/src/mx/binding/IBindingClient.as b/frameworks/as/projects/FlexJSUI/src/mx/binding/IBindingClient.as
deleted file mode 100644
index 14f2fb4..0000000
--- a/frameworks/as/projects/FlexJSUI/src/mx/binding/IBindingClient.as
+++ /dev/null
@@ -1,33 +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.
-//
-////////////////////////////////////////////////////////////////////////////////
-
-package mx.binding
-{
-
-/**
- * @private
- * This class is used to satisfy old MXML codegen
- * for both Falcon and MXML, but in FlexJS with mxml.children-as-data output
- * it isn't needed so there is no JS equivalent
- */
-public interface IBindingClient
-{
-}
-
-}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d7e70f9a/frameworks/as/projects/FlexJSUI/src/mx/binding/IWatcherSetupUtil2.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSUI/src/mx/binding/IWatcherSetupUtil2.as b/frameworks/as/projects/FlexJSUI/src/mx/binding/IWatcherSetupUtil2.as
deleted file mode 100644
index e2311d4..0000000
--- a/frameworks/as/projects/FlexJSUI/src/mx/binding/IWatcherSetupUtil2.as
+++ /dev/null
@@ -1,47 +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.
-//
-////////////////////////////////////////////////////////////////////////////////
-
-package mx.binding
-{
-
-[ExcludeClass]
-
-/**
- * @private
- * This class is used to satisfy old MXML codegen
- * for both Falcon and MXML, but in FlexJS with mxml.children-as-data output
- * it isn't needed so there is no JS equivalent
- */
-public interface IWatcherSetupUtil2
-{
- //--------------------------------------------------------------------------
- //
- // Methods
- //
- //--------------------------------------------------------------------------
-
- /**
- * @private
- */
- function setup(target:Object, propertyGetter:Function,
- staticPropertyGetter:Function,
- bindings:Array, watchers:Array):void;
-}
-
-}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d7e70f9a/frameworks/as/projects/FlexJSUI/src/mx/binding/PropertyWatcher.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSUI/src/mx/binding/PropertyWatcher.as b/frameworks/as/projects/FlexJSUI/src/mx/binding/PropertyWatcher.as
deleted file mode 100644
index 6bad414..0000000
--- a/frameworks/as/projects/FlexJSUI/src/mx/binding/PropertyWatcher.as
+++ /dev/null
@@ -1,148 +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.
-//
-////////////////////////////////////////////////////////////////////////////////
-
-package mx.binding
-{
-
-[ExcludeClass]
-
-/**
- * @private
- * This class is used to satisfy old MXML codegen
- * for both Falcon and MXML, but in FlexJS with mxml.children-as-data output
- * it isn't needed so there is no JS equivalent
- */
-public class PropertyWatcher extends Watcher
-{
-
- //--------------------------------------------------------------------------
- //
- // Constructor
- //
- //--------------------------------------------------------------------------
-
- /**
- * Create a PropertyWatcher
- *
- * @param prop The name of the property to watch.
- * @param event The event type that indicates the property has changed.
- * @param listeners The binding objects that are listening to this Watcher.
- * @param propertyGetter A helper function used to access non-public variables.
- *
- * @langversion 3.0
- * @playerversion Flash 9
- * @playerversion AIR 1.1
- * @productversion Flex 3
- */
- public function PropertyWatcher(propertyName:String,
- events:Object,
- listeners:Array,
- propertyGetter:Function = null)
- {
- super(listeners);
-
- }
-
- //--------------------------------------------------------------------------
- //
- // Variables
- //
- //--------------------------------------------------------------------------
-
- /**
- * The parent object of this property.
- *
- * @langversion 3.0
- * @playerversion Flash 9
- * @playerversion AIR 1.1
- * @productversion Flex 3
- */
- private var parentObj:Object;
-
- /**
- * The events that indicate the property has changed
- *
- * @langversion 3.0
- * @playerversion Flash 9
- * @playerversion AIR 1.1
- * @productversion Flex 3
- */
- protected var events:Object;
-
- /**
- * Storage for the propertyGetter property.
- *
- * @langversion 3.0
- * @playerversion Flash 9
- * @playerversion AIR 1.1
- * @productversion Flex 3
- */
- protected var propertyGetter:Function;
-
- //--------------------------------------------------------------------------
- //
- // Properties
- //
- //--------------------------------------------------------------------------
-
- //----------------------------------
- // propertyName
- //----------------------------------
-
- /**
- * Storage for the propertyName property.
- *
- * @langversion 3.0
- * @playerversion Flash 9
- * @playerversion AIR 1.1
- * @productversion Flex 3
- */
- private var _propertyName:String;
-
- /**
- * The name of the property this Watcher is watching.
- *
- * @langversion 3.0
- * @playerversion Flash 9
- * @playerversion AIR 1.1
- * @productversion Flex 3
- */
- public function get propertyName():String
- {
- return _propertyName;
- }
-
- //----------------------------------
- // useRTTI
- //----------------------------------
-
- /**
- * If compiler can't determine bindability from static type,
- * use RTTI on runtime values.
- *
- * @langversion 3.0
- * @playerversion Flash 9
- * @playerversion AIR 1.1
- * @productversion Flex 3
- */
- private var useRTTI:Boolean;
-
-}
-
-}