usabuts / run-jetty-run

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

add a option to exclude classpath entry. #68

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Let user have a chance to use regex to exclude some jar/classpath folder when 
launching.

Original issue reported on code.google.com by tonylovejava on 30 May 2011 at 8:38

GoogleCodeExporter commented 9 years ago

Original comment by tonylovejava on 9 Jun 2011 at 2:33

GoogleCodeExporter commented 9 years ago

Original comment by tonylovejava on 30 Jun 2011 at 1:34

GoogleCodeExporter commented 9 years ago
Ready since 2011/7/6
committed r212 , also bootstrap in r207.

Note that if entry is excluded, you will get notification in console.

and the excluded classpath text MUST BE a valid REGULAR EXPRESSION , 
we will use it to match all entry one by one when we add it to classpath list.

If user typing a invalid regex string , we will show up warning and ignore this 
config then.

Original comment by tonylovejava on 6 Jul 2011 at 9:59

GoogleCodeExporter commented 9 years ago
How do you use this feature?

Original comment by nho...@gmail.com on 13 Feb 2013 at 4:23

GoogleCodeExporter commented 9 years ago
I set -Drjrexcludedclasspath=".*" in my Run Configuration's Arguments section, 
and it does nothing.

When I set that property to an invalid regular expression, I do get an error 
from RunJettyRun saying it's invalid, so it is detecting and using the property.

Why would the ".*" regular expression not exclude every classpath?

Original comment by nho...@gmail.com on 13 Feb 2013 at 4:45

GoogleCodeExporter commented 9 years ago
The latest version of ProjectClassLoader.java doesn't use regular expression 
matching anymore, it just searches for strings that start with "-n-" and "-y-", 
but the error message in "bootstrap/src/runjettyrun/Configs.java" is still 
there.

How do you exclude paths from the classpath now?

http://code.google.com/p/run-jetty-run/source/browse/Jetty7Support/bootstrap-jet
ty7/src/runjettyrun/ProjectClassLoader.java?spec=svn207&r=207

Original comment by nho...@gmail.com on 13 Feb 2013 at 5:19