Thanks guys! That did the trick. On 4/27/07, Wayne Fay <[EMAIL PROTECTED]> wrote:
John Casey sent this method a while ago that might be useful:private File getFile( String resourceName ) { ClassLoader cloader = Thread.currentThread().getContextClassLoader(); URL resource = cloader.getResource( resourceName ); if ( resource == null ) { throw new IllegalArgumentException( "Could not get resource: " + resourceName ); } return new File( resource.getPath() ); } Wayne On 4/27/07, Heinrich Nirschl <[EMAIL PROTECTED]> wrote: > On 4/27/07, Ed Young <[EMAIL PROTECTED]> wrote: > > I'd like to display the license information contained in a file that > > has been assembled into an executable jar file assembly when the user > > passes a command line parameter. > > > > I'm not sure if this is a maven issue, really, but the executable > > assembly was created using the maven assembly plugin. > > Indeed not a maven issue. You have to load it as a resource. This link > should help: > http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Class.html#getResourceAsStream(java.lang.String) > > - Henry > > --------------------------------------------------------------------- > 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]
-- Ed --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
