You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ma...@apache.org on 2013/10/06 15:58:00 UTC

[19/25] git commit: [flex-sdk] [refs/heads/mobileexperimental] - FLEX-33800 Add disclaimer in html ASDocs for experimental classes added test build

FLEX-33800 Add disclaimer in html ASDocs for experimental classes
added test build


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

Branch: refs/heads/mobileexperimental
Commit: b03d482dbacc6adf3282ca132651868403419dbc
Parents: 89c0d71
Author: mamsellem <ma...@systar.com>
Authored: Sat Oct 5 21:39:54 2013 +0200
Committer: mamsellem <ma...@systar.com>
Committed: Sat Oct 5 21:39:54 2013 +0200

----------------------------------------------------------------------
 asdoc/test/build_test_experimental.xml   | 60 +++++++++++++++++++++++++++
 asdoc/test/doc_src/SampleExperimental.as | 30 ++++++++++++++
 2 files changed, 90 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/b03d482d/asdoc/test/build_test_experimental.xml
----------------------------------------------------------------------
diff --git a/asdoc/test/build_test_experimental.xml b/asdoc/test/build_test_experimental.xml
new file mode 100644
index 0000000..8e0f0fa
--- /dev/null
+++ b/asdoc/test/build_test_experimental.xml
@@ -0,0 +1,60 @@
+<?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="ASDocs Test Experimental" default="main" basedir=".">
+    <property name="FLEX_HOME" value="${basedir}/../.."/>
+    <property name="flexlib" location="${FLEX_HOME}/frameworks"/>
+
+    <property file="${FLEX_HOME}/env.properties"/>
+    <property environment="env"/>
+    <property file="${FLEX_HOME}/build.properties"/>
+
+    <available file="${FLEX_HOME}/../flex-tlf/textLayout"
+               type="dir"
+               property="TLF_HOME"
+               value="${FLEX_HOME}/../flex-tlf"/>
+
+    <available file="${FLEX_HOME}/../tlf/textLayout"
+               type="dir"
+               property="TLF_HOME"
+               value="${FLEX_HOME}/../tlf"/>
+
+
+    <target name="main" depends="clean,doc" description="Clean build of all ASDocs"/>
+
+    <target name="clean" description="Cleans all ASDocs">
+        <delete dir="${FLEX_HOME}/asdoc-output"/>
+    </target>
+
+    <target name="doc" description="generate ASDOC for SampleExperimental class">
+        <path id="flexTasks.path">
+            <fileset dir="${FLEX_HOME}">
+                <include name="lib/flexTasks.jar"/>
+            </fileset>
+        </path>
+        <taskdef resource="flexTasks.tasks" classpathref="flexTasks.path"/>
+        <asdoc output="${FLEX_HOME}/asdoc-output" lenient="${lenient}" failonerror="true" warnings="false"
+               keep-xml="true"
+               skip-xsl="false"
+               strict="false" locale="en_US" fork="true">
+            <doc-classes class="SampleExperimental"/>
+            <compiler.source-path path-element="${basedir}/doc_src"/>
+        </asdoc>
+    </target>
+</project>

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/b03d482d/asdoc/test/doc_src/SampleExperimental.as
----------------------------------------------------------------------
diff --git a/asdoc/test/doc_src/SampleExperimental.as b/asdoc/test/doc_src/SampleExperimental.as
new file mode 100644
index 0000000..6bff593
--- /dev/null
+++ b/asdoc/test/doc_src/SampleExperimental.as
@@ -0,0 +1,30 @@
+package
+{
+
+[DiscouragedForProfile("mobileDevice")]
+[Deprecated(since="4.10")]
+[Experimental]
+
+/**
+ * This is a sample experimental class
+ *
+ *  @langversion 3.0
+ *  @playerversion AIR 3.8
+ *  @productversion Flex 4.11
+ *
+ */
+public class SampleExperimental
+{
+
+    /**
+     * sample foo var
+     */
+    public var foo:String;
+    /**
+     * sample bar
+     */
+    public var bar:String;
+
+
+}
+}