flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From erikdebr...@apache.org
Subject [02/18] git commit: [flex-sdk] [refs/heads/VF2JS] - Add namespace
Date Wed, 02 Jul 2014 14:17:47 GMT
Add namespace

Initial addition of 'vf2js' namespace and project

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


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

Branch: refs/heads/VF2JS
Commit: f033c66b728a82ed90c760578edba583cf13f71e
Parents: 8a6efb4
Author: Erik de Bruin <erik@ixsoftware.nl>
Authored: Wed Jun 18 12:20:49 2014 +0200
Committer: Erik de Bruin <erik@ixsoftware.nl>
Committed: Sun Jun 29 13:36:09 2014 +0200

----------------------------------------------------------------------
 build.xml                                       |   3 +
 frameworks/build.xml                            |  11 ++
 frameworks/build_framework.xml                  |  42 +++-
 frameworks/flex-config-template.xml             |   4 +
 frameworks/flex-config.xml                      |   4 +
 frameworks/projects/vf2js/build.xml             | 191 +++++++++++++++++++
 frameworks/projects/vf2js/bundle-config.xml     |  51 +++++
 .../vf2js/bundles/en_US/vf2js.properties        |  18 ++
 .../vf2js/bundles/nl_NL/vf2js.properties        |  18 ++
 frameworks/projects/vf2js/compile-config.xml    |  79 ++++++++
 frameworks/projects/vf2js/defaults.css          |  20 ++
 frameworks/projects/vf2js/manifest.xml          |  77 ++++++++
 frameworks/projects/vf2js/spark-manifest.xml    |  49 +++++
 frameworks/projects/vf2js/src/VF2JSClasses.as   |  31 +++
 .../vf2js/src/vf2js/components/Button.as        |  34 ++++
 ide/flashbuilder/config/flex-config.xml         |   4 +
 16 files changed, 634 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/f033c66b/build.xml
----------------------------------------------------------------------
diff --git a/build.xml b/build.xml
index 29e7583..7dd9b8d 100644
--- a/build.xml
+++ b/build.xml
@@ -468,6 +468,8 @@
 		<create-rsl rsl-dir="${basedir}/frameworks/rsls" swc-dir="${basedir}/frameworks/libs"
swc-name="experimental" build-number="${release.version}.${build.number.date}"/>		
 		<!-- mobile experimental RSL -->
 		<create-rsl rsl-dir="${basedir}/frameworks/rsls" swc-dir="${basedir}/frameworks/libs"
swc-name="experimental_mobile" build-number="${release.version}.${build.number.date}"/>
	
+		<!-- vf2js RSL -->
+		<create-rsl rsl-dir="${basedir}/frameworks/rsls" swc-dir="${basedir}/frameworks/libs"
swc-name="vf2js" build-number="${release.version}.${build.number.date}"/>		
 	</target>
 
     <target name="other.locales" description="Build resource SWCs for additional locales">
@@ -951,6 +953,7 @@ There are no known issues.
                 <include name="advancedgrids.swc"/>
                 <include name="spark_dmv.swc"/>
             	<include name="textLayout.swc"/>
+                <include name="vf2js.swc"/>
                 <exclude name="osmf.swc"/>
             </fileset>
         </copy>

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/f033c66b/frameworks/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/build.xml b/frameworks/build.xml
index fcfa9f9..067ee9d 100644
--- a/frameworks/build.xml
+++ b/frameworks/build.xml
@@ -131,6 +131,7 @@
     	<antcall target="apache"/>
     	<antcall target="experimental"/>
     	<antcall target="experimental_mobile"/>
+    	<antcall target="vf2js"/>
         <antcall target="compile-automation"/>
     </target>
 	
@@ -241,6 +242,7 @@
     	<ant dir="${basedir}/projects/apache" target="other.locales"/>
     	<ant dir="${basedir}/projects/experimental" target="other.locales"/>
     	<ant dir="${basedir}/projects/experimental_mobile" target="other.locales"/>
+    	<ant dir="${basedir}/projects/vf2js" target="other.locales"/>
     </target>
     
     <target name="doc" >
@@ -268,6 +270,10 @@
         <ant dir="${basedir}/projects/apache" target="doc" />
     	<ant dir="${basedir}/projects/experimental" target="doc" />
     	<ant dir="${basedir}/projects/experimental_mobile" target="doc" />
+        <!-- removed until this project gets proper documentation -->
+        <!--
+        <ant dir="${basedir}/projects/vf2js" target="doc" />
+        -->
     </target>
    
     <!--
@@ -306,6 +312,7 @@
     	<ant dir="${basedir}/projects/apache" target="clean"/>
     	<ant dir="${basedir}/projects/experimental" target="clean"/>
     	<ant dir="${basedir}/projects/experimental_mobile" target="clean"/>
+        <ant dir="${basedir}/projects/vf2js" target="clean"/>
         <ant dir="${basedir}/javascript" target="clean"/>
     	<ant dir="${basedir}/themes/AeonGraphical" target="clean"/>
         <!-- delete the FlashBuilder executable directories -->
@@ -505,4 +512,8 @@
     <target name="experimental_mobile" description="Clean build of experimental_mobile.swc">
         <ant dir="${basedir}/projects/experimental_mobile"/>
     </target>
+	
+    <target name="vf2js" description="Clean build of vf2js.swc">
+        <ant dir="${basedir}/projects/vf2js"/>
+    </target>
 </project>

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/f033c66b/frameworks/build_framework.xml
----------------------------------------------------------------------
diff --git a/frameworks/build_framework.xml b/frameworks/build_framework.xml
index 41b8229..d224ce3 100644
--- a/frameworks/build_framework.xml
+++ b/frameworks/build_framework.xml
@@ -60,6 +60,7 @@
 	<property name="experimental.dir" value="${projects.dir}/experimental"/>
     <property name="textLayout.dir" value="${projects.dir}/textLayout"/>
     <property name="experimental.dir" value="${projects.dir}/experimental"/>
+    <property name="vf2js.dir" value="${projects.dir}/vf2js"/>
 
     <!-- automation -->
     <property name="automation.dir" value="${projects.dir}/automation"/>
@@ -81,9 +82,9 @@
     
     <taskdef resource="flexTasks.tasks" classpath="${FLEX_HOME}/ant/lib/flexTasks.jar;${FLEX_HOME}/lib/flexTasks.jar"/>
 
-    <target name="main" depends="check-compile-env,clean,thirdparty-downloads,prepare,textLayout,framework,mx,spark,airframework,airspark,mobilecomponents,rpc,charts,advancedgrids,core,flash-integration,automation-swcs,bundles,themes,sparkskins,spark_dmv,apache,experimental"/>
+    <target name="main" depends="check-compile-env,clean,thirdparty-downloads,prepare,textLayout,framework,mx,spark,airframework,airspark,mobilecomponents,rpc,charts,advancedgrids,core,flash-integration,automation-swcs,bundles,themes,sparkskins,spark_dmv,apache,experimental,vf2js"/>
 
-    <target name="bundles" depends="framework_rb,mx_rb,textLayout_rb,spark_rb,airframework_rb,airspark_rb,mobilecomponents_rb,rpc_rb,charts_rb,advancedgrids_rb,automation-rbs,apache_rb,experimental_rb"/>
+    <target name="bundles" depends="framework_rb,mx_rb,textLayout_rb,spark_rb,airframework_rb,airspark_rb,mobilecomponents_rb,rpc_rb,charts_rb,advancedgrids_rb,automation-rbs,apache_rb,experimental_rb,vf2js_rb"/>
     
     <target name="automation-swcs" 
         depends="automation_agent,automation_dmv,tool,tool_air,automation,automation_air,automation_spark,automation_flashflexkit,automation_air,automation_airspark"
@@ -1069,6 +1070,41 @@
         </compc>
     </target>
 
+    <target name="vf2js" description="Builds the vf2js.swc">
+        <compc static-link-runtime-shared-libraries="true" fork="true" locale="${locale}"
accessible="true" 
+            include-classes="VF2JSClasses" output="${basedir}/libs/vf2js.swc"
+            resource-bundle-list="${vf2js.dir}/bundles.properties">
+            <source-path path-element="${vf2js.dir}/src"/>
+            <library-path />
+            <external-library-path dir="${playerglobal.dir}" includes="playerglobal.swc"/>
+            <external-library-path dir="${basedir}/libs">
+            	<include name="mx.swc"/>
+            </external-library-path>
+            <include-file name="defaults.css" path="${mx.dir}/defaults.css"/>
+            <jvmarg line="${compc.jvm.args}"/>
+            <keep-as3-metadata name="Bindable"/>
+            <keep-as3-metadata name="Managed"/>
+            <keep-as3-metadata name="ChangeEvent"/>
+            <keep-as3-metadata name="NonCommittingChangeEvent"/>
+            <keep-as3-metadata name="Transient"/>
+        </compc>
+    </target>
+    
+    <target name="vf2js_rb" description="Builds default locale vf2js_rb.swc">
+        <compc static-link-runtime-shared-libraries="true" fork="true" locale="${locale}"

+            output="${basedir}/locale/${locale}/vf2js_rb.swc">
+            <include-resource-bundles bundle="vf2js"/>
+            <source-path path-element="${vf2js.dir}/bundles/${locale}"/>
+            <source-path path-element="${vf2js.dir}/src"/>
+            <external-library-path dir="${playerglobal.dir}" includes="playerglobal.swc"/>
+            <external-library-path dir="${basedir}/libs">
+                <include name="framework.swc"/>
+            </external-library-path>
+            <library-path/>
+            <jvmarg line="${compc.jvm.args}"/>
+        </compc>
+    </target>
+
         
     <!-- Download thirdparty code -->
     
@@ -1100,6 +1136,7 @@
                 <include name="flash-integration.swc"/>
             	<include name="apache.swc"/>
             	<include name="experimental.swc"/>	
+                <include name="vf2js.swc"/>	
             </fileset>
             <fileset dir="${basedir}/libs/automation">
                 <include name="automation_agent.swc"/>
@@ -1136,6 +1173,7 @@
             	<include name="tool_air_rb.swc"/>
             	<include name="apache_rb.swc"/>
                 <include name="experimental_rb.swc"/>
+                <include name="vf2js_rb.swc"/>
             </fileset>
         </delete>
         <delete dir="${basedir}/projects" includes="*/bundles.properties"/>

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/f033c66b/frameworks/flex-config-template.xml
----------------------------------------------------------------------
diff --git a/frameworks/flex-config-template.xml b/frameworks/flex-config-template.xml
index 53776fd..b0a65b5 100644
--- a/frameworks/flex-config-template.xml
+++ b/frameworks/flex-config-template.xml
@@ -111,6 +111,10 @@
             <uri>http://flex.apache.org/experimental/ns</uri>
             <manifest>experimental-manifest.xml</manifest>
          </namespace>
+         <namespace>
+            <uri>http://flex.apache.org/vf2js/ns</uri>
+            <manifest>vf2js-manifest.xml</manifest>
+         </namespace>
       </namespaces>
 
       <!-- Enable post-link SWF optimization. -->

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/f033c66b/frameworks/flex-config.xml
----------------------------------------------------------------------
diff --git a/frameworks/flex-config.xml b/frameworks/flex-config.xml
index 2797eeb..5e71caa 100644
--- a/frameworks/flex-config.xml
+++ b/frameworks/flex-config.xml
@@ -111,6 +111,10 @@
             <uri>http://flex.apache.org/experimental/ns</uri>
             <manifest>experimental-manifest.xml</manifest>
          </namespace>
+         <namespace>
+            <uri>http://flex.apache.org/vf2js/ns</uri>
+            <manifest>vf2js-manifest.xml</manifest>
+         </namespace>
       </namespaces>
 
       <!-- Enable post-link SWF optimization. -->

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/f033c66b/frameworks/projects/vf2js/build.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/vf2js/build.xml b/frameworks/projects/vf2js/build.xml
new file mode 100644
index 0000000..8a251e3
--- /dev/null
+++ b/frameworks/projects/vf2js/build.xml
@@ -0,0 +1,191 @@
+<?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="vf2js" default="main" basedir=".">
+
+	<property name="FLEX_HOME" location="${basedir}/../../.."/>
+
+    <property file="${FLEX_HOME}/env.properties"/>
+    <property environment="env"/>
+	<property file="${FLEX_HOME}/build.properties"/>
+
+	<macrodef name="bundle">
+		<attribute name="locale"/>
+			<sequential>
+				<echo message="Compiling frameworks/locale/@{locale}/vf2js_rb.swc"/>
+
+			<!-- 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"/>
+                <compc fork="true"
+                       output="${FLEX_HOME}/frameworks/locale/@{locale}/vf2js_rb.swc">
+				<jvmarg line="${compc.jvm.args}"/>
+                <load-config filename="bundle-config.xml" />
+                <arg value="+playerglobal.version=${playerglobal.version}" />
+                <arg value="+env.PLAYERGLOBAL_HOME=${env.PLAYERGLOBAL_HOME}" />
+                <arg value="+locale=@{locale}" />
+                </compc>
+		</sequential>
+	</macrodef>
+
+	<macrodef name="fat-swc">
+		<attribute name="locale"/>
+		<sequential>
+			<mkdir dir="${basedir}/bundles/@{locale}/docs" />
+			<zip destfile="${FLEX_HOME}/frameworks/locale/@{locale}/vf2js_rb.swc" update="true">
+				<zipfileset dir="${basedir}/bundles/@{locale}/docs" prefix="docs">
+					<include name="*.*"/>
+				</zipfileset>
+				<zipfileset dir="${basedir}/bundles/en_US" prefix="docs">
+					<include name="packages.dita"/>
+				</zipfileset>
+			</zip>
+		</sequential>
+	</macrodef>
+
+	<macrodef name="bundle-clean">
+		<attribute name="locale"/>
+		<sequential>
+			<delete failonerror="false">
+				<fileset dir="${FLEX_HOME}/frameworks/locale">
+					<include name="@{locale}/vf2js_rb.swc"/>
+					<include name="@{locale}/vf2js_rb.swc.incr"/>
+				</fileset>
+			</delete>
+		</sequential>
+	</macrodef>
+
+	<macrodef name="bundler">
+		<attribute name="locale"/>
+		<element name="run.fat.swc" optional="yes"/>
+		<sequential>
+			<bundle-clean locale="@{locale}"/>
+			<bundle locale="@{locale}"/>
+			<run.fat.swc/>
+		</sequential>
+	</macrodef>
+
+	<target name="main" depends="clean,compile" description="Clean build of vf2js.swc and
default locale">
+		<bundle locale="${locale}"/>
+	</target>
+
+	<target name="other.locales" depends="bundles" description="Build other locale SWCs"/>
+
+	<!-- This is a private target for building vf2js.swc for various locales. -->
+	<!-- The targets below set the 'locale' parameter and call it with <antcall>. -->
+	<target name="bundles">
+        <!-- these languages do not have localized docs-->
+        <bundler locale="nl_NL"/><!-- Dutch resources -->
+	</target>
+
+	<target name="clean" depends="bundles-clean">
+		<delete failonerror="false">
+			<fileset dir="${basedir}" >
+				<include name="bundles.properties"/>
+			    <include name="bundles/en_US/packages.dita"/>
+			</fileset>
+			<fileset dir="${FLEX_HOME}/frameworks/libs">
+				<include name="vf2js.swc"/>
+				<include name="vf2js.swc.incr"/>
+			</fileset>
+		</delete>
+	</target>
+
+	<target name="bundles-clean">
+		<delete failonerror="false">
+			<fileset dir="${FLEX_HOME}/frameworks/locale">
+				<include name="*/vf2js_rb.swc"/>
+				<include name="*/vf2js_rb.swc.incr"/>
+			</fileset>
+		</delete>
+	</target>
+
+	<target name="compile" description="Compiles vf2js.swc">
+		<echo message="Compiling frameworks/libs/vf2js.swc"/>
+
+		<!-- 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 experimental classes
+			listed in this project's manifest.xml.
+			Also link the additional classes (and their dependencies)
+			listed in ExperimentalClasses.as,
+			because these aren't referenced by the manifest classes.
+			Keep the standard metadata when compiling.
+			Link in accessibility support.
+			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="${FLEX_HOME}/frameworks/libs/vf2js.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>
+
+	<target name="doc" depends="clean-temp-docs" description="updates vf2js.swc with asdoc
xml">
+		<!-- Load the <asdoc> 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"/>
+
+	    <condition property="asdoc.jvm.args" value="-Xmx384m">
+	        <os family="windows"/>
+	    </condition>
+
+	    <condition property="asdoc.jvm.args" value="-Xmx512m">
+	        <os family="mac"/>
+	    </condition>
+
+	    <condition property="asdoc.jvm.args" value="-Xmx512m">
+	        <os family="unix"/>
+	    </condition>
+
+
+		<!-- Call asdoc to generate dita xml files -->
+		<asdoc output="${FLEX_HOME}/tempDoc" lenient="true" failonerror="true" keep-xml="true"
skip-xsl="true" fork="true">
+		    <compiler.source-path path-element="${basedir}/src"/>
+		    <doc-classes class="ExperimentalClasses"/>
+		    <namespace uri="http://flex.apache.org/vf2js/ns" manifest="${basedir}/manifest.xml"/>
+		    <namespace uri="library://ns.adobe.com/flex/spark" manifest="${basedir}/spark-manifest.xml"/>
+		    <jvmarg line="${asdoc.jvm.args}"/>
+		</asdoc>
+
+		<!-- updates vf2js.swc with asdoc xml -->
+		<zip destfile="${FLEX_HOME}/frameworks/locale/en_US/vf2js_rb.swc" update="true">
+		    <zipfileset dir="${FLEX_HOME}/tempDoc/tempdita" prefix="docs">
+			    <include name="*.*"/>
+				<exclude name="ASDoc_Config.xml"/>
+				<exclude name="overviews.xml"/>
+		    </zipfileset>
+		</zip>
+		<copy file="${FLEX_HOME}/tempDoc/tempdita/packages.dita" tofile="${basedir}/bundles/en_US/packages.dita"/>
+	</target>
+
+	<target name="clean-temp-docs">
+		<delete dir="${FLEX_HOME}/tempDoc" failonerror="false" includeEmptyDirs="true"/>
+		<delete file="${basedir}/bundles/en_US/packages.dita" failonerror="false"/>
+	</target>
+</project>

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/f033c66b/frameworks/projects/vf2js/bundle-config.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/vf2js/bundle-config.xml b/frameworks/projects/vf2js/bundle-config.xml
new file mode 100644
index 0000000..89cd8aa
--- /dev/null
+++ b/frameworks/projects/vf2js/bundle-config.xml
@@ -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.
+
+-->
+<flex-config>
+
+    <compiler>        
+        <external-library-path>
+            <path-element>${env.PLAYERGLOBAL_HOME}/${playerglobal.version}/playerglobal.swc</path-element>
+            <path-element>../../libs/framework.swc</path-element>
+            <path-element>../../libs/spark.swc</path-element>
+        </external-library-path>
+        
+        <include-libraries/>
+        
+        <library-path/>
+        
+        <locale>
+            <locale-element>${locale}</locale-element>
+        </locale>
+        
+        <source-path>
+            <path-element>src</path-element>
+            <path-element>bundles/${locale}</path-element>
+        </source-path>
+    </compiler>
+    
+    <include-classes/>
+    
+    <include-namespaces/>
+    
+    <include-resource-bundles>
+        <bundle>vf2js</bundle>
+    </include-resource-bundles>
+        
+    <target-player>${playerglobal.version}</target-player>
+</flex-config>

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/f033c66b/frameworks/projects/vf2js/bundles/en_US/vf2js.properties
----------------------------------------------------------------------
diff --git a/frameworks/projects/vf2js/bundles/en_US/vf2js.properties b/frameworks/projects/vf2js/bundles/en_US/vf2js.properties
new file mode 100644
index 0000000..29940f7
--- /dev/null
+++ b/frameworks/projects/vf2js/bundles/en_US/vf2js.properties
@@ -0,0 +1,18 @@
+################################################################################
+##
+##  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.
+##
+################################################################################

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/f033c66b/frameworks/projects/vf2js/bundles/nl_NL/vf2js.properties
----------------------------------------------------------------------
diff --git a/frameworks/projects/vf2js/bundles/nl_NL/vf2js.properties b/frameworks/projects/vf2js/bundles/nl_NL/vf2js.properties
new file mode 100644
index 0000000..29940f7
--- /dev/null
+++ b/frameworks/projects/vf2js/bundles/nl_NL/vf2js.properties
@@ -0,0 +1,18 @@
+################################################################################
+##
+##  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.
+##
+################################################################################

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/f033c66b/frameworks/projects/vf2js/compile-config.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/vf2js/compile-config.xml b/frameworks/projects/vf2js/compile-config.xml
new file mode 100644
index 0000000..a8b2b0b
--- /dev/null
+++ b/frameworks/projects/vf2js/compile-config.xml
@@ -0,0 +1,79 @@
+<!--
+
+  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>true</accessible>
+
+        <external-library-path>
+            <path-element>${env.PLAYERGLOBAL_HOME}/${playerglobal.version}/playerglobal.swc</path-element>
+            <path-element>../../libs/framework.swc</path-element>
+            <path-element>../../libs/spark.swc</path-element>
+            <path-element>../../libs/textLayout.swc</path-element>
+        </external-library-path>
+
+        <keep-as3-metadata>
+            <name>Bindable</name>
+            <name>Managed</name>
+            <name>ChangeEvent</name>
+            <name>NonCommittingChangeEvent</name>
+            <name>Transient</name>
+            <name>SkinPart</name>
+        </keep-as3-metadata>
+
+        <locale/>
+
+        <library-path/>
+
+        <namespaces>
+            <namespace>
+                <uri>http://flex.apache.org/vf2js/ns</uri>
+                <manifest>manifest.xml</manifest>
+            </namespace>
+            <namespace>
+                <uri>library://ns.adobe.com/flex/spark</uri>
+                <manifest>spark-manifest.xml</manifest>
+            </namespace>
+        </namespaces>
+
+        <source-path>
+            <path-element>src</path-element>
+        </source-path>
+
+        <show-deprecation-warnings>false</show-deprecation-warnings>
+        <warn-no-constructor>false</warn-no-constructor>
+    </compiler>
+
+	<include-namespaces>
+		 <uri>http://flex.apache.org/vf2js/ns</uri>
+	</include-namespaces>
+
+    <include-classes>
+        <class>VF2JSClasses</class>
+    </include-classes>
+
+    <include-file>
+        <name>defaults.css</name>
+        <path>defaults.css</path>
+    </include-file>
+
+    <resource-bundle-list>bundles.properties</resource-bundle-list>
+
+    <target-player>${playerglobal.version}</target-player>
+</flex-config>

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/f033c66b/frameworks/projects/vf2js/defaults.css
----------------------------------------------------------------------
diff --git a/frameworks/projects/vf2js/defaults.css b/frameworks/projects/vf2js/defaults.css
new file mode 100644
index 0000000..9d843bc
--- /dev/null
+++ b/frameworks/projects/vf2js/defaults.css
@@ -0,0 +1,20 @@
+/*
+*
+*  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.
+*
+*/
+@namespace "http://flex.apache.org/vf2js/ns";
+@namespace s "library://ns.adobe.com/flex/spark";

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/f033c66b/frameworks/projects/vf2js/manifest.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/vf2js/manifest.xml b/frameworks/projects/vf2js/manifest.xml
new file mode 100644
index 0000000..cdfe63e
--- /dev/null
+++ b/frameworks/projects/vf2js/manifest.xml
@@ -0,0 +1,77 @@
+<?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.
+
+-->
+
+<!--
+
+    Experimental Components
+
+-->
+<componentPackage>
+	<!-- components -->
+	<!-- Alert -->
+	<component id="Alert" class="spark.components.Alert"/>
+    <!-- DataAccordion -->
+    <component id="DataAccordion" class="spark.components.DataAccordion"/>
+    <!-- DataNavigator -->
+    <component id="DataNavigator" class="spark.components.DataNavigator"/>
+    <!-- DataNavigatorGroup -->
+    <component id="DataNavigatorGroup" class="spark.components.DataNavigatorGroup"/>
+    <!-- BorderDataNavigatorGroup -->
+    <component id="BorderDataNavigator" class="spark.components.BorderDataNavigator"/>
+    <!-- InlineScroller -->
+    <component id="InlineScroller" class="spark.components.InlineScroller"/>
+    <!-- ColorPicker -->
+    <component id="ColorPicker" class="spark.components.ColorPicker"/>
+    <!-- MaskedTextInput -->
+    <component id="MaskedTextInput" class="spark.components.MaskedTextInput"/>
+    <!-- Menu -->
+    <component id="Menu" class="spark.components.Menu"/>
+    <component id="MenuItemRenderer" class="spark.components.itemRenderers.MenuItemRenderer"/>
+    <!-- MenuBar -->
+    <component id="MenuBar" class="spark.components.MenuBar"/>
+    <component id="MenuBarItemRenderer" class="spark.components.itemRenderers.MenuBarItemRenderer"/>
+    <!-- ProgressBar -->
+    <component id="ProgressBar" class="spark.components.ProgressBar"/>
+    
+	<!-- containers -->
+    <component id="Accordion" class="spark.containers.Accordion"/>
+    <component id="DeferredGroup" class="spark.containers.DeferredGroup"/>
+    <component id="Navigator" class="spark.containers.Navigator"/>
+    <component id="NavigatorGroup" class="spark.containers.NavigatorGroup"/>
+    
+    
+    <!-- Horizontal and Vertical dividers and their groups -->
+    <component id="Divider" class="spark.containers.Divider"/>
+    <component id="HDivider" class="spark.containers.HDivider"/>
+    <component id="VDivider" class="spark.containers.VDivider"/>
+    <component id="DividerGroup" class="spark.containers.DividedGroup"/>
+    <component id="HDividerGroup" class="spark.containers.HDividerGroup"/>
+    <component id="VDividerGroup" class="spark.containers.VDividerGroup"/>
+    
+    <!-- layouts -->
+    <component id="AccordionLayout" class="spark.layouts.AccordionLayout"/>
+    <component id="CarouselLayout" class="spark.layouts.CarouselLayout"/>
+    <component id="CoverflowLayout" class="spark.layouts.CoverflowLayout"/>
+    <component id="InlineScrollerLayout" class="spark.layouts.InlineScrollerLayout"/>
+    <component id="RolodexLayout" class="spark.layouts.RolodexLayout"/>
+    <component id="StackLayout" class="spark.layouts.StackLayout"/>
+    <component id="TimeMachineLayout" class="spark.layouts.TimeMachineLayout"/>
+    
+</componentPackage>

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/f033c66b/frameworks/projects/vf2js/spark-manifest.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/vf2js/spark-manifest.xml b/frameworks/projects/vf2js/spark-manifest.xml
new file mode 100644
index 0000000..817b4cf
--- /dev/null
+++ b/frameworks/projects/vf2js/spark-manifest.xml
@@ -0,0 +1,49 @@
+<?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.
+
+-->
+
+<!--
+
+    Experimental Components
+
+-->
+<componentPackage>
+
+    <!-- Special Components -->
+    <component id="State" class="mx.states.State" lookupOnly="true"/>
+    <component id="Transition" class="mx.states.Transition" lookupOnly="true"/>
+
+    <!-- Flex 3 Graphics -->
+    <component id="BitmapFill" class="mx.graphics.BitmapFill" lookupOnly="true"/>
+    <component id="BitmapResizeMode" class="mx.graphics.BitmapResizeMode" lookupOnly="true"/>
+    <component id="CompoundTransform" class="mx.geom.CompoundTransform" lookupOnly="true"/>
+    <component id="GradientEntry" class="mx.graphics.GradientEntry" lookupOnly="true"/>
+    <component id="LinearGradient" class="mx.graphics.LinearGradient" lookupOnly="true"/>
+    <component id="LinearGradientStroke" class="mx.graphics.LinearGradientStroke" lookupOnly="true"/>
+    <component id="RadialGradient" class="mx.graphics.RadialGradient" lookupOnly="true"/>
+    <component id="RadialGradientStroke" class="mx.graphics.RadialGradientStroke" lookupOnly="true"/>
+    <component id="SolidColor" class="mx.graphics.SolidColor" lookupOnly="true"/>
+    <component id="SolidColorStroke" class="mx.graphics.SolidColorStroke" lookupOnly="true"/>
+    <component id="Stroke" class="mx.graphics.Stroke" lookupOnly="true"/>
+    <component id="Transform" class="mx.geom.Transform" lookupOnly="true"/>
+
+    <!-- Spark Graphics -->
+    <component id="BitmapGraphic" class="spark.primitives.BitmapImage" lookupOnly="true"/>
+    <component id="BitmapImage" class="spark.primitives.BitmapImage" lookupOnly="true"/>
+</componentPackage>

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/f033c66b/frameworks/projects/vf2js/src/VF2JSClasses.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/vf2js/src/VF2JSClasses.as b/frameworks/projects/vf2js/src/VF2JSClasses.as
new file mode 100644
index 0000000..c5bc341
--- /dev/null
+++ b/frameworks/projects/vf2js/src/VF2JSClasses.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.
+//
+////////////////////////////////////////////////////////////////////////////////
+package
+{
+	internal class VF2JSClasses
+	{
+		/**
+		 *  @private
+		 *  This class is used to link additional classes into experimental.swc
+		 *  beyond those that are found by dependecy analysis starting
+		 *  from the classes specified in manifest.xml.
+		 */
+		import vf2js.components.Button; Button;
+	}
+}

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/f033c66b/frameworks/projects/vf2js/src/vf2js/components/Button.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/vf2js/src/vf2js/components/Button.as b/frameworks/projects/vf2js/src/vf2js/components/Button.as
new file mode 100644
index 0000000..78c447e
--- /dev/null
+++ b/frameworks/projects/vf2js/src/vf2js/components/Button.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 vf2js.components
+{
+
+public class Button
+{
+    //--------------------------------------------------------------------------
+    //
+    //  Constructor
+    //
+    //--------------------------------------------------------------------------
+
+    public function Button() {}
+}
+
+}

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/f033c66b/ide/flashbuilder/config/flex-config.xml
----------------------------------------------------------------------
diff --git a/ide/flashbuilder/config/flex-config.xml b/ide/flashbuilder/config/flex-config.xml
index 1536d4a..7caacbe 100644
--- a/ide/flashbuilder/config/flex-config.xml
+++ b/ide/flashbuilder/config/flex-config.xml
@@ -111,6 +111,10 @@
             <uri>http://flex.apache.org/experimental/ns</uri>
             <manifest>experimental-manifest.xml</manifest>
          </namespace>
+         <namespace>
+            <uri>http://flex.apache.org/vf2js/ns</uri>
+            <manifest>vf2js-manifest.xml</manifest>
+         </namespace>
       </namespaces>
 
       <!-- Enable post-link SWF optimization. -->


Mime
View raw message