Removing the 2>&1 altogether stops the error, however it then doesn't perform the check that it is supposed to do.
One more. A little later on there is a line: D:\maven\bin>SET MAVEN_ENDORSED="-Djava.endorsed.dirs=D:\jdk1.4.1\lib\endorsed;D :\maven\lib\endorsed" Syntax error I think the problem is the equals sign within the double quotes. Maven seems to start without this line suceeding. Stephen ----- Original Message ----- From: "Brett Porter" <[EMAIL PROTECTED]> > 2>&1 is used on unix to redirect stderr to stdout so you can pipe the lot > through one command. To my knowledge it doesn't work on windows, and > shouldn't be needed in this instance. Try removing it and it should work. > > > -----Original Message----- > > From: Stephen Colebourne [mailto:[EMAIL PROTECTED] > > Sent: Friday, 17 October 2003 8:34 AM > > To: Maven Users List > > Subject: Re: Install_repo and Windows98 > > > > > > Ah but I can possibly help you... > > > > The problem was that my box did not define %SystemRoot%. As a > > result the script tried to use cmd.exe, instead of finding > > command.com. I guess you could test for this variable and use > > C:\windows if not present? > > > > > > Of course, this just led onto the next problem.... > > The call to command.com fails on my PC: > > > > D:\maven\bin>"C:\windows\command.com" /C DIR "D:\jdk1.4.1" > > 2>&1 | "C:\windows\command\find.exe" /I /C "D:\jdk1.4.1" >nul > > Too many parameters - 2 > > > > The too many parameters is the dir command complaining about > > the 2nd parameter '2'. Not sure what this is doing in detail > > (although obviously checking a directory for JAVA_HOME > > existence), but it doesn't work on this particular OS. > > > > I'm going to have to hack around this one. > > > > Stephen > > > > ----- Original Message ----- > > From: "Brett Porter" <[EMAIL PROTECTED]> > > > Thanks Stephen. Not having Win98 to test, I can't help you out with > > > the > > 2nd > > > query, but I'll fix the bootstrap to generate a working > > install_repo > > > in future. > > > > > > Install_repo isn't actually a required step - it just saves some > > > downloading. > > > > > > Cheers, > > > Brett > > > > > > > -----Original Message----- > > > > From: Stephen Colebourne [mailto:[EMAIL PROTECTED] > > > > Sent: Friday, 17 October 2003 8:03 AM > > > > To: Maven Users List > > > > Subject: Install_repo and Windows98 > > > > > > > > > > > > I just tried installing maven on my home Windows98 box and hit > > > > problems. The install_repo.bat script assumes that it can create > > > > multiple levels of directories in one mkdir command. This doesn't > > > > work on my box. > > > > > > > > Attached is the altered file that does work (renamed to txt to > > > > ensure it gets through filters). > > > > > > > > > > > > Unfortunately, the maven.bat file is still not runing, > > with a 'bad > > > > command or file name'. Which is very strange as its definitely > > > > there... > > > > > > > > Stephen > > > > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
