geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From geronimo-...@incubator.apache.org
Subject [Apache Geronimo Wiki] Updated: FrequentlyAskedQuestions
Date Wed, 19 May 2004 12:14:14 GMT
   Date: 2004-05-19T05:14:13
   Editor: 66.41.158.180 <>
   Wiki: Apache Geronimo Wiki
   Page: FrequentlyAskedQuestions
   URL: http://wiki.apache.org/geronimo/FrequentlyAskedQuestions

   Fixed other script and added the version I really use

Change Log:

------------------------------------------------------------------------------
@@ -43,17 +43,32 @@
 === Eclipse ===
 You may use this bash script on Linux box (or use Cygwin if you are unlucky enough to use
Win$ ;) ) :
 {{{
-#!/usr/bin/bash
-for modules in "$(find ./*/ -name project.xml | sed 's/project.xml//')"; do
-   echo $modules;
-   for module in $modules
-   do
-     pushd $module &> /dev/null
-     maven eclipse > /dev/null
-     popd &> /dev/null
-   done;
-done; 
+#!/bin/bash
+MODULES="$(find ./*/ -name project.xml | sed 's/project.xml//')";
+
+for module in $MODULES; do
+   echo $module;
+   pushd $module &> /dev/null
+   maven eclipse > /dev/null
+   popd &> /dev/null
+done;
 }}}
+
+This is just scary and wrong, but I don't like all those CVS directories in my Eclipse tree.
 I also don't want to keep adding the xmlbeans generated code to my projects.
+
+{{{
+#!/bin/bash
+MODULES=$(find ./*/ -name project.xml | sed 's/project.xml//')
+
+for module in $MODULES; do
+    echo $module
+    pushd $PWD &> /dev/null
+    cd $module
+    maven eclipse > /dev/null
+    perl -pi.bak -e 's/(kind="src")/excluding="**\/CVS\/" $1/' .classpath
+    /usr/bin/test -d target/xmlbeans && perl -pi.bak -e 's/<classpath>/<classpath>\n
 <classpathentry kind="src" path="target\\xmlbeans" \/>\n/' .classpath
+    popd &> /dev/null
+done;
 
 === Netbeans ===
 

Mime
View raw message