This is an automated email from the ASF dual-hosted git repository.

harbs pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-typedefs.git


The following commit(s) were added to refs/heads/develop by this push:
     new 319107d  Uses git instead of svn
319107d is described below

commit 319107d4ce8ee7763971b2bd2a4a1a52028d6a8a
Author: Harbs <ha...@in-tools.com>
AuthorDate: Tue Feb 13 15:24:15 2018 +0200

    Uses git instead of svn
    
    Copies the local svg file instead of downloading it
---
 js/build.xml | 29 +++++++++++++++++++++--------
 1 file changed, 21 insertions(+), 8 deletions(-)

diff --git a/js/build.xml b/js/build.xml
index 32b9ac4..b763bf7 100644
--- a/js/build.xml
+++ b/js/build.xml
@@ -82,21 +82,34 @@
     <target name="download" >
         <echo>${ROYALE_HOME}</echo>
         <mkdir dir="${basedir}/target/temp" />
-        <exec executable="svn">
+        <exec executable="git" failonerror="false" 
dir="${basedir}/target/temp/">
+            <arg value="clone" />
+            <arg value="https://github.com/royale-extras/closure-compiler.git"; 
/>
+            <arg value="closure-compiler" />
+        </exec>
+        <exec executable="git" failonerror="false" 
dir="${basedir}/target/temp/closure-compiler">
+            <arg value="checkout" />
+            <arg value="royale" />
+        </exec>
+        <exec executable="git" failonerror="false" 
dir="${basedir}/target/temp/closure-compiler">
+            <arg value="pull" />
+        </exec>
+        <!-- <exec executable="svn">
             <arg value="co" />
             <arg 
value="https://github.com/royale-extras/closure-compiler/branches/royale/externs";
 />
             <arg value="${basedir}/target/temp/externs" />
-        </exec>
+        </exec> -->
         <mkdir dir="${basedir}/target/downloads" />
         <copy todir="${basedir}/target/downloads">
-           <fileset dir="${basedir}/target/temp/externs" includes="**"/>
+           <fileset dir="${basedir}/target/temp/closure-compiler/externs" 
includes="**"/>
         </copy>
-        <get 
src="https://raw.githubusercontent.com/royale-extras/closure-compiler/royale/contrib/externs/svg.js";
 dest="${basedir}/target/downloads/svg.js" ignoreerrors="true"/>
-        <antcall target="get-from-cache-if-needed" >
+        <copy 
file="${basedir}/target/temp/closure-compiler/contrib/externs/svg.js" 
tofile="${basedir}/target/downloads/svg.js" />
+        <!-- <get 
src="https://raw.githubusercontent.com/royale-extras/closure-compiler/royale/contrib/externs/svg.js";
 dest="${basedir}/target/downloads/svg.js" ignoreerrors="true"/> -->
+        <!-- <antcall target="get-from-cache-if-needed" >
             <param name="srcFile" value="svg.js" />
             <param name="destFile" value="svg.js" />
             <param name="destDir" value="${basedir}/target/downloads" />
-        </antcall>
+        </antcall> -->
         <antcall target="fail-if-not-found" >
             <param name="destFile" value="svg.js" />
             <param name="destDir" value="${basedir}/target/downloads" />
@@ -104,10 +117,10 @@
     </target>
     
     <target name="make_patch" depends="download">
-        <mkdir dir="${basedir}/target/reference" />
+        <!-- <mkdir dir="${basedir}/target/reference" />
         <copy todir="${basedir}/target/reference">
             <fileset dir="${basedir}/target/downloads/" />
-        </copy>
+        </copy> -->
         <!-- preprocessing .js files -->
         <!-- <replaceregexp file="${basedir}/target/downloads/svg.js" 
match="@type \{function\(new:.*" replace="" flags="g" />
         <replaceregexp file="${basedir}/target/downloads/svg.js" 
match="Window\.prototype\..*" replace="" flags="g" />

-- 
To stop receiving notification emails like this one, please contact
ha...@apache.org.

Reply via email to