move ant_on_air into flex-installer
Project: http://git-wip-us.apache.org/repos/asf/flex-utilities/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-utilities/commit/f954e6f6 Tree: http://git-wip-us.apache.org/repos/asf/flex-utilities/tree/f954e6f6 Diff: http://git-wip-us.apache.org/repos/asf/flex-utilities/diff/f954e6f6 Branch: refs/heads/develop Commit: f954e6f6a27dfd3c1d537c0d886a788b5d23c6c7 Parents: aaf8896 Author: Alex Harui <[email protected]> Authored: Sun Jun 14 23:04:39 2015 -0700 Committer: Alex Harui <[email protected]> Committed: Sun Jun 14 23:04:39 2015 -0700 ---------------------------------------------------------------------- ant_on_air/build.properties | 24 - ant_on_air/build.xml | 208 -- ant_on_air/locale/en_AU/ant.properties | 27 - ant_on_air/locale/en_GB/ant.properties | 27 - ant_on_air/locale/en_US/ant.properties | 27 - ant_on_air/src/AntClasses.as | 68 - ant_on_air/src/org/apache/flex/ant/Ant.as | 251 --- ant_on_air/src/org/apache/flex/ant/tags/And.as | 61 - .../src/org/apache/flex/ant/tags/AntCall.as | 80 - .../src/org/apache/flex/ant/tags/AntTask.as | 140 -- ant_on_air/src/org/apache/flex/ant/tags/Arg.as | 45 - .../src/org/apache/flex/ant/tags/Available.as | 99 - .../src/org/apache/flex/ant/tags/Checksum.as | 218 --- .../src/org/apache/flex/ant/tags/Condition.as | 78 - .../src/org/apache/flex/ant/tags/Contains.as | 58 - ant_on_air/src/org/apache/flex/ant/tags/Copy.as | 253 --- .../src/org/apache/flex/ant/tags/Delete.as | 137 -- ant_on_air/src/org/apache/flex/ant/tags/Echo.as | 93 - .../src/org/apache/flex/ant/tags/Entry.as | 50 - .../src/org/apache/flex/ant/tags/Equals.as | 80 - ant_on_air/src/org/apache/flex/ant/tags/Exec.as | 161 -- ant_on_air/src/org/apache/flex/ant/tags/Fail.as | 78 - .../src/org/apache/flex/ant/tags/FileSet.as | 81 - .../org/apache/flex/ant/tags/FileSetExclude.as | 40 - .../org/apache/flex/ant/tags/FileSetInclude.as | 40 - ant_on_air/src/org/apache/flex/ant/tags/Get.as | 265 --- .../src/org/apache/flex/ant/tags/GlobMapper.as | 50 - .../org/apache/flex/ant/tags/HasFreeSpace.as | 70 - .../src/org/apache/flex/ant/tags/Input.as | 96 - .../src/org/apache/flex/ant/tags/IsFalse.as | 53 - .../src/org/apache/flex/ant/tags/IsReference.as | 54 - .../src/org/apache/flex/ant/tags/IsSet.as | 54 - .../src/org/apache/flex/ant/tags/IsTrue.as | 53 - .../org/apache/flex/ant/tags/LoadProperties.as | 95 - .../src/org/apache/flex/ant/tags/Matches.as | 62 - .../src/org/apache/flex/ant/tags/Mkdir.as | 77 - ant_on_air/src/org/apache/flex/ant/tags/Move.as | 237 --- ant_on_air/src/org/apache/flex/ant/tags/Not.as | 57 - ant_on_air/src/org/apache/flex/ant/tags/OS.as | 57 - ant_on_air/src/org/apache/flex/ant/tags/Or.as | 65 - .../src/org/apache/flex/ant/tags/Param.as | 50 - .../src/org/apache/flex/ant/tags/PatternSet.as | 96 - .../src/org/apache/flex/ant/tags/Project.as | 241 --- .../src/org/apache/flex/ant/tags/Property.as | 234 --- .../org/apache/flex/ant/tags/PropertyFile.as | 84 - .../src/org/apache/flex/ant/tags/Replace.as | 142 -- .../org/apache/flex/ant/tags/ReplaceFilter.as | 50 - .../org/apache/flex/ant/tags/ReplaceToken.as | 44 - .../org/apache/flex/ant/tags/ReplaceValue.as | 44 - .../src/org/apache/flex/ant/tags/TStamp.as | 68 - .../src/org/apache/flex/ant/tags/Target.as | 203 -- .../src/org/apache/flex/ant/tags/Touch.as | 79 - .../src/org/apache/flex/ant/tags/Untar.as | 194 -- .../src/org/apache/flex/ant/tags/Unzip.as | 214 --- .../src/org/apache/flex/ant/tags/XmlProperty.as | 118 -- .../flex/ant/tags/filesetClasses/Character.as | 34 - .../ant/tags/filesetClasses/CollectionUtils.as | 41 - .../flex/ant/tags/filesetClasses/DataType.as | 330 ---- .../ant/tags/filesetClasses/DirectoryScanner.as | 1773 ------------------ .../ant/tags/filesetClasses/FileProvider.as | 27 - .../ant/tags/filesetClasses/FileResource.as | 146 -- .../ant/tags/filesetClasses/FileSelector.as | 27 - .../flex/ant/tags/filesetClasses/FileUtils.as | 657 ------- .../ant/tags/filesetClasses/PathTokenizer.as | 118 -- .../flex/ant/tags/filesetClasses/Reference.as | 106 -- .../flex/ant/tags/filesetClasses/Resource.as | 349 ---- .../ant/tags/filesetClasses/SelectorUtils.as | 638 ------- .../ant/tags/filesetClasses/StringTokenizer.as | 74 - .../ant/tags/filesetClasses/TokenizedPath.as | 221 --- .../ant/tags/filesetClasses/TokenizedPattern.as | 173 -- .../filesetClasses/exceptions/BuildException.as | 28 - .../filesetClasses/exceptions/IOException.as | 28 - .../exceptions/IllegalStateException.as | 28 - .../exceptions/UnsupportedOperationException.as | 28 - .../tags/supportClasses/FileSetTaskHandler.as | 166 -- .../ant/tags/supportClasses/IValueTagHandler.as | 36 - .../ant/tags/supportClasses/NamedTagHandler.as | 39 - .../ant/tags/supportClasses/ParentTagHandler.as | 57 - .../flex/ant/tags/supportClasses/TagHandler.as | 86 - .../flex/ant/tags/supportClasses/TaskHandler.as | 60 - .../src/org/apache/flex/crypto/MD5Stream.as | 468 ----- .../org/apache/flex/xml/IParentTagHandler.as | 51 - .../src/org/apache/flex/xml/ITagHandler.as | 33 - .../src/org/apache/flex/xml/ITextTagHandler.as | 29 - .../src/org/apache/flex/xml/XMLTagProcessor.as | 86 - ant_on_air/tests/AntOnAir-app.xml | 251 --- ant_on_air/tests/AntOnAir.mxml | 165 -- ant_on_air/tests/TestTarget-app.xml | 251 --- ant_on_air/tests/TestTarget.as | 68 - ant_on_air/tests/copyfilesetofone.xml | 35 - ant_on_air/tests/failsubant.xml | 49 - ant_on_air/tests/failtest.xml | 57 - ant_on_air/tests/freespace.xml | 72 - ant_on_air/tests/mirrortest.xml | 76 - ant_on_air/tests/redirect.xml | 28 - ant_on_air/tests/subant.xml | 130 -- ant_on_air/tests/test.properties | 24 - ant_on_air/tests/test.xml | 389 ---- ant_on_air/tests/test_data.xml | 42 - ant_on_air/tests/testpropertiesfile.xml | 58 - flex-installer/ant_on_air/build.properties | 24 + flex-installer/ant_on_air/build.xml | 208 ++ .../ant_on_air/locale/en_AU/ant.properties | 27 + .../ant_on_air/locale/en_GB/ant.properties | 27 + .../ant_on_air/locale/en_US/ant.properties | 27 + flex-installer/ant_on_air/src/AntClasses.as | 68 + .../ant_on_air/src/org/apache/flex/ant/Ant.as | 251 +++ .../src/org/apache/flex/ant/tags/And.as | 61 + .../src/org/apache/flex/ant/tags/AntCall.as | 80 + .../src/org/apache/flex/ant/tags/AntTask.as | 140 ++ .../src/org/apache/flex/ant/tags/Arg.as | 45 + .../src/org/apache/flex/ant/tags/Available.as | 99 + .../src/org/apache/flex/ant/tags/Checksum.as | 218 +++ .../src/org/apache/flex/ant/tags/Condition.as | 78 + .../src/org/apache/flex/ant/tags/Contains.as | 58 + .../src/org/apache/flex/ant/tags/Copy.as | 253 +++ .../src/org/apache/flex/ant/tags/Delete.as | 137 ++ .../src/org/apache/flex/ant/tags/Echo.as | 93 + .../src/org/apache/flex/ant/tags/Entry.as | 50 + .../src/org/apache/flex/ant/tags/Equals.as | 80 + .../src/org/apache/flex/ant/tags/Exec.as | 161 ++ .../src/org/apache/flex/ant/tags/Fail.as | 78 + .../src/org/apache/flex/ant/tags/FileSet.as | 81 + .../org/apache/flex/ant/tags/FileSetExclude.as | 40 + .../org/apache/flex/ant/tags/FileSetInclude.as | 40 + .../src/org/apache/flex/ant/tags/Get.as | 265 +++ .../src/org/apache/flex/ant/tags/GlobMapper.as | 50 + .../org/apache/flex/ant/tags/HasFreeSpace.as | 70 + .../src/org/apache/flex/ant/tags/Input.as | 96 + .../src/org/apache/flex/ant/tags/IsFalse.as | 53 + .../src/org/apache/flex/ant/tags/IsReference.as | 54 + .../src/org/apache/flex/ant/tags/IsSet.as | 54 + .../src/org/apache/flex/ant/tags/IsTrue.as | 53 + .../org/apache/flex/ant/tags/LoadProperties.as | 95 + .../src/org/apache/flex/ant/tags/Matches.as | 62 + .../src/org/apache/flex/ant/tags/Mkdir.as | 77 + .../src/org/apache/flex/ant/tags/Move.as | 237 +++ .../src/org/apache/flex/ant/tags/Not.as | 57 + .../src/org/apache/flex/ant/tags/OS.as | 57 + .../src/org/apache/flex/ant/tags/Or.as | 65 + .../src/org/apache/flex/ant/tags/Param.as | 50 + .../src/org/apache/flex/ant/tags/PatternSet.as | 96 + .../src/org/apache/flex/ant/tags/Project.as | 241 +++ .../src/org/apache/flex/ant/tags/Property.as | 234 +++ .../org/apache/flex/ant/tags/PropertyFile.as | 84 + .../src/org/apache/flex/ant/tags/Replace.as | 142 ++ .../org/apache/flex/ant/tags/ReplaceFilter.as | 50 + .../org/apache/flex/ant/tags/ReplaceToken.as | 44 + .../org/apache/flex/ant/tags/ReplaceValue.as | 44 + .../src/org/apache/flex/ant/tags/TStamp.as | 68 + .../src/org/apache/flex/ant/tags/Target.as | 203 ++ .../src/org/apache/flex/ant/tags/Touch.as | 79 + .../src/org/apache/flex/ant/tags/Untar.as | 194 ++ .../src/org/apache/flex/ant/tags/Unzip.as | 214 +++ .../src/org/apache/flex/ant/tags/XmlProperty.as | 118 ++ .../flex/ant/tags/filesetClasses/Character.as | 34 + .../ant/tags/filesetClasses/CollectionUtils.as | 41 + .../flex/ant/tags/filesetClasses/DataType.as | 330 ++++ .../ant/tags/filesetClasses/DirectoryScanner.as | 1773 ++++++++++++++++++ .../ant/tags/filesetClasses/FileProvider.as | 27 + .../ant/tags/filesetClasses/FileResource.as | 146 ++ .../ant/tags/filesetClasses/FileSelector.as | 27 + .../flex/ant/tags/filesetClasses/FileUtils.as | 657 +++++++ .../ant/tags/filesetClasses/PathTokenizer.as | 118 ++ .../flex/ant/tags/filesetClasses/Reference.as | 106 ++ .../flex/ant/tags/filesetClasses/Resource.as | 349 ++++ .../ant/tags/filesetClasses/SelectorUtils.as | 638 +++++++ .../ant/tags/filesetClasses/StringTokenizer.as | 74 + .../ant/tags/filesetClasses/TokenizedPath.as | 221 +++ .../ant/tags/filesetClasses/TokenizedPattern.as | 173 ++ .../filesetClasses/exceptions/BuildException.as | 28 + .../filesetClasses/exceptions/IOException.as | 28 + .../exceptions/IllegalStateException.as | 28 + .../exceptions/UnsupportedOperationException.as | 28 + .../tags/supportClasses/FileSetTaskHandler.as | 166 ++ .../ant/tags/supportClasses/IValueTagHandler.as | 36 + .../ant/tags/supportClasses/NamedTagHandler.as | 39 + .../ant/tags/supportClasses/ParentTagHandler.as | 57 + .../flex/ant/tags/supportClasses/TagHandler.as | 86 + .../flex/ant/tags/supportClasses/TaskHandler.as | 60 + .../src/org/apache/flex/crypto/MD5Stream.as | 468 +++++ .../org/apache/flex/xml/IParentTagHandler.as | 51 + .../src/org/apache/flex/xml/ITagHandler.as | 33 + .../src/org/apache/flex/xml/ITextTagHandler.as | 29 + .../src/org/apache/flex/xml/XMLTagProcessor.as | 86 + .../ant_on_air/tests/AntOnAir-app.xml | 251 +++ flex-installer/ant_on_air/tests/AntOnAir.mxml | 165 ++ .../ant_on_air/tests/TestTarget-app.xml | 251 +++ flex-installer/ant_on_air/tests/TestTarget.as | 68 + .../ant_on_air/tests/copyfilesetofone.xml | 35 + flex-installer/ant_on_air/tests/failsubant.xml | 49 + flex-installer/ant_on_air/tests/failtest.xml | 57 + flex-installer/ant_on_air/tests/freespace.xml | 72 + flex-installer/ant_on_air/tests/mirrortest.xml | 76 + flex-installer/ant_on_air/tests/redirect.xml | 28 + flex-installer/ant_on_air/tests/subant.xml | 130 ++ flex-installer/ant_on_air/tests/test.properties | 24 + flex-installer/ant_on_air/tests/test.xml | 389 ++++ flex-installer/ant_on_air/tests/test_data.xml | 42 + .../ant_on_air/tests/testpropertiesfile.xml | 58 + 200 files changed, 13262 insertions(+), 13262 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/f954e6f6/ant_on_air/build.properties ---------------------------------------------------------------------- diff --git a/ant_on_air/build.properties b/ant_on_air/build.properties deleted file mode 100644 index 5fa1580..0000000 --- a/ant_on_air/build.properties +++ /dev/null @@ -1,24 +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. - ---> - -LIBRARY_DIR=bin -LIBRARY_NAME=ant_on_air -SOURCE_DIR=src -DEBUG_FLAG=true \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/f954e6f6/ant_on_air/build.xml ---------------------------------------------------------------------- diff --git a/ant_on_air/build.xml b/ant_on_air/build.xml deleted file mode 100644 index 5c74d04..0000000 --- a/ant_on_air/build.xml +++ /dev/null @@ -1,208 +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. - ---> - -<project name="ant_on_air" basedir="." default="main"> - - <!--load environment variables prefixed with env --> - <property environment="env"/> - - <!--location of property file --> - <property file="${basedir}/build.properties" description="Properties for Ant On AIR project" /> - - <!-- - Properties are immutable so value frozen first time property is set. - If FLEX_HOME is not set with -DFLEX_HOME=/path/to/flex/sdk on the ant command line - use the environment variable, if it exists. Else if windows, use FLEX_HOME_WIN - else use FLEX_HOME_MAC, which are both defined in build.properties. - --> - <condition property="FLEX_HOME" value="${env.FLEX_HOME}"> - <isset property="env.FLEX_HOME" /> - </condition> - - <!-- - Properties are immutable so value frozen first time property is set. - If AIR_HOME is not set on the command line with -DAIR_HOME=/path/to/air/sdk on the - ant command line use the environment variable, if it exists. Else if windows, use - AIR_HOME_WIN else use AIR_HOME_MAC, which are both defined in build.properties. - --> - <condition property="AIR_HOME" value="${env.AIR_HOME}"> - <isset property="env.AIR_HOME" /> - </condition> - - <condition property="adl" value="adl.exe"> - <os family="windows"/> - </condition> - - <condition property="adl" value="adl"> - <os family="mac"/> - </condition> - - <condition property="runtime" value="win"> - <os family="windows"/> - </condition> - - <condition property="runtime" value="mac"> - <os family="mac"/> - </condition> - - <!-- additional tasks - mxmlc tag --> - <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="main" depends="init,third-party,compile,test" /> - - <target name="build" depends="init,compile" - description="Compiles SWC"/> - - <target name="init" depends="clean" - description="Creates the deploy folders and sets app extension"> - </target> - - <target name="third-party" depends="get-as3commons.swc" description="downloads 3rd-party files"> - <mkdir dir="${basedir}/external/de/ketzler/utils" /> - <get src="http://as3-simple-untar.googlecode.com/svn/trunk/src/de/ketzler/utils/SimpleUntar.as" dest="${basedir}/external/de/ketzler/utils/SimpleUntar.as" skipexisting="true" /> - <mkdir dir="${basedir}/external/de/ketzler/utils/untar" /> - <get src="http://as3-simple-untar.googlecode.com/svn/trunk/src/de/ketzler/utils/untar/UntarFileInfo.as" dest="${basedir}/external/de/ketzler/utils/untar/UntarFileInfo.as" skipexisting="true" /> - <get src="http://as3-simple-untar.googlecode.com/svn/trunk/src/de/ketzler/utils/untar/UntarHeaderBlock.as" dest="${basedir}/external/de/ketzler/utils/untar/UntarHeaderBlock.as" skipexisting="true" /> - <mkdir dir="${basedir}/external/com/probertson/utils" /> - <get src="http://ascompress.googlecode.com/svn/trunk/src/com/probertson/utils/CRC32Generator.as" dest="${basedir}/external/com/probertson/utils/CRC32Generator.as" skipexisting="true" /> - <get src="http://ascompress.googlecode.com/svn/trunk/src/com/probertson/utils/GZIPBytesEncoder.as" dest="${basedir}/external/com/probertson/utils/GZIPBytesEncoder.as" skipexisting="true" /> - <get src="http://ascompress.googlecode.com/svn/trunk/src/com/probertson/utils/GZIPEncoder.as" dest="${basedir}/external/com/probertson/utils/GZIPEncoder.as" skipexisting="true" /> - <get src="http://ascompress.googlecode.com/svn/trunk/src/com/probertson/utils/GZIPFile.as" dest="${basedir}/external/com/probertson/utils/GZIPFile.as" skipexisting="true" /> - </target> - - <target name="check-as3commons.swc"> - <available file="${basedir}/external/libs/as3commons-zip-1.0.0-alpha.1.swc" property="as3commons.swc.present"/> - </target> - - <!-- This has a BSD license which is a reciprocal license with the Apache v2 license. --> - <target name="get-as3commons.swc" depends="check-as3commons.swc" unless="as3commons.swc.present" - description="Download as3commons.swc and fail if checksum mismatch."> - <mkdir dir="${basedir}/external/libs"/> - <get src="http://projects.yoolab.org/maven/content/repositories/releases/org/as3commons/as3commons-zip/1.0.0-alpha.1/as3commons-zip-1.0.0-alpha.1.swc" - dest="${basedir}/external/libs/as3commons-zip-1.0.0-alpha.1.swc" - verbose="true"/> - <get src="http://projects.yoolab.org/maven/content/repositories/releases/org/as3commons/as3commons-zip/1.0.0-alpha.1/as3commons-zip-1.0.0-alpha.1.swc.md5" - dest="${basedir}/external/libs/as3commons-zip-1.0.0-alpha.1.swc.md5" - verbose="true"/> - <checksum file="${basedir}/external/libs/as3commons-zip-1.0.0-alpha.1.swc" algorithm="md5" verifyProperty="isMD5ok"/> - <delete file="${basedir}/external/libs/as3commons-zip-1.0.0-alpha.1.swc.md5" failOnError="false"/> - <fail message="Checksum failure for ${basedir}/external/libs/as3commons-zip-1.0.0-alpha.1.swc"> - <condition> - <isfalse value="${isMD5ok}"/> - </condition> - </fail> - </target> - - <target name="third-party-clean" description="Cleans up 3rd-party files."> - <delete dir="${basedir}/external" failOnError="false" includeEmptyDirs="true" /> - </target> - - <target name="clean" description="Cleans up old files."> - <delete dir="${LIBRARY_DIR}" failOnError="false" includeEmptyDirs="true" /> - </target> - - <target name="compile" - description="Compiles the SWC."> - <compc - output="${LIBRARY_DIR}/${LIBRARY_NAME}.swc" - swf-version="23" - debug="${DEBUG_FLAG}" - failonerror="true" - fork="true" - maxmemory="512m"> - <source-path path-element="${SOURCE_DIR}"/> - <source-path path-element="${basedir}/locale/{locale}"/> - <source-path path-element="${basedir}/external"/> - <load-config filename="${FLEX_HOME}/frameworks/air-config.xml"/> - <external-library-path file="${AIR_HOME}/frameworks/libs/air/airglobal.swc" append="true"/> - <external-library-path file="${basedir}/external/libs" append="true"/> - <include-classes>AntClasses</include-classes> - - </compc> - </target> - - <target name="test" > - <!-- TestTarget is probably obsolete - <mxmlc file="${basedir}/tests/TestTarget.as" - output="${basedir}/tests/TestTarget.swf" - debug="${DEBUG_FLAG}" - failonerror="true" - fork="true" - maxmemory="512m"> - <load-config filename="${FLEX_HOME}/frameworks/air-config.xml"/> - <source-path path-element="${SOURCE_DIR}"/> - </mxmlc> - --> - <mxmlc file="${basedir}/tests/AntOnAir.mxml" - output="${basedir}/tests/AntOnAir.swf" - debug="${DEBUG_FLAG}" - swf-version="23" - failonerror="true" - fork="true" - maxmemory="512m"> - <load-config filename="${FLEX_HOME}/frameworks/air-config.xml"/> - <source-path path-element="${basedir}/locale/{locale}"/> - <library-path file="${LIBRARY_DIR}/${LIBRARY_NAME}.swc" append="true"/> - <library-path file="${basedir}/external/libs" append="true"/> - </mxmlc> - <delete dir="${basedir}/tests/temp" failonerror="false" /> - <exec executable="${AIR_HOME}/bin/${adl}" dir="${basedir}/tests" failonerror="true"> - <arg value="-runtime" /> - <arg value="${AIR_HOME}/runtimes/air/${runtime}" /> - <arg value="${basedir}/tests/AntOnAir-app.xml" /> - <arg value="--" /> - <arg value="-f ${basedir}/tests/test.xml" /> - <arg value="-Dexitwhendone" /> - <arg value="test" /> - </exec> - <antcall target="failuretests" /> - </target> - - <target name="failuretests" > - <exec executable="${AIR_HOME}/bin/${adl}" dir="${basedir}/tests" failonerror="true"> - <arg value="-runtime" /> - <arg value="${AIR_HOME}/runtimes/air/${runtime}" /> - <arg value="${basedir}/tests/AntOnAir-app.xml" /> - <arg value="--" /> - <arg value="-f ${basedir}/tests/failtest.xml" /> - <arg value="-Dexitwhendone" /> - <arg value="-Dexpectfailure" /> - <arg value="test" /> - </exec> - </target> - - <target name="debug-test" > - <delete dir="${basedir}/tests/temp" failonerror="false" /> - <exec executable="${AIR_HOME}/bin/${adl}" dir="${basedir}/tests" failonerror="true"> - <arg value="-runtime" /> - <arg value="${AIR_HOME}/runtimes/air/${runtime}" /> - <arg value="${basedir}/tests/AntOnAir-app.xml" /> - <arg value="--" /> - <arg value="-f ${basedir}/tests/test.xml" /> - <arg value="test" /> - </exec> - </target> -</project> http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/f954e6f6/ant_on_air/locale/en_AU/ant.properties ---------------------------------------------------------------------- diff --git a/ant_on_air/locale/en_AU/ant.properties b/ant_on_air/locale/en_AU/ant.properties deleted file mode 100644 index 86870a2..0000000 --- a/ant_on_air/locale/en_AU/ant.properties +++ /dev/null @@ -1,27 +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. - -MKDIR=Created ya dir mate %1 -COPY=Copying ya %1 file to %2 -COPYFILES=Copying ya %1 files to %2 -MOVE=Moving ya %1 file to %2 -MOVEFILES=Moving ya %1 files to %2 -DELETEFILE=Pissing off ya file %1 -DELETEDIR=Pissing off ya directory %1 -GETTING=Getting %1 -GETTO=To %1 -TOUCH=Creating %1 -UNZIP=Expanding %1 into %2 - http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/f954e6f6/ant_on_air/locale/en_GB/ant.properties ---------------------------------------------------------------------- diff --git a/ant_on_air/locale/en_GB/ant.properties b/ant_on_air/locale/en_GB/ant.properties deleted file mode 100644 index 6b5deaf..0000000 --- a/ant_on_air/locale/en_GB/ant.properties +++ /dev/null @@ -1,27 +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. - -MKDIR=Created directory %1 -COPY=Copying %1 file to %2 -COPYFILES=Copying %1 files to %2 -MOVE=Moving %1 file to %2 -MOVEFILES=Moving %1 files to %2 -DELETEFILE=Deleting file %1 -DELETEDIR=Deleting directory %1 -GETTING=Getting %1 -GETTO=To %1 -TOUCH=Creating %1 -UNZIP=Expanding %1 into %2 - http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/f954e6f6/ant_on_air/locale/en_US/ant.properties ---------------------------------------------------------------------- diff --git a/ant_on_air/locale/en_US/ant.properties b/ant_on_air/locale/en_US/ant.properties deleted file mode 100644 index 6b5deaf..0000000 --- a/ant_on_air/locale/en_US/ant.properties +++ /dev/null @@ -1,27 +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. - -MKDIR=Created directory %1 -COPY=Copying %1 file to %2 -COPYFILES=Copying %1 files to %2 -MOVE=Moving %1 file to %2 -MOVEFILES=Moving %1 files to %2 -DELETEFILE=Deleting file %1 -DELETEDIR=Deleting directory %1 -GETTING=Getting %1 -GETTO=To %1 -TOUCH=Creating %1 -UNZIP=Expanding %1 into %2 - http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/f954e6f6/ant_on_air/src/AntClasses.as ---------------------------------------------------------------------- diff --git a/ant_on_air/src/AntClasses.as b/ant_on_air/src/AntClasses.as deleted file mode 100644 index aa60c73..0000000 --- a/ant_on_air/src/AntClasses.as +++ /dev/null @@ -1,68 +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 -{ - public class AntClasses - { - public function AntClasses() - { - import org.apache.flex.ant.Ant; Ant; - import org.apache.flex.ant.tags.Project; Project; - import org.apache.flex.ant.tags.And; And; - import org.apache.flex.ant.tags.AntTask; AntTask; - import org.apache.flex.ant.tags.AntCall; AntCall; - import org.apache.flex.ant.tags.Available; Available; - import org.apache.flex.ant.tags.Checksum; Checksum; - import org.apache.flex.ant.tags.Condition; Condition; - import org.apache.flex.ant.tags.Contains; Contains; - import org.apache.flex.ant.tags.Copy; Copy; - import org.apache.flex.ant.tags.Delete; Delete; - import org.apache.flex.ant.tags.Echo; Echo; - import org.apache.flex.ant.tags.Equals; Equals; - import org.apache.flex.ant.tags.Exec; Exec; - import org.apache.flex.ant.tags.Fail; Fail; - import org.apache.flex.ant.tags.FileSet; FileSet; - import org.apache.flex.ant.tags.FileSetExclude; FileSetExclude; - import org.apache.flex.ant.tags.FileSetInclude; FileSetInclude; - import org.apache.flex.ant.tags.Get; Get; - import org.apache.flex.ant.tags.HasFreeSpace; HasFreeSpace; - import org.apache.flex.ant.tags.Input; Input; - import org.apache.flex.ant.tags.IsFalse; IsFalse; - import org.apache.flex.ant.tags.IsReference; IsReference; - import org.apache.flex.ant.tags.IsSet; IsSet; - import org.apache.flex.ant.tags.IsTrue; IsTrue; - import org.apache.flex.ant.tags.LoadProperties; LoadProperties; - import org.apache.flex.ant.tags.Matches; Matches; - import org.apache.flex.ant.tags.Mkdir; Mkdir; - import org.apache.flex.ant.tags.Move; Move; - import org.apache.flex.ant.tags.Not; Not; - import org.apache.flex.ant.tags.Or; Or; - import org.apache.flex.ant.tags.OS; OS; - import org.apache.flex.ant.tags.Param; Param; - import org.apache.flex.ant.tags.Property; Property; - import org.apache.flex.ant.tags.PropertyFile; PropertyFile; - import org.apache.flex.ant.tags.Replace; Replace; - import org.apache.flex.ant.tags.Touch; Touch; - import org.apache.flex.ant.tags.TStamp; TStamp; - import org.apache.flex.ant.tags.Untar; Untar; - import org.apache.flex.ant.tags.Unzip; Unzip; - import org.apache.flex.ant.tags.XmlProperty; XmlProperty; - } - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/f954e6f6/ant_on_air/src/org/apache/flex/ant/Ant.as ---------------------------------------------------------------------- diff --git a/ant_on_air/src/org/apache/flex/ant/Ant.as b/ant_on_air/src/org/apache/flex/ant/Ant.as deleted file mode 100644 index 42bb4f9..0000000 --- a/ant_on_air/src/org/apache/flex/ant/Ant.as +++ /dev/null @@ -1,251 +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 org.apache.flex.ant -{ - - import flash.events.Event; - import flash.filesystem.File; - import flash.filesystem.FileMode; - import flash.filesystem.FileStream; - - import org.apache.flex.ant.tags.Project; - import org.apache.flex.xml.XMLTagProcessor; - - /** - * An XMLTagProcessor that tries to emulate Apache Ant - */ - public class Ant extends XMLTagProcessor - { - /** - * Constructor - */ - public function Ant() - { - super(); - ant = this; - } - - /** - * @private - * The file being processed. Used to determine basedir. - */ - private var file:File; - - /** - * Open a file, read the XML, create ITagHandlers for every tag, then process them. - * When finished, check the project's status property. If it is true then all - * tasks completed successfully - * @param file File The file to open. - * @param context Object An object containing an optional targets property listing the targets to run. - * @return true if XML file was processed synchronously. If false, then add listener for Event.COMPLETE. - */ - public function processXMLFile(file:File, context:Object = null, callbackMode:Boolean = true):Boolean - { - Ant.ants.push(this); - this.file = file; - var fs:FileStream = new FileStream(); - fs.open(file, FileMode.READ); - var s:String = fs.readUTFBytes(fs.bytesAvailable); - var xml:XML = XML(s); - fs.close(); - - tagMap = antTagProcessors; - if (!context) - context = {}; - this.context = context; - var project:Project = processXMLTag(xml) as Project; - var basedir:String = project.basedir; - if (basedir == "") - basedir = "."; - try { - basedir = file.parent.resolvePath(basedir).nativePath; - } - catch (e:Error) - { - ant.output(basedir); - ant.output(e.message); - ant.project.failureMessage = e.message; - ant.project.status = false; - return true; - } - - context.basedir = basedir; - this.project = project; - if (!project.execute(callbackMode, context)) - { - project.addEventListener(Event.COMPLETE, completeHandler); - return false; - } - if (Ant.ants.length > 1) - { - var status:Boolean = ant.project.status; - var failureMessage:String = ant.project.failureMessage; - Ant.ants.pop(); - if (!status) - { - currentAnt.project.status = status; - currentAnt.project.failureMessage = failureMessage; - } - } - return true; - } - - private var _functionToCall:Function; - - /** - * Set by various classes to defer processing in callbackMode - */ - public function set functionToCall(value:Function):void - { - if (parentAnt) - parentAnt.functionToCall = value; - else - _functionToCall = value; - } - - public function get functionToCall():Function - { - return _functionToCall; - } - - /** - * If you set callbackMode = true, you must call this method until you receive - * the Event.COMPLETE - */ - public function doCallback():void - { - if (functionToCall != null) - { - var f:Function = functionToCall; - functionToCall = null; - f(); - } - } - - /** - * the instance of the class dispatching progress events - */ - public var progressClass:Object; - - private var context:Object; - public var parentAnt:Ant; - public var ant:Ant; - public var project:Project; - - // the stack of ant instances (ant can call <ant/>) - public static var ants:Array = []; - - public static function get currentAnt():Ant - { - if (ants.length == 0) - return null; - return ants[ants.length - 1] as Ant; - } - - private function completeHandler(event:Event):void - { - if (Ant.ants.length > 1) - { - var status:Boolean = ant.project.status; - var failureMessage:String = ant.project.failureMessage; - Ant.ants.pop(); - if (!status) - { - currentAnt.project.status = status; - currentAnt.project.failureMessage = failureMessage; - } - } - event.target.removeEventListener(Event.COMPLETE, completeHandler); - dispatchEvent(event); - } - - /** - * The map of XML tags to classes - */ - public static var antTagProcessors:Object = {}; - - /** - * Adds a class to the map. - * - * @param tagQName String The QName.toString() of the tag - * @param processor Class The class that will process the tag. - */ - public static function addTagProcessor(tagQName:String, processor:Class):void - { - antTagProcessors[tagQName] = processor; - } - - /** - * Does string replacements based on properties in the context object. - * - * @param input String The input string. - * @param context Object The object of property values. - * @return String The input string with replaced values. - */ - public function getValue(input:String, context:Object):String - { - var i:int = input.indexOf("${"); - while (i != -1) - { - if (i == 0 || (i > 0 && input.charAt(i - 1) != "$")) - { - var c:int = input.indexOf("}", i); - if (c != -1) - { - var token:String = input.substring(i + 2, c); - if (context.hasOwnProperty(token)) - { - var rep:String = context[token]; - input = input.replace("${" + token + "}", rep); - i += rep.length - token.length - 3; - } - } - } - else if (i > 0 && input.charAt(i - 1) == "$") - { - input = input.substring(0, i - 1) + input.substring(i); - i++; - } - i++; - i = input.indexOf("${", i); - } - return input; - } - - public static const spaces:String = " "; - - public function formatOutput(tag:String, data:String):String - { - var s:String = spaces.substr(0, Math.max(spaces.length - tag.length - 2, 0)) + - "[" + tag + "] " + data; - return s; - } - - public static function log(s:String, level:int):void - { - currentAnt.output(s); - } - - /** - * Output for Echo. Defaults to trace(). - */ - public var output:Function = function(s:String):void { trace(s) }; - - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/f954e6f6/ant_on_air/src/org/apache/flex/ant/tags/And.as ---------------------------------------------------------------------- diff --git a/ant_on_air/src/org/apache/flex/ant/tags/And.as b/ant_on_air/src/org/apache/flex/ant/tags/And.as deleted file mode 100644 index 04c97c7..0000000 --- a/ant_on_air/src/org/apache/flex/ant/tags/And.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 org.apache.flex.ant.tags -{ - import mx.core.IFlexModuleFactory; - - import org.apache.flex.ant.Ant; - import org.apache.flex.ant.tags.supportClasses.IValueTagHandler; - import org.apache.flex.ant.tags.supportClasses.ParentTagHandler; - - [Mixin] - public class And extends ParentTagHandler implements IValueTagHandler - { - public static function init(mf:IFlexModuleFactory):void - { - Ant.antTagProcessors["and"] = And; - } - - public function And() - { - super(); - } - - public function getValue(context:Object):Object - { - ant.processChildren(xml, this); - if (numChildren > 0) - { - var n:int = numChildren; - for (var i:int = 0; i < n; i++) - { - var value:IValueTagHandler = getChildAt(i) as IValueTagHandler; - // get the value from the children - var val:Object = IValueTagHandler(value).getValue(context); - if (!(val == "true" || val == true)) - { - return false; - } - } - return true; - } - return false; - } - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/f954e6f6/ant_on_air/src/org/apache/flex/ant/tags/AntCall.as ---------------------------------------------------------------------- diff --git a/ant_on_air/src/org/apache/flex/ant/tags/AntCall.as b/ant_on_air/src/org/apache/flex/ant/tags/AntCall.as deleted file mode 100644 index 6539260..0000000 --- a/ant_on_air/src/org/apache/flex/ant/tags/AntCall.as +++ /dev/null @@ -1,80 +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 org.apache.flex.ant.tags -{ - import flash.events.Event; - - import mx.core.IFlexModuleFactory; - - import org.apache.flex.ant.Ant; - import org.apache.flex.ant.tags.supportClasses.TaskHandler; - - [Mixin] - public class AntCall extends TaskHandler - { - public static function init(mf:IFlexModuleFactory):void - { - Ant.antTagProcessors["antcall"] = AntCall; - } - - public function AntCall() - { - super(); - } - - private function get target():String - { - return getAttributeValue("@target"); - } - - override public function execute(callbackMode:Boolean, context:Object):Boolean - { - super.execute(callbackMode, context); - - // I think properties set in the sub-script to not affect the main script - // so clone the properties here - var subContext:Object = {}; - for (var p:String in context) - subContext[p] = context[p]; - - if (numChildren > 0) - { - for (var i:int = 0; i < numChildren; i++) - { - var param:Param = getChildAt(i) as Param; - param.setContext(context); - subContext[param.name] = param.value; - } - } - var t:Target = ant.project.getTarget(target); - if (!t.execute(callbackMode, subContext)) - { - t.addEventListener(Event.COMPLETE, completeHandler); - return false; - } - return true; - } - - private function completeHandler(event:Event):void - { - event.target.removeEventListener(Event.COMPLETE, completeHandler); - dispatchEvent(event); - } - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/f954e6f6/ant_on_air/src/org/apache/flex/ant/tags/AntTask.as ---------------------------------------------------------------------- diff --git a/ant_on_air/src/org/apache/flex/ant/tags/AntTask.as b/ant_on_air/src/org/apache/flex/ant/tags/AntTask.as deleted file mode 100644 index 4c3b8cb..0000000 --- a/ant_on_air/src/org/apache/flex/ant/tags/AntTask.as +++ /dev/null @@ -1,140 +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 org.apache.flex.ant.tags -{ - import flash.events.Event; - import flash.events.KeyboardEvent; - import flash.events.ProgressEvent; - import flash.filesystem.File; - - import mx.core.IFlexModuleFactory; - - import org.apache.flex.ant.Ant; - import org.apache.flex.ant.tags.supportClasses.TaskHandler; - - [Mixin] - public class AntTask extends TaskHandler - { - public static function init(mf:IFlexModuleFactory):void - { - Ant.antTagProcessors["ant"] = AntTask; - } - - public function AntTask() - { - super(); - } - - private function get file():String - { - return getAttributeValue("@antfile"); - } - - private function get dir():String - { - return getAttributeValue("@dir"); - } - - private function get target():String - { - return getAttributeValue("@target"); - } - - private var subant:Ant; - - override public function execute(callbackMode:Boolean, context:Object):Boolean - { - super.execute(callbackMode, context); - - // I think properties set in the sub-script to not affect the main script - // so clone the properties here - var subContext:Object = {}; - for (var p:String in context) - subContext[p] = context[p]; - if (subContext.hasOwnProperty("targets")) - delete subContext["targets"]; - if (target) - subContext["targets"] = target; - - subant = new Ant(); - subant.parentAnt = ant; - subant.output = ant.output; - var file:File = File.applicationDirectory; - try { - file = file.resolvePath(dir + File.separator + this.file); - } - catch (e:Error) - { - ant.output(dir + File.separator + this.file); - ant.output(e.message); - if (failonerror) - { - ant.project.failureMessage = e.message; - ant.project.status = false; - } - return true; - } - - if (!subant.processXMLFile(file, subContext, true)) - { - subant.addEventListener("statusChanged", statusHandler); - subant.addEventListener(Event.COMPLETE, completeHandler); - subant.addEventListener(ProgressEvent.PROGRESS, progressEventHandler); - // redispatch keyboard events off of ant so input task can see them - ant.addEventListener(KeyboardEvent.KEY_DOWN, ant_keyDownHandler); - return false; - } - else - completeHandler(null); - return true; - } - - private function completeHandler(event:Event):void - { - event.target.removeEventListener("statusChanged", statusHandler); - event.target.removeEventListener(Event.COMPLETE, completeHandler); - event.target.removeEventListener(ProgressEvent.PROGRESS, progressEventHandler); - ant.removeEventListener(KeyboardEvent.KEY_DOWN, ant_keyDownHandler); - - dispatchEvent(event); - } - - private function statusHandler(event:Event):void - { - event.target.removeEventListener("statusChanged", statusHandler); - event.target.removeEventListener(Event.COMPLETE, completeHandler); - event.target.removeEventListener(ProgressEvent.PROGRESS, progressEventHandler); - ant.removeEventListener(KeyboardEvent.KEY_DOWN, ant_keyDownHandler); - ant.project.status = subant.project.status; - ant.project.failureMessage = subant.project.failureMessage; - dispatchEvent(new Event(Event.COMPLETE)); - } - - private function progressEventHandler(event:ProgressEvent):void - { - ant.dispatchEvent(event); - } - - private function ant_keyDownHandler(event:KeyboardEvent):void - { - subant.dispatchEvent(event); - } - - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/f954e6f6/ant_on_air/src/org/apache/flex/ant/tags/Arg.as ---------------------------------------------------------------------- diff --git a/ant_on_air/src/org/apache/flex/ant/tags/Arg.as b/ant_on_air/src/org/apache/flex/ant/tags/Arg.as deleted file mode 100644 index 47abb6f..0000000 --- a/ant_on_air/src/org/apache/flex/ant/tags/Arg.as +++ /dev/null @@ -1,45 +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 org.apache.flex.ant.tags -{ - import mx.core.IFlexModuleFactory; - - import org.apache.flex.ant.Ant; - import org.apache.flex.ant.tags.supportClasses.TagHandler; - - [Mixin] - public class Arg extends TagHandler - { - public static function init(mf:IFlexModuleFactory):void - { - Ant.antTagProcessors["arg"] = Arg; - } - - public function Arg() - { - super(); - } - - public function get value():String - { - return getAttributeValue("@value"); - } - - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/f954e6f6/ant_on_air/src/org/apache/flex/ant/tags/Available.as ---------------------------------------------------------------------- diff --git a/ant_on_air/src/org/apache/flex/ant/tags/Available.as b/ant_on_air/src/org/apache/flex/ant/tags/Available.as deleted file mode 100644 index b606b8a..0000000 --- a/ant_on_air/src/org/apache/flex/ant/tags/Available.as +++ /dev/null @@ -1,99 +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 org.apache.flex.ant.tags -{ - import flash.filesystem.File; - - import mx.core.IFlexModuleFactory; - - import org.apache.flex.ant.Ant; - import org.apache.flex.ant.tags.supportClasses.IValueTagHandler; - import org.apache.flex.ant.tags.supportClasses.TaskHandler; - - [Mixin] - public class Available extends TaskHandler implements IValueTagHandler - { - public static function init(mf:IFlexModuleFactory):void - { - Ant.antTagProcessors["available"] = Available; - } - - public function Available() - { - super(); - } - - private function get file():String - { - return getNullOrAttributeValue("@file"); - } - - private function get type():String - { - return getNullOrAttributeValue("@type"); - } - - private function get property():String - { - return getNullOrAttributeValue("@property"); - } - - private function get value():String - { - return getNullOrAttributeValue("@value"); - } - - public function getValue(context:Object):Object - { - this.context = context; - - if (this.file == null) return false; - - try - { - var file:File = new File(this.file); - } - catch (e:Error) - { - return false; - } - - if (!file.exists) - return false; - - if (type == "dir" && !file.isDirectory) - return false; - - return true; - } - - override public function execute(callbackMode:Boolean, context:Object):Boolean - { - super.execute(callbackMode, context); - var avail:Object = getValue(context); - if (avail) - { - if (!context.hasOwnProperty(property)) - context[property] = value != null ? value : true; - } - return true; - } - - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/f954e6f6/ant_on_air/src/org/apache/flex/ant/tags/Checksum.as ---------------------------------------------------------------------- diff --git a/ant_on_air/src/org/apache/flex/ant/tags/Checksum.as b/ant_on_air/src/org/apache/flex/ant/tags/Checksum.as deleted file mode 100644 index 5df7ee7..0000000 --- a/ant_on_air/src/org/apache/flex/ant/tags/Checksum.as +++ /dev/null @@ -1,218 +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 org.apache.flex.ant.tags -{ - import org.apache.flex.crypto.MD5Stream; - - import flash.events.Event; - import flash.events.ProgressEvent; - import flash.filesystem.File; - import flash.filesystem.FileMode; - import flash.filesystem.FileStream; - import flash.utils.ByteArray; - - import mx.core.IFlexModuleFactory; - import mx.utils.StringUtil; - - import org.apache.flex.ant.Ant; - import org.apache.flex.ant.tags.supportClasses.TaskHandler; - - [Mixin] - public class Checksum extends TaskHandler - { - private static var DEFAULT_READBUFFER_SIZE:int = 2 * 1024 * 1024; - - public static function init(mf:IFlexModuleFactory):void - { - Ant.antTagProcessors["checksum"] = Checksum; - } - - public function Checksum() - { - super(); - } - - private function get file():String - { - return getAttributeValue("@file"); - } - - private function get toDir():String - { - return getNullOrAttributeValue("@todir"); - } - - private function get fileExt():String - { - var val:String = getNullOrAttributeValue("@fileext"); - return val == null ? ".md5" : val; - } - - private function get property():String - { - return getNullOrAttributeValue("@property"); - } - - private function get verifyproperty():String - { - return getNullOrAttributeValue("@verifyproperty"); - } - - private function get readbuffersize():int - { - var val:String = getNullOrAttributeValue("@readbuffersize"); - return val == null ? DEFAULT_READBUFFER_SIZE : int(val); - } - - private var md5:MD5Stream; - private var fs:FileStream; - private var totalLength:int; - - override public function execute(callbackMode:Boolean, context:Object):Boolean - { - super.execute(callbackMode, context); - - try { - var f:File = File.applicationDirectory.resolvePath(this.file); - } - catch (e:Error) - { - ant.output(this.file); - ant.output(e.message); - if (failonerror) - { - ant.project.failureMessage = e.message; - ant.project.status = false; - } - dispatchEvent(new Event(Event.COMPLETE)); - return true; - } - - if (!f.exists) - return true; - - fs = new FileStream(); - fs.open(f, FileMode.READ); - totalLength = fs.bytesAvailable; - md5 = new MD5Stream(); - md5.resetFields(); - return getSum(); - } - - private function getSum():Boolean - { - if (fs.bytesAvailable < DEFAULT_READBUFFER_SIZE) - { - sumComplete(); - return true; - } - md5.update(fs, DEFAULT_READBUFFER_SIZE); - ant.functionToCall = getSum; - ant.progressClass = this; - ant.dispatchEvent(new ProgressEvent(ProgressEvent.PROGRESS, false, false, - fs.position, fs.position + fs.bytesAvailable)); - return false; - } - - private var sum:String; - - private function sumComplete():void - { - sum = md5.complete(fs, totalLength); - fs.close(); - if (verifyproperty && property) - { - if (sum == property) - context[verifyproperty] = "true"; - else - context[verifyproperty] = "false"; - } - else if (!toDir && property) - { - context[property] = sum; - } - else - { - var sumFile:File = getSumFile(); - if (sumFile) - { - var fs:FileStream = new FileStream(); - if (verifyproperty) - { - fs.open(sumFile, FileMode.READ); - var expected:String = fs.readUTFBytes(fs.bytesAvailable); - expected = StringUtil.trim(expected); - fs.close(); - if (sum != expected) - context[verifyproperty != null ? verifyproperty : property] = "false"; - else - context[verifyproperty != null ? verifyproperty : property] = "true"; - } - else - { - fs.open(sumFile, FileMode.WRITE); - fs.writeUTFBytes(sum); - fs.close(); - } - } - } - ant.dispatchEvent(new ProgressEvent(ProgressEvent.PROGRESS, false, false, - totalLength, totalLength)); - dispatchEvent(new Event(Event.COMPLETE)); - } - - private function getSumFile():File - { - try { - var sumFile:File; - if (toDir) - sumFile = File.applicationDirectory.resolvePath(toDir); - else - { - var f:File = File.applicationDirectory.resolvePath(this.file); - sumFile = f.parent; - } - } - catch (e:Error) - { - ant.output(toDir); - ant.output(e.message); - if (failonerror) - { - ant.project.failureMessage = e.message; - ant.project.status = false; - } - return null; - } - - if (sumFile.isDirectory) - { - var fileName:String = file + fileExt; - var c:int = fileName.indexOf("?"); - if (c != -1) - fileName = fileName.substring(0, c); - c = fileName.lastIndexOf("/"); - if (c != -1) - fileName = fileName.substr(c + 1); - sumFile = sumFile.resolvePath(fileName); - } - return sumFile; - } - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/f954e6f6/ant_on_air/src/org/apache/flex/ant/tags/Condition.as ---------------------------------------------------------------------- diff --git a/ant_on_air/src/org/apache/flex/ant/tags/Condition.as b/ant_on_air/src/org/apache/flex/ant/tags/Condition.as deleted file mode 100644 index 9fe9063..0000000 --- a/ant_on_air/src/org/apache/flex/ant/tags/Condition.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 org.apache.flex.ant.tags -{ - import mx.core.IFlexModuleFactory; - - import org.apache.flex.ant.Ant; - import org.apache.flex.ant.tags.supportClasses.IValueTagHandler; - import org.apache.flex.ant.tags.supportClasses.TaskHandler; - - [Mixin] - - public class Condition extends TaskHandler - { - public static function init(mf:IFlexModuleFactory):void - { - Ant.antTagProcessors["condition"] = Condition; - } - - public function Condition() - { - super(); - } - - override public function execute(callbackMode:Boolean, context:Object):Boolean - { - super.execute(callbackMode, context); - - // if the property is not already set - if (property && !context.hasOwnProperty(property)) - { - var val:Object = computedValue; - if (val == "true" || val == true) - { - // set it if we should - if (value != null) - val = value; - context[property] = val; - } - } - return true; - } - - public function get computedValue():Object - { - // get the value from the children - var val:Object = IValueTagHandler(getChildAt(0)).getValue(context); - return val; - } - - private function get property():String - { - return getNullOrAttributeValue("@property"); - } - - private function get value():Object - { - return getNullOrAttributeValue("@value"); - } - - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/f954e6f6/ant_on_air/src/org/apache/flex/ant/tags/Contains.as ---------------------------------------------------------------------- diff --git a/ant_on_air/src/org/apache/flex/ant/tags/Contains.as b/ant_on_air/src/org/apache/flex/ant/tags/Contains.as deleted file mode 100644 index 64f8738..0000000 --- a/ant_on_air/src/org/apache/flex/ant/tags/Contains.as +++ /dev/null @@ -1,58 +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 org.apache.flex.ant.tags -{ - import mx.core.IFlexModuleFactory; - - import org.apache.flex.ant.Ant; - import org.apache.flex.ant.tags.supportClasses.IValueTagHandler; - import org.apache.flex.ant.tags.supportClasses.TagHandler; - - [Mixin] - public class Contains extends TagHandler implements IValueTagHandler - { - public static function init(mf:IFlexModuleFactory):void - { - Ant.antTagProcessors["contains"] = Contains; - } - - public function Contains() - { - super(); - } - - private function get string():String - { - return getAttributeValue("@string"); - } - - private function get substring():String - { - return getAttributeValue("@substring"); - } - - public function getValue(context:Object):Object - { - this.context = context; - var pat:String = substring; - return string.indexOf(substring) != -1; - } - - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/f954e6f6/ant_on_air/src/org/apache/flex/ant/tags/Copy.as ---------------------------------------------------------------------- diff --git a/ant_on_air/src/org/apache/flex/ant/tags/Copy.as b/ant_on_air/src/org/apache/flex/ant/tags/Copy.as deleted file mode 100644 index 0cdd755..0000000 --- a/ant_on_air/src/org/apache/flex/ant/tags/Copy.as +++ /dev/null @@ -1,253 +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 org.apache.flex.ant.tags -{ - import flash.events.Event; - import flash.filesystem.File; - - import mx.core.IFlexModuleFactory; - import mx.resources.ResourceManager; - - import org.apache.flex.ant.Ant; - import org.apache.flex.ant.tags.supportClasses.FileSetTaskHandler; - import org.apache.flex.xml.ITagHandler; - - [ResourceBundle("ant")] - [Mixin] - public class Copy extends FileSetTaskHandler - { - public static function init(mf:IFlexModuleFactory):void - { - Ant.antTagProcessors["copy"] = Copy; - } - - public function Copy() - { - super(); - } - - private function get fileName():String - { - return getAttributeValue("@file"); - } - - private function get toFileName():String - { - var val:String = getNullOrAttributeValue("@toFile"); - if (val != null) - return val; - return getNullOrAttributeValue("@tofile"); - - } - - private function get toDirName():String - { - return getAttributeValue("@todir"); - } - - private function get overwrite():Boolean - { - return getAttributeValue("@overwrite") == "true"; - } - - private var mapper:GlobMapper; - - private function mapFileName(name:String):String - { - var from:String = mapper.from; - if (from.indexOf(".*") == -1) - from = from.replace("*", ".*"); - var regex:RegExp = new RegExp(from); - var results:Array = name.match(regex); - if (results && results.length == 1) - { - name = mapper.to.replace("*", results[0]); - return name; - } - return null; - } - - private var searchedForMapper:Boolean; - - override protected function actOnFile(dir:String, fileName:String):void - { - if (!searchedForMapper) - { - // look for a mapper - for (var i:int = 0; i < numChildren; i++) - { - var child:ITagHandler = getChildAt(i); - if (child is GlobMapper) - { - mapper = child as GlobMapper; - mapper.setContext(context); - break; - } - } - searchedForMapper = true; - } - - var srcName:String; - if (dir) - srcName = dir + File.separator + fileName; - else - srcName = fileName; - try { - var srcFile:File = File.applicationDirectory.resolvePath(srcName); - } - catch (e:Error) - { - ant.output(srcName); - ant.output(e.message); - if (failonerror) - { - ant.project.failureMessage = e.message; - ant.project.status = false; - } - return; - } - - - if (mapper) - { - fileName = mapFileName(fileName); - if (fileName == null) - return; - } - - var destName:String; - if (toDirName) - destName = toDirName + File.separator + fileName; - else - destName = toFileName; - try { - var destFile:File = File.applicationDirectory.resolvePath(destName); - } - catch (e:Error) - { - ant.output(destName); - ant.output(e.message); - if (failonerror) - { - ant.project.failureMessage = e.message; - ant.project.status = false; - } - return; - } - - try { - srcFile.copyTo(destFile, overwrite); - } - catch (e:Error) - { - ant.output(destName); - ant.output(e.message); - if (failonerror) - { - ant.project.failureMessage = e.message; - ant.project.status = false; - } - return; - } - } - - override protected function outputTotal(total:int):void - { - var s:String = ResourceManager.getInstance().getString('ant', 'COPYFILES'); - s = s.replace("%1", total.toString()); - s = s.replace("%2", toDirName); - ant.output(ant.formatOutput("copy", s)); - } - - private var srcFile:File; - private var destFile:File; - - override public function execute(callbackMode:Boolean, context:Object):Boolean - { - var retVal:Boolean = super.execute(callbackMode, context); - if (numChildren > 0) - return retVal; - - try { - srcFile = File.applicationDirectory.resolvePath(fileName); - } - catch (e:Error) - { - ant.output(fileName); - ant.output(e.message); - if (failonerror) - { - ant.project.failureMessage = e.message; - ant.project.status = false; - } - return true; - } - - try { - destFile = File.applicationDirectory.resolvePath(toFileName); - } - catch (e:Error) - { - ant.output(toFileName); - ant.output(e.message); - if (failonerror) - { - ant.project.failureMessage = e.message; - ant.project.status = false; - } - return true; - } - - //var destDir:File = destFile.parent; - //var resolveName:String = destFile.nativePath.substr(destFile.nativePath.lastIndexOf(File.separator) + 1); - //destDir.resolvePath(resolveName); - - var s:String = ResourceManager.getInstance().getString('ant', 'COPY'); - s = s.replace("%1", "1"); - s = s.replace("%2", destFile.nativePath); - ant.output(ant.formatOutput("copy", s)); - if (callbackMode) - { - ant.functionToCall = doCopy; - return false; - } - - try { - doCopy(); - } - catch (e:Error) - { - ant.output(toFileName); - ant.output(e.message); - if (failonerror) - { - ant.project.failureMessage = e.message; - ant.project.status = false; - } - } - return true; - } - - protected function doCopy():void - { - srcFile.copyTo(destFile, overwrite); - dispatchEvent(new Event(Event.COMPLETE)); - } - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/f954e6f6/ant_on_air/src/org/apache/flex/ant/tags/Delete.as ---------------------------------------------------------------------- diff --git a/ant_on_air/src/org/apache/flex/ant/tags/Delete.as b/ant_on_air/src/org/apache/flex/ant/tags/Delete.as deleted file mode 100644 index 2c4cbae..0000000 --- a/ant_on_air/src/org/apache/flex/ant/tags/Delete.as +++ /dev/null @@ -1,137 +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 org.apache.flex.ant.tags -{ - import flash.filesystem.File; - - import mx.core.IFlexModuleFactory; - import mx.resources.ResourceManager; - - import org.apache.flex.ant.Ant; - import org.apache.flex.ant.tags.supportClasses.FileSetTaskHandler; - - [ResourceBundle("ant")] - [Mixin] - public class Delete extends FileSetTaskHandler - { - public static function init(mf:IFlexModuleFactory):void - { - Ant.antTagProcessors["delete"] = Delete; - } - - public function Delete() - { - super(); - } - - private function get fileName():String - { - return getAttributeValue("@file"); - } - - private function get dirName():String - { - return getAttributeValue("@dir"); - } - - override protected function actOnFile(dir:String, fileName:String):void - { - var srcName:String; - if (dir) - srcName = dir + File.separator + fileName; - else - srcName = fileName; - try { - var delFile:File = File.applicationDirectory.resolvePath(srcName); - } - catch (e:Error) - { - ant.output(fileName); - ant.output(e.message); - if (failonerror) - { - ant.project.failureMessage = e.message; - ant.project.status = false; - } - return; - } - - if (delFile.isDirectory) - delFile.deleteDirectory(true); - else - delFile.deleteFile(); - } - - override public function execute(callbackMode:Boolean, context:Object):Boolean - { - var retVal:Boolean = super.execute(callbackMode, context); - if (numChildren > 0) - return retVal; - - var s:String; - - if (fileName) - { - try { - var delFile:File = File.applicationDirectory.resolvePath(fileName); - } - catch (e:Error) - { - ant.output(fileName); - ant.output(e.message); - if (failonerror) - { - ant.project.failureMessage = e.message; - ant.project.status = false; - } - return true; - } - - s = ResourceManager.getInstance().getString('ant', 'DELETEFILE'); - s = s.replace("%1", delFile.nativePath); - ant.output(ant.formatOutput("delete", s)); - delFile.deleteFile(); - } - else if (dirName) - { - try { - var delDir:File = File.applicationDirectory.resolvePath(dirName); - } - catch (e:Error) - { - ant.output(fileName); - ant.output(e.message); - if (failonerror) - { - ant.project.failureMessage = e.message; - ant.project.status = false; - } - return true; - } - - s = ResourceManager.getInstance().getString('ant', 'DELETEDIR'); - s = s.replace("%1", delDir.nativePath); - ant.output(ant.formatOutput("delete", s)); - delDir.deleteDirectory(true); - } - return true; - } - - } -} \ No newline at end of file
