add asdic target and remove potentially uncorking stuff from release packages
Project: http://git-wip-us.apache.org/repos/asf/flex-utilities/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-utilities/commit/8d679d89 Tree: http://git-wip-us.apache.org/repos/asf/flex-utilities/tree/8d679d89 Diff: http://git-wip-us.apache.org/repos/asf/flex-utilities/diff/8d679d89 Branch: refs/heads/master Commit: 8d679d8908e939ae7e5eb14308fc26becbf1056e Parents: 12148ef Author: Justin Mclean <jmcl...@apache.org> Authored: Fri Aug 29 10:42:33 2014 +1000 Committer: Justin Mclean <jmcl...@apache.org> Committed: Fri Aug 29 10:42:33 2014 +1000 ---------------------------------------------------------------------- Squiggly/build.xml | 71 ++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 70 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/8d679d89/Squiggly/build.xml ---------------------------------------------------------------------- diff --git a/Squiggly/build.xml b/Squiggly/build.xml index 8d1c62d..8d75f24 100644 --- a/Squiggly/build.xml +++ b/Squiggly/build.xml @@ -24,8 +24,20 @@ <property file="${basedir}/local.properties"/> <property file="${basedir}/build.properties"/> + <condition property="FLEX_HOME" value="${env.FLEX_HOME}"> + <isset property="env.FLEX_HOME" /> + </condition> + <property name="version" value="1.0" /> + <path id="flexTasks.path"> + <fileset dir="${FLEX_HOME}"> + <include name="lib/flexTasks.jar" /> + <include name="ant/lib/flexTasks.jar" /> + </fileset> + </path> + <taskdef resource="flexTasks.tasks" classpathref="flexTasks.path"/> + <target name="compile" description="compile squiggly swcs and ane" depends="compile-swc,compile-ane"> </target> @@ -37,7 +49,43 @@ <!-- TODO may be added in a future release --> </target> - <target name="package" description="package up all source files" depends="package-dir,package-source-tar,package-source-zip,package-binary-tar,package-binary-zip"> + <target name="package" description="package up all source files" depends="package-dir,generate-docs,package-source-tar,package-source-zip,package-binary-tar,package-binary-zip"> + </target> + + <target name="generate-docs"> + <!-- + C:\flexsdk4.1\bin\asdoc" + -package com.adobe.linguistics.spelling "This package providing spell checking functionality to your action script applications. This includes the core spell checking engine and the optional SpellUI class for easy integration with your existing Flex projects." + -package com.adobe.linguistics.spelling.ui "This package provides text highlighting related functionalities" + -package com.adobe.linguistics.spelling.framework "This package provides spelling service and spelling configuration related functionalities" + -package com.adobe.linguistics.utils "This package provides text parsing and tokenizing related classes" + --> + <asdoc output="out\docs" lenient="true" failonerror="true" warnings="false" strict="false" locale="en_US" fork="true" + exclude-dependencies="true" + window-title="Squiggly API Documentation ${version}" + main-title="${version} API Reference"> + + <doc-classes class="com.adobe.linguistics.spelling.SpellUI"/> + <doc-classes class="com.adobe.linguistics.spelling.SpellUIForTLF"/> + <doc-classes class="com.adobe.linguistics.spelling.HunspellDictionary"/> + <doc-classes class="com.adobe.linguistics.spelling.SpellChecker"/> + <doc-classes class="com.adobe.linguistics.spelling.UserDictionary"/> + <doc-classes class="com.adobe.linguistics.utils.TextTokenizer"/> + <doc-classes class="com.adobe.linguistics.utils.Token"/> + <doc-classes class="com.adobe.linguistics.spelling.framework.ResourceTable"/> + <doc-classes class="com.adobe.linguistics.spelling.framework.SpellingConfiguration"/> + <doc-classes class="com.adobe.linguistics.spelling.framework.SpellingService"/> + <doc-classes class="com.adobe.linguistics.spelling.ui.IHighlighter"/> + <doc-classes class="com.adobe.linguistics.spelling.ui.HaloHighlighter"/> + <doc-classes class="com.adobe.linguistics.spelling.ui.SparkHighlighter"/> + <doc-classes class="com.adobe.linguistics.spelling.ui.TLFHighlighter"/> + + <compiler.source-path path-element="main/SpellingUI/src"/> + <compiler.source-path path-element="main/SpellingUITLF/src"/> + <compiler.source-path path-element="main/SpellingEngine/src"/> + <compiler.source-path path-element="main/LinguisticUtils/src"/> + <compiler.source-path path-element="main/SpellingFramework/src"/> + </asdoc> </target> <target name="package-dir"> @@ -63,6 +111,11 @@ <include name="**/*.sh" /> <include name="**/*.properties" /> <exclude name="ane/**" /> + <exclude name="main/ASDocExamples/**" /> + <exclude name="main/Automation/**" /> + <exclude name="main/Data/**" /> + <exclude name="main/Demo/**" /> + <exclude name="main/Tools/**" /> </tarfileset> </tar> </target> @@ -83,6 +136,11 @@ <include name="**/*.sh" /> <include name="**/*.properties" /> <exclude name="ane/**" /> + <exclude name="main/ASDocExamples/**" /> + <exclude name="main/Automation/**" /> + <exclude name="main/Data/**" /> + <exclude name="main/Demo/**" /> + <exclude name="main/Tools/**" /> </fileset> </zip> </target> @@ -106,6 +164,11 @@ <include name="**/*.properties" /> <include name="**/*.swc" /> <exclude name="ane/**" /> + <exclude name="main/ASDocExamples/**" /> + <exclude name="main/Automation/**" /> + <exclude name="main/Data/**" /> + <exclude name="main/Demo/**" /> + <exclude name="main/Tools/**" /> </tarfileset> </tar> </target> @@ -127,6 +190,11 @@ <include name="**/*.properties" /> <include name="**/*.swc" /> <exclude name="ane/**" /> + <exclude name="main/ASDocExamples/**" /> + <exclude name="main/Automation/**" /> + <exclude name="main/Data/**" /> + <exclude name="main/Demo/**" /> + <exclude name="main/Tools/**" /> </fileset> </zip> </target> @@ -135,5 +203,6 @@ <delete> <fileset dir="${basedir}" includes="**/*.swf" /> </delete> + <delete dir="${basedir}/out"/> </target> </project> \ No newline at end of file