From e4d44659d6260c4f636981d5ec55338002bd2ee2 Mon Sep 17 00:00:00 2001 From: Kostas Papadimitriou Date: Fri, 6 Apr 2012 12:29:36 +0300 Subject: [PATCH] Clean gwt project on python setup.py clean --- snf-pithos-web-client/setup.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/snf-pithos-web-client/setup.py b/snf-pithos-web-client/setup.py index 1e22b26..ce8d38b 100644 --- a/snf-pithos-web-client/setup.py +++ b/snf-pithos-web-client/setup.py @@ -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")) -- 1.7.10.4