You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ha...@apache.org on 2016/10/26 13:54:16 UTC
[14/23] git commit: [flex-asjs] [refs/heads/refactor-sprite] - switch
AIR visible flag to true if exists
switch AIR visible flag to true if exists
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/fa6e0628
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/fa6e0628
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/fa6e0628
Branch: refs/heads/refactor-sprite
Commit: fa6e06285a68980d299ee0c3d66f41f0d485c714
Parents: 734d4e0
Author: Alex Harui <ah...@apache.org>
Authored: Wed Oct 19 14:37:40 2016 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Thu Oct 20 09:12:35 2016 -0700
----------------------------------------------------------------------
ide/flashbuilder/antscripts.xml | 14 ++++++++++++++
1 file changed, 14 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/fa6e0628/ide/flashbuilder/antscripts.xml
----------------------------------------------------------------------
diff --git a/ide/flashbuilder/antscripts.xml b/ide/flashbuilder/antscripts.xml
index fe51e8f..6a17d52 100644
--- a/ide/flashbuilder/antscripts.xml
+++ b/ide/flashbuilder/antscripts.xml
@@ -40,6 +40,7 @@
<target name="convert_project" depends="check_params, cutpath" description="Replaces the files in a new Flex project folder with a basic FlexJS project">
<copy file="${basedir}/../../examples/flexjs/HelloWorld/src/HelloWorld.mxml" tofile="${projectDir}/src/${projectName}.mxml" overwrite="true" />
+ <antcall target="makeAIRvisible" />
</target>
<target name="convert_project_mvc" depends="check_params, cutpath" description="Replaces the files in a new Flex project folder with a basic FlexJS MVC project">
@@ -51,6 +52,7 @@
<copy file="${basedir}/../../examples/flexjs/DataBindingExample/src/models/MyModel.as" tofile="${projectDir}/src/models/MyModel.as" overwrite="true" />
<copy file="${basedir}/../../examples/flexjs/DataBindingExample/src/controllers/MyController.as" tofile="${projectDir}/src/controllers/MyController.as" overwrite="true" />
<replace file="${projectDir}/src/controllers/MyController.as" token="DataBindingExample" value="${projectName}" />
+ <antcall target="makeAIRvisible" />
</target>
<target name="cutpath" >
@@ -58,4 +60,16 @@
<echo>projectDir: ${projectDir}</echo>
<echo>projectName: ${projectName}</echo>
</target>
+
+ <target name="makeAIRvisible">
+ <echo>Checking for ${projectDir}/src/${projectName}-app.xml</echo>
+ <condition property="isAIR" value="true">
+ <available file="${projectDir}/src/${projectName}-app.xml" />
+ </condition>
+ <antcall target="replaceVisibleInAppXML" />
+ </target>
+ <target name="replaceVisibleInAppXML" if="isAIR">
+ <replace file="${projectDir}/src/${projectName}-app.xml" token="<visible>false</visible>" value="<visible>true</visible>" />
+ </target>
+
</project>
\ No newline at end of file