flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cd...@apache.org
Subject [14/50] [abbrv] flex-typedefs git commit: Revert "don't need preprocess"
Date Sun, 17 Jul 2016 16:49:46 GMT
Revert "don't need preprocess"

This reverts commit 564a522c4689ecfcd4ba061daf473f2b73577225.


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

Branch: refs/heads/master
Commit: c590debb6db061b83b3f94eeb0d325c125d9755c
Parents: db9b104
Author: Alex Harui <aharui@apache.org>
Authored: Tue May 24 16:29:42 2016 -0700
Committer: Alex Harui <aharui@apache.org>
Committed: Tue May 24 16:29:42 2016 -0700

----------------------------------------------------------------------
 cordova/build.xml | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-typedefs/blob/c590debb/cordova/build.xml
----------------------------------------------------------------------
diff --git a/cordova/build.xml b/cordova/build.xml
index 6eddf99..733b9e5 100644
--- a/cordova/build.xml
+++ b/cordova/build.xml
@@ -28,8 +28,17 @@
     <!-- we need to insert a line near the beginning of the file to make the
          compiler happy. -->
     <target name="preprocess">
+        <antcall target="preprocessfile" >
+            <param name="file" value="cordova_file_plugin-4-11.js" />
+        </antcall>
     </target>
-        
+    
+    <target name="preprocessfile" >
+        <basename property="file.base" file="${file}" suffix=".js"/>
+        <echo>file.base is ${file.base}</echo>
+        <replace file="${basedir}/src/main/javascript/${file}" token="// Namespace" value="/**
@const */" />
+    </target>
+    
     <target name="externc" >
         <java jar="${basedir}/../../compiler-jx/lib/externc.jar" fork="true"
             failonerror="false">


Mime
View raw message