geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mcco...@apache.org
Subject svn commit: r679223 - in /geronimo/devtools/eclipse-plugin/trunk: eclipse/build.xml testsuite/eclipse/build.xml
Date Wed, 23 Jul 2008 23:06:26 GMT
Author: mcconne
Date: Wed Jul 23 16:06:26 2008
New Revision: 679223

URL: http://svn.apache.org/viewvc?rev=679223&view=rev
Log:
GERONIMODEVTOOLS-407 Fix case where repeated mvn installs does not work without clean

Modified:
    geronimo/devtools/eclipse-plugin/trunk/eclipse/build.xml
    geronimo/devtools/eclipse-plugin/trunk/testsuite/eclipse/build.xml

Modified: geronimo/devtools/eclipse-plugin/trunk/eclipse/build.xml
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/eclipse/build.xml?rev=679223&r1=679222&r2=679223&view=diff
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/eclipse/build.xml (original)
+++ geronimo/devtools/eclipse-plugin/trunk/eclipse/build.xml Wed Jul 23 16:06:26 2008
@@ -38,9 +38,9 @@
     <target name="win32" depends="init" description="Download Windows-specific artifact(s)">
         <echo>#################################################################################</echo>
         <echo>##                                                                  
            </echo>
-        <echo>## Downloading: ${ganymede_jee_win32}                               
              </echo>                                                              
             
+        <echo>## Downloading: ${ganymede_jee_win32}                               
            </echo>
         <echo>##                                                                  
            </echo>
-        <echo>## From: ${ganymede_url}                                            
              </echo>                                                              
             <echo>##                                                              
                </echo>
+        <echo>## From: ${ganymede_url}                                            
            </echo>
         <echo>##                                                                  
            </echo>
         <echo>#################################################################################</echo>
         <mkdir dir="${LOCAL_M2_REPO}/eclipse-downloads"/>
@@ -51,20 +51,22 @@
              usetimestamp="true"/>
         <echo>#################################################################################</echo>
         <echo>##                                                                  
            </echo>
-        <echo>## Unzipping: ${ganymede_jee_win32}                                 
              </echo>                                                              
             
+        <echo>## Unzipping: ${ganymede_jee_win32}                                 
            </echo>
         <echo>##                                                                  
            </echo>
         <echo>#################################################################################</echo>
+        <delete dir="${LOCAL_M2_REPO}/eclipse" quiet="true"/>
         <mkdir dir="${LOCAL_M2_REPO}/eclipse"/>
         <unzip src="${LOCAL_M2_REPO}/eclipse-downloads/${ganymede_jee_win32}" 
-              dest="${LOCAL_M2_REPO}/eclipse"/>
+               dest="${LOCAL_M2_REPO}/eclipse"
+               overwrite="true"/>
     </target>
 
     <target name="linux" depends="init" description="Download Linux-specific artifact(s)">
         <echo>#################################################################################</echo>
         <echo>##                                                                  
            </echo>
-        <echo>## Downloading: ${ganymede_jee_linux_gz}                            
              </echo>
+        <echo>## Downloading: ${ganymede_jee_linux_gz}                            
            </echo>
         <echo>##                                                                  
            </echo>
-        <echo>## From: ${ganymede_url}                                            
              </echo>                                                              
             <echo>##                                                              
                </echo>
+        <echo>## From: ${ganymede_url}                                            
            </echo>
         <echo>##                                                                  
            </echo>
         <echo>#################################################################################</echo>
         <mkdir dir="${LOCAL_M2_REPO}/eclipse-downloads"/>
@@ -75,21 +77,23 @@
              usetimestamp="true"/>
         <echo>#################################################################################</echo>
         <echo>##                                                                  
            </echo>
-        <echo>## Unzipping: ${ganymede_jee_linux_gz}                              
              </echo>
+        <echo>## Unzipping: ${ganymede_jee_linux_gz}                              
            </echo>
         <echo>##                                                                  
            </echo>
         <echo>#################################################################################</echo>
+        <delete dir="${LOCAL_M2_REPO}/eclipse" quiet="true"/>
         <mkdir  dir="${LOCAL_M2_REPO}/eclipse"/>
         <gunzip src="${LOCAL_M2_REPO}/eclipse-downloads/${ganymede_jee_linux_gz}"/>
         <untar  src="${LOCAL_M2_REPO}/eclipse-downloads/${ganymede_jee_linux}" 
-               dest="${LOCAL_M2_REPO}/eclipse"/>
+                dest="${LOCAL_M2_REPO}/eclipse"
+                overwrite="true"/>
     </target>
 
     <target name="macos" depends="init" description="Download Mac-specific artifact(s)">
         <echo>#################################################################################</echo>
         <echo>##                                                                  
            </echo>
-        <echo>## Downloading: ${ganymede_jee_macos_gz}                            
              </echo>
+        <echo>## Downloading: ${ganymede_jee_macos_gz}                            
            </echo>
         <echo>##                                                                  
            </echo>
-        <echo>## From: ${ganymede_url}                                            
              </echo>                                                              
             <echo>##                                                              
                </echo>
+        <echo>## From: ${ganymede_url}                                            
            </echo>
         <echo>##                                                                  
            </echo>
         <echo>#################################################################################</echo>
         <mkdir dir="${LOCAL_M2_REPO}/eclipse-downloads"/>
@@ -100,13 +104,15 @@
              usetimestamp="true"/>
         <echo>#################################################################################</echo>
         <echo>##                                                                  
            </echo>
-        <echo>## Unzipping: ${ganymede_jee_macos_gz}                              
              </echo>
+        <echo>## Unzipping: ${ganymede_jee_macos_gz}                              
            </echo>
         <echo>##                                                                  
            </echo>
         <echo>#################################################################################</echo>
+        <delete dir="${LOCAL_M2_REPO}/eclipse" quiet="true"/>
         <mkdir  dir="${LOCAL_M2_REPO}/eclipse"/>
         <gunzip src="${LOCAL_M2_REPO}/eclipse-downloads/${ganymede_jee_macos_gz}"/>
         <untar  src="${LOCAL_M2_REPO}/eclipse-downloads/${ganymede_jee_macos}" 
-               dest="${LOCAL_M2_REPO}/eclipse"/>
+                dest="${LOCAL_M2_REPO}/eclipse"
+                overwrite="true"/>
     </target>
 
 </project>

Modified: geronimo/devtools/eclipse-plugin/trunk/testsuite/eclipse/build.xml
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/testsuite/eclipse/build.xml?rev=679223&r1=679222&r2=679223&view=diff
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/testsuite/eclipse/build.xml (original)
+++ geronimo/devtools/eclipse-plugin/trunk/testsuite/eclipse/build.xml Wed Jul 23 16:06:26
2008
@@ -69,7 +69,8 @@
         <echo>#################################################################################</echo>
         <mkdir dir="${test_eclipse}"/>
         <unzip src="${LOCAL_M2_REPO}/eclipse-downloads/${ganymede_jee_win32}" 
-              dest="${test_eclipse}"/>
+               dest="${test_eclipse}"
+               overwrite="true"/>
     </target>
 
     <target name="linux" depends="init,common" description="Download Linux-specific artifact(s)">
@@ -96,7 +97,8 @@
         <mkdir  dir="${test_eclipse}"/>
         <gunzip src="${LOCAL_M2_REPO}/eclipse-downloads/${ganymede_jee_linux_gz}"/>
         <untar  src="${LOCAL_M2_REPO}/eclipse-downloads/${ganymede_jee_linux}" 
-               dest="${test_eclipse}"/>
+                dest="${test_eclipse}"
+                overwrite="true"/>
     </target>
 
     <target name="macos" depends="init,common" description="Download Mac-specific artifact(s)">
@@ -123,15 +125,29 @@
         <mkdir  dir="${test_eclipse}"/>
         <gunzip src="${LOCAL_M2_REPO}/eclipse-downloads/${ganymede_jee_macos_gz}"/>
         <untar  src="${LOCAL_M2_REPO}/eclipse-downloads/${ganymede_jee_macos}" 
-               dest="${test_eclipse}"/>
+                dest="${test_eclipse}"
+                overwrite="true"/>
     </target>
 
     <target name="common" depends="init" description="Download artifacts common to all
OS'es">
+        <antcall target="cleanup"/>
         <antcall target="test-framework"/>
         <antcall target="abbot"/>
         <antcall target="gep-plugins"/>
     </target>
 
+    <target name="cleanup" depends="init" description="Cleanup from previos invocatins
of the testsuite">
+        <!--
+        ##############################################################################################
  
+        ##                                                                              
           ##
+        ## Cannot repeatedly unzip into the test_eclipse as it will corrupt the Eclipse plugin
     ##
+        ## registry. So delete it even though clean may not have been specified on the mvn
command. ##
+        ##                                                                              
           ##
+        ##############################################################################################
+        -->
+        <delete dir="${test_eclipse}" quiet="true"/>
+    </target>
+
     <target name="test-framework" depends="init" description="JUnit Plugin Tests and Automated
Testing Framework artifact">
         <echo>#################################################################################</echo>
         <echo>##                                                                  
            </echo>
@@ -155,7 +171,8 @@
         <echo>#################################################################################</echo>
         <mkdir dir="${test_eclipse}"/>
         <unzip src="${LOCAL_M2_REPO}/eclipse-downloads/${test_framework}"
-              dest="${test_eclipse}"/>
+               dest="${test_eclipse}"
+               overwrite="true"/>
     </target>
 
     <target name="abbot" depends="init" description="Download Abbot SWT plugin artifacts">
@@ -181,7 +198,8 @@
         <echo>#################################################################################</echo>
         <mkdir dir="${test_eclipse}"/>
         <unzip src="${LOCAL_M2_REPO}/eclipse-downloads/${abbot_swt}"
-              dest="${test_eclipse}eclipse"/>
+               dest="${test_eclipse}eclipse"
+               overwrite="true"/>
         <!--
          |  
          | Copy the SWT jars to the local maven repo



Mime
View raw message