Bash/Eclipse Workspace

From Chorke Wiki
Revision as of 02:25, 17 September 2018 by Shahed (talk | contribs)
Jump to navigation Jump to search

Workspace Metadata Clean

for w in *_workspace;do if [ -d "$w" ];then cd $w;\
  rm -rf .metadata .recommenders *.rar *.zip RemoteSystemsTempFiles Servers;\
cd ..;fi;done

Project Metadata Clean

for p in *_workspace/chorke-*;do if [ -d "$p" ];then cd $p;pwd;\
  rm -rf .classpath .project .settings .springBeans target;\
cd ../..;fi;done

Sencha Metadata Clean

for p in *_workspace/chorke-*;do if [ -d "$p" ];then cd $p;pwd;\
  rm -rf src/main/cmd/.sencha;\
  for m in src/main/cmd/*;do \
    if [ -d "$m" ];then rm -rf $m;fi;\
    if [[ "$m" == */bootstrap.* ]];then \
      rm -rf $m;\
    fi;\
  done;\
cd ../..;fi;done

Archive Eclipse Projects

for w in *_workspace;do if [ -d "$w" ];then cd $w;\
  for p in chorke-*;do if [ -d "$p" ];then \
    zip -r $p.jar $p; rm -rf $p;\
  fi;done;\
cd ..;fi;done