It's a bash script. Cygwin (http://cygwin.com/) will give you bash on
Windows.
Eliot Stock.
A Carbone wrote:
That loop is a Linux or Unix only thing correct? it looks like it is using
command scripting or something not familiar to me, could just be my
ignorance sorry for the dumb question! is there a way to do the same in dos?
would I have to write a batch file to do it?
A Carbone
----- Original Message -----
From: "David Blevins" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 26, 2004 12:24 PM
Subject: Re: Eclipse issue
Just as a note to everyone, maven *will* create your .project files
and .classpath files including all dependencies to other jars. You
just need to type 'maven eclipse' in the directories where the
project.xml files are located. If you type 'maven eclipse' at the top
directory (incubator-geronimo), your not going to get anything useful
as that project.xml file doesn't contain any dependency information or
even information about where the source is.
The project.xml files for good 'maven eclipse' usage are:
- applications/jmxdebug/project.xml
- modules/assembly/project.xml
- modules/clustering/project.xml
- modules/common/project.xml
- modules/connector/project.xml
- modules/console-web/project.xml
- modules/core/project.xml
- modules/deployment/project.xml
- modules/j2ee/project.xml
- modules/jetty/project.xml
- modules/kernel/project.xml
- modules/maven-plugin/project.xml
- modules/maven-xmlbeans-plugin/project.xml
- modules/naming/project.xml
- modules/network/project.xml
- modules/remoting/project.xml
- modules/security/project.xml
- modules/system/project.xml
- modules/transaction/project.xml
- sandbox/activation/project.xml
- sandbox/explorer/project.xml
- sandbox/javamail/project.xml
- sandbox/mail/project.xml
- sandbox/twiddle/project.xml
- sandbox/webdav/project.xml
- sandbox/xbeans/project.xml
- specs/ejb/project.xml
- specs/j2ee/project.xml
- specs/j2ee-connector/project.xml
- specs/j2ee-deployment/project.xml
- specs/j2ee-jacc/project.xml
- specs/j2ee-management/project.xml
- specs/jms/project.xml
- specs/jsp/project.xml
- specs/jta/project.xml
- specs/schema/project.xml
- specs/servlet/project.xml
Now, there are 37 different places where you would need to run 'maven
eclipse' and that is a redundant task that could easily be done with a
little Bash loop like this:
for module in "$(find ./*/ -name project.xml | sed
's/project.xml//')"; do
echo $module
pushd $PWD &> /dev/null;
cd $module
maven eclipse > /dev/null
popd &> /dev/null
done;
Then you can import the eclipse projects into eclipse just fine. You
only need to import the ones you are interested in as the .classpath
of each will already the jars of the related projects in its
classpath.
-David
On Mon, Apr 26, 2004 at 12:31:55PM -0300, Emerson Cargnin wrote:
I've been out of this list for a while, and before I got out I promess
to
send a patch with a working version of .project and .classpath and a
how-to
to allow debugging inside eclipse.
I was requested to create an article for a Java brazillian magazine
about
geronimo. So I'll update my eclipse configuration to match the current
state
of it.
Emerson
----- Original Message -----
From: "Patrick Mueller" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 26, 2004 12:03 PM
Subject: Re: Eclipse issue
| On Apr 23, 2004, at 4:34 PM, Jukka Uusisalo wrote:
| > Does somebody have suggestions or good practices how create eclipse
| > projects
| > against geronimo directory structure from cvs?
| >
| > I made one eclipse project like geronimo-module = eclipse-module,
but
| > it
| > feels
| > little bit hard to find needed parts to get compiled etc. Also one
big
| > project with several
| > source root does not make me happy.
|
| I previously posted a Python script I use to build a .project and
| .classpath file for Eclipse, but I've tweaked it a bit since then so
am
| re-posting. It goes the 'one big project' route. I first run maven
| from the command-line, then run the script. The end goal for now is
to
| get an Eclipse project which has all the dependencies set up, so that
| you can do interesting introspection things like find references, etc.
|
| One day I should Jelly-ize this ...
|
|
|
--------------------------------------------------------------------------
--
----
|
|
| Patrick Mueller
| [EMAIL PROTECTED]
|
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.668 / Virus Database: 430 - Release Date: 24/4/2004