commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dirk Verbeeck <dirk.verbe...@pandora.be>
Subject Re: [Launcher] Requested change in Launcher.getBootstrapFile
Date Sun, 21 Mar 2004 19:12:36 GMT
patch applied

Thanks
Dirk

mmosttler@yci.com wrote:
> Hi,
> I am trying to use the Launcher from a class running in a WAS 5.0 Web App.
> 
> I ran into a problem when the Launcher.start is trying to get the Bootstrap
> File for use in determining the canonical path for its default launch file.
> 
> The problem is that the code
> 	boolean isJar = "jar".equals(resource.getProtocol()) ? true : false;
> 
> Does not evaluate to true when running in the WAS Web App.  The reason is
> that the protocol returned is "wsjar".
> 
> I would like to suggest changing the above line of code to:
> 	boolean isJar = (resource.getProtocol().indexOf("jar") >= 0) ? true
> : false;
> 
> Marcus Mosttler



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message