Bash/Eclipse Workspace: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
== Workspace Metadata Clean == | == Workspace Metadata Clean == | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
for w in *_workspace;do if [ -d "$w" ];then cd $w;\ | cd $CKI_WORKSPACES;\ | ||
for w in *_workspace;do if [ -d "$w" ];then cd $w;pwd;\ | |||
rm -rf .metadata .recommenders *.rar *.zip RemoteSystemsTempFiles Servers;\ | rm -rf .metadata .recommenders *.rar *.zip RemoteSystemsTempFiles Servers;\ | ||
cd ..;fi;done | cd ..;fi;done | ||
Line 8: | Line 9: | ||
== Project Metadata Clean == | == Project Metadata Clean == | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
cd $CKI_WORKSPACES;\ | |||
for p in *_workspace/chorke-*;do if [ -d "$p" ];then cd $p;pwd;\ | for p in *_workspace/chorke-*;do if [ -d "$p" ];then cd $p;pwd;\ | ||
rm -rf .classpath .project .settings .springBeans target;\ | rm -rf .classpath .project .settings .springBeans target;\ | ||
Line 15: | Line 17: | ||
== Sencha Metadata Clean == | == Sencha Metadata Clean == | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
cd $CKI_WORKSPACES;\ | |||
for p in *_workspace/chorke-*;do if [ -d "$p" ];then cd $p;pwd;\ | for p in *_workspace/chorke-*;do if [ -d "$p" ];then cd $p;pwd;\ | ||
rm -rf src/main/cmd/.sencha;\ | rm -rf src/main/cmd/.sencha;\ | ||
for m in src/main/cmd/*;do \ | for m in src/main/cmd/*;do \ | ||
if [ -d "$m" ];then rm -rf $m;fi;\ | if [ -d "$m" ];then rm -rf $m;fi;\ | ||
if [[ "$m" == */bootstrap.* ]];then | if [[ "$m" == */bootstrap.* ]];then rm -rf $m;fi;\ | ||
done;\ | done;\ | ||
cd ../..;fi;done | cd ../..;fi;done | ||
Line 28: | Line 29: | ||
== Archive Eclipse Projects == | == Archive Eclipse Projects == | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
for w in *_workspace;do if [ -d "$w" ];then cd $w;\ | cd $CKI_WORKSPACES;\ | ||
for w in *_workspace;do if [ -d "$w" ];then cd $w;pwd;\ | |||
for p in chorke-*;do if [ -d "$p" ];then \ | for p in chorke-*;do if [ -d "$p" ];then \ | ||
zip -r $p.jar $p; rm -rf $p;\ | zip -r $p.jar $p; rm -rf $p;\ |
Latest revision as of 10:35, 17 September 2018
Workspace Metadata Clean
cd $CKI_WORKSPACES;\
for w in *_workspace;do if [ -d "$w" ];then cd $w;pwd;\
rm -rf .metadata .recommenders *.rar *.zip RemoteSystemsTempFiles Servers;\
cd ..;fi;done
Project Metadata Clean
cd $CKI_WORKSPACES;\
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
cd $CKI_WORKSPACES;\
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
cd $CKI_WORKSPACES;\
for w in *_workspace;do if [ -d "$w" ];then cd $w;pwd;\
for p in chorke-*;do if [ -d "$p" ];then \
zip -r $p.jar $p; rm -rf $p;\
fi;done;\
cd ..;fi;done