Also, I would like to mention that with Seam 2.1.0. CR1, it used to work
I would like to qualify my earlier issue : if I execute seam setup from the seam directory then it works, otherwise it does not. Since I have already setup my SEAM_HOME and included this on my PATH, shouldn't it work from any directory?
Ok, I figured it out. I was trying to execute seam setup from a directory which has spaces in it (i.e C:\Documents And Setting) and that is where the seam-gen gets confused..
Please enter a jira for this. This should at least be documented, if not fixed.
A nice workaround I use is the Link Shell Extension with it you can create symlinks (like those in Unix/Linux) in Windows. I always create one named
Documents and Settingsand use that path for my coding (this whitespace bug is very common in a lot of different programs, specially those with unix origins).
One of the advantages of migrating to Windows Vista (yes I know, it is surprising) is that
Documents and Settingsis gone, and now everything is available in
It's generally accepted that you shouldn't use spaces in path names when using Java-based tools (some might even say in general). That said, I think it is worth supporting and therefore I plan to fix seam-gen. Let's just roll it up into the following issue: JBSEAM-3585
I just committed a fix for this to the trunk. It looks like we are going to release an SP to resolve a couple of showstopper seam-gen issues, this one included.
I did that, I am getting the message
The SEAM_HOME environment variable should point to a Seam Distribution. Whereas my SEAM_HOME variable is indeed set. Here is what I see on my shell :
C:\Documents and Settings\Vimal>seam help
The SEAM_HOME environment variable should point to a Seam distribution
C:\Documents and Settings\Vimal>echo %SEAM_HOME%
I found a typo in seam.bat. On line 18 :
if not exist "%SEAM_HOME\seam.bat" (goto noseam)
It should be
if not exist "%SEAM_HOME%\seam.bat" (goto noseam)
even on MacOSX Leopard directory paths with spaces are not properly recognized and managed. For example if you use /Users/Asriel/Desktop/Project\ Test/ as your project directory, running seam create-project will generate two folders /Project/ Test. (it's not a typo, there is a leading space on the Test subfolder).