brett 2005/03/17 21:45:32
Modified: m2 maven2.sh
Log:
preserve intellij files across rebuild
Revision Changes Path
1.4 +10 -0 openejb/m2/maven2.sh
Index: maven2.sh
===================================================================
RCS file: /home/projects/openejb/scm/openejb/m2/maven2.sh,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -u -r1.3 -r1.4
--- maven2.sh 12 Mar 2005 21:50:38 -0000 1.3
+++ maven2.sh 18 Mar 2005 02:45:32 -0000 1.4
@@ -5,12 +5,21 @@
poms=`pwd`
modules_dir=$dir/modules
+echo Backing up IntelliJ files
+rm -rf intellij
+mkdir -p intellij
+find openejb -name '*.iml' -exec cp --parents {} intellij \;
+cp openejb/*.iws intellij/openejb
+cp openejb/*.ipr intellij/openejb
+
echo Removing old version
rm -rf $dir > /dev/null 2>&1
echo Setting up base
mkdir -p $dir > /dev/null 2>&1
+cp -r intellij/openejb/* openejb
+
cp $poms/ejb-group.pom $dir/pom.xml
echo Setting up modules
@@ -39,5 +48,6 @@
# ---------------------------------------------------
+echo Removing CVS directories
find $dir -name 'CVS*' -exec rm -rf {} \; > /dev/null 2>&1