Clean gwt project on python setup.py clean v0.8.5
authorKostas Papadimitriou <kpap@grnet.gr>
Fri, 6 Apr 2012 09:29:36 +0000 (12:29 +0300)
committerKostas Papadimitriou <kpap@grnet.gr>
Fri, 6 Apr 2012 09:29:36 +0000 (12:29 +0300)
snf-pithos-web-client/setup.py

index 1e22b26..ce8d38b 100644 (file)
@@ -186,12 +186,12 @@ def clean_gwt(root="../", public_dir="bin/www/gr.grnet.pithos.web.Pithos/"):
     if not os.path.exists(os.path.join(root, "build.xml")):
         return
 
-    #curdir = os.getcwd()
-    #os.chdir(root)
-    #rcode = sp.call(["ant", "clean"])
-    #if rcode == 1:
-        #raise Exception("GWT clean failed")
-    #os.chdir(curdir)
+    curdir = os.getcwd()
+    os.chdir(root)
+    rcode = sp.call(["ant", "clean"])
+    if rcode == 1:
+        raise Exception("GWT clean failed")
+    os.chdir(curdir)
     pub_dir = os.path.abspath(os.path.join(root, public_dir))
     static_dir = os.path.abspath(os.path.join("pithos_web_client", "static", \
         "pithos_web_client"))