zhyh1105 / run-jetty-run

Automatically exported from code.google.com/p/run-jetty-run
0 stars 0 forks source link

classpath will fail because the command too long #48

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Have a lot of dependency lib , make the classpath long enough.

What is the expected output? What do you see instead?
It will complain the argument is too long.

What version of the product are you using? On what operating system?
RJR 1.1.1 , Windows XP SP3 .

Please provide any additional information below.
it's caused by OS restriction.
we tried to solve this problem by shorten .m2 path 
(from [c:\document and settings\tony\.m2] -> [c:\.m2\] )

And still looking for if there any kind of solution we could do in RJR core.

Original issue reported on code.google.com by tonylovejava on 23 Jan 2011 at 10:22

GoogleCodeExporter commented 9 years ago
add to 1.2.1 todo list.

Original comment by tonylovejava on 11 Mar 2011 at 10:31

GoogleCodeExporter commented 9 years ago
Fixed since 2011/03/15 and will in 1.2.2 , committed in r86 ,
and test with a big classpath that contains over 35000 chars in classpath.

Using classpath file to provide the classpath information to bootstrap 
when the classpath length is more then 1024 character.

About the console command length limit , reference
http://blogs.msdn.com/b/oldnewthing/archive/2003/12/10/56028.aspx

Original comment by tonylovejava on 15 Mar 2011 at 9:18

GoogleCodeExporter commented 9 years ago
Code review/refactor in commit r87 .

Original comment by tonylovejava on 15 Mar 2011 at 9:26