Author: mriou
Date: Thu Mar 27 17:00:40 2008
New Revision: 642037

URL: http://svn.apache.org/viewvc?rev=642037&view=rev
Log:
Avoiding failures when testing without cleaning in axis2-war.

Modified:
    ode/branches/APACHE_ODE_1.1/Rakefile

Modified: ode/branches/APACHE_ODE_1.1/Rakefile
URL: 
http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.1/Rakefile?rev=642037&r1=642036&r2=642037&view=diff
==============================================================================
--- ode/branches/APACHE_ODE_1.1/Rakefile (original)
+++ ode/branches/APACHE_ODE_1.1/Rakefile Thu Mar 27 17:00:40 2008
@@ -179,10 +179,12 @@
     
     test.with projects("tools"), libs, AXIS2_TEST, AXIOM, JAVAX.servlet
     test.setup task(:prepare_webapp) do |task|
-      cp_r _("src/main/webapp"), _("target/test-classes")
-      cp Dir[_("src/main/webapp/WEB-INF/classes/*")], _("target/test-classes")
-      cp Dir[project("axis2").path_to("src/main/wsdl/*")], 
_("target/test-classes/webapp/WEB-INF")
-      cp project("bpel-schemas").path_to("src/main/xsd/pmapi.xsd"), 
_("target/test-classes/webapp/WEB-INF")
+      unless File.exist?(_("target/test-classes/webapp"))
+        cp_r _("src/main/webapp"), _("target/test-classes")
+        cp Dir[_("src/main/webapp/WEB-INF/classes/*")], 
_("target/test-classes")
+        cp Dir[project("axis2").path_to("src/main/wsdl/*")], 
_("target/test-classes/webapp/WEB-INF")
+        cp project("bpel-schemas").path_to("src/main/xsd/pmapi.xsd"), 
_("target/test-classes/webapp/WEB-INF")
+      end
     end
     test.setup 
unzip(_("target/test-classes/webapp/WEB-INF")=>project("dao-jpa-ojpa-derby").package(:zip))
   end


Reply via email to