Revision 29c75250 snf-pithos-web-client/setup.py

b/snf-pithos-web-client/setup.py
182 182
import glob
183 183

  
184 184
def clean_gwt(root="../", public_dir="bin/www/gr.grnet.pithos.web.Pithos/"):
185
    # skip if no build.xml found (debian build process)
186
    if not os.path.exists(os.path.join(root, "build.xml")):
187
        return
188

  
185 189
    curdir = os.getcwd()
186 190
    os.chdir(root)
187 191
    rcode = sp.call(["ant", "clean"])
......
204 208

  
205 209

  
206 210
def build_gwt(root="../", public_dir="bin/www/gr.grnet.pithos.web.Pithos/"):
211
    # skip if no build.xml found (debian build process)
212
    if not os.path.exists(os.path.join(root, "build.xml")):
213
        return
214

  
207 215
    curdir = os.getcwd()
208 216
    os.chdir(root)
209 217
    # run ant on root dir

Also available in: Unified diff