incubator-flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmcl...@apache.org
Subject svn commit: r1369773 - in /incubator/flex/trunk/frameworks/projects/experimental: ./ build.xml bundles/ bundles/en_US/ bundles/en_US/empty.properties defaults.css manifest.xml src/ src/ExperimentalClasses.as src/org/ src/org/apache/ src/org/apache/flex/
Date Mon, 06 Aug 2012 10:29:16 GMT
Author: jmclean
Date: Mon Aug  6 10:29:15 2012
New Revision: 1369773

URL: http://svn.apache.org/viewvc?rev=1369773&view=rev
Log:
Project for experimental classes

Added:
    incubator/flex/trunk/frameworks/projects/experimental/
    incubator/flex/trunk/frameworks/projects/experimental/build.xml
    incubator/flex/trunk/frameworks/projects/experimental/bundles/
    incubator/flex/trunk/frameworks/projects/experimental/bundles/en_US/
    incubator/flex/trunk/frameworks/projects/experimental/bundles/en_US/empty.properties
    incubator/flex/trunk/frameworks/projects/experimental/defaults.css
    incubator/flex/trunk/frameworks/projects/experimental/manifest.xml
    incubator/flex/trunk/frameworks/projects/experimental/src/
    incubator/flex/trunk/frameworks/projects/experimental/src/ExperimentalClasses.as
    incubator/flex/trunk/frameworks/projects/experimental/src/org/
    incubator/flex/trunk/frameworks/projects/experimental/src/org/apache/
    incubator/flex/trunk/frameworks/projects/experimental/src/org/apache/flex/

Added: incubator/flex/trunk/frameworks/projects/experimental/build.xml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/frameworks/projects/experimental/build.xml?rev=1369773&view=auto
==============================================================================
--- incubator/flex/trunk/frameworks/projects/experimental/build.xml (added)
+++ incubator/flex/trunk/frameworks/projects/experimental/build.xml Mon Aug  6 10:29:15 2012
@@ -0,0 +1,218 @@
+<?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="experimental" 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}/experimental_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}/experimental_rb.swc"
+				   locale="@{locale}">
+				<jvmarg line="${compc.jvm.args}"/>
+				<target-player>${playerglobal.version}</target-player>
+				<include-resource-bundles bundle="empty"/>
+				<include-namespaces/>
+				<include-classes/>
+				<source-path path-element="${basedir}/bundles/@{locale}"/>
+				<source-path path-element="${FLEX_HOME}/frameworks/projects/experimental/src"/>
+				<include-libraries/>
+				<library-path/>
+				<external-library-path dir="${env.PLAYERGLOBAL_HOME}">
+					<include name="${playerglobal.version}/playerglobal.swc"/>
+				</external-library-path>
+				<external-library-path dir="${FLEX_HOME}/frameworks/libs">
+	                <include name="framework.swc"/>
+				</external-library-path>
+			</compc>
+		</sequential>
+	</macrodef>	
+	
+	<macrodef name="fat-swc">
+		<attribute name="locale"/>
+		<sequential>
+			<mkdir dir="${basedir}/bundles/@{locale}/docs" />
+			<zip destfile="${FLEX_HOME}/frameworks/locale/@{locale}/experimental_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}/experimental_rb.swc"/>
+					<include name="@{locale}/experimental_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 experimental.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 experimental.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-->
+		<!-- TODO add misisng locales -->
+	</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/experimental">
+				<include name="experimental.swc"/>
+				<include name="experimental.swc.incr"/>
+			</fileset>
+		</delete>
+	</target>
+	
+	<target name="bundles-clean">
+		<delete failonerror="false">
+			<fileset dir="${FLEX_HOME}/frameworks/locale">
+				<include name="*/experimental_rb.swc"/>
+				<include name="*/experimental_rb.swc.incr"/>
+			</fileset>
+		</delete>
+	</target>
+	
+	<target name="compile" description="Compiles experimental.swc">
+		<echo message="Compiling frameworks/libs/experimental.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/experimental.swc"
+			   resource-bundle-list="${basedir}/bundles.properties">
+			<jvmarg line="${compc.jvm.args}"/>
+			<target-player>${playerglobal.version}</target-player>
+			<namespace uri="http://flex.apache.org/experimental/ns" manifest="${basedir}/manifest.xml"/>
+			<include-classes>ExperimentalClasses</include-classes>
+			<source-path path-element="${basedir}/src"/>
+			<library-path/>
+			<external-library-path dir="${env.PLAYERGLOBAL_HOME}">
+                <include name="${playerglobal.version}/playerglobal.swc"/>
+            </external-library-path>
+            <external-library-path dir="${FLEX_HOME}/frameworks/libs">
+                  <include />
+			</external-library-path>
+			<include-file name="defaults.css" path="${basedir}/defaults.css"/>
+			<locale/>
+			<accessible>true</accessible>
+			<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="doc" depends="clean-temp-docs" description="updates experimental.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/experimental/ns" manifest="${basedir}/manifest.xml"/>
+		    <jvmarg line="${asdoc.jvm.args}"/>
+		</asdoc>
+
+		<!-- updates experimental.swc with asdoc xml -->
+		<zip destfile="${FLEX_HOME}/frameworks/locale/en_US/experimental_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>

Added: incubator/flex/trunk/frameworks/projects/experimental/bundles/en_US/empty.properties
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/frameworks/projects/experimental/bundles/en_US/empty.properties?rev=1369773&view=auto
==============================================================================
--- incubator/flex/trunk/frameworks/projects/experimental/bundles/en_US/empty.properties (added)
+++ incubator/flex/trunk/frameworks/projects/experimental/bundles/en_US/empty.properties Mon
Aug  6 10:29:15 2012
@@ -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.
+##
+################################################################################

Added: incubator/flex/trunk/frameworks/projects/experimental/defaults.css
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/frameworks/projects/experimental/defaults.css?rev=1369773&view=auto
==============================================================================
--- incubator/flex/trunk/frameworks/projects/experimental/defaults.css (added)
+++ incubator/flex/trunk/frameworks/projects/experimental/defaults.css Mon Aug  6 10:29:15
2012
@@ -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/experimental/ns";

Added: incubator/flex/trunk/frameworks/projects/experimental/manifest.xml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/frameworks/projects/experimental/manifest.xml?rev=1369773&view=auto
==============================================================================
--- incubator/flex/trunk/frameworks/projects/experimental/manifest.xml (added)
+++ incubator/flex/trunk/frameworks/projects/experimental/manifest.xml Mon Aug  6 10:29:15
2012
@@ -0,0 +1,28 @@
+<?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>
+
+</componentPackage>

Added: incubator/flex/trunk/frameworks/projects/experimental/src/ExperimentalClasses.as
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/frameworks/projects/experimental/src/ExperimentalClasses.as?rev=1369773&view=auto
==============================================================================
--- incubator/flex/trunk/frameworks/projects/experimental/src/ExperimentalClasses.as (added)
+++ incubator/flex/trunk/frameworks/projects/experimental/src/ExperimentalClasses.as Mon Aug
 6 10:29:15 2012
@@ -0,0 +1,35 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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 ExperimentalClasses
+	{
+		
+		/**
+		 *  @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.
+		 */
+		
+	}
+	
+}



Mime
View raw message