Hi Keith, I tried getting the URL & creating the file object as "new File(url.getFile())". But it doesn't seem to work. The file.exists() always returns false.
Sowmi keith chapman wrote: > > Hi Sowmi, > > You can use the jar URL scheme. Look here for documentation on it > http://java.sun.com/j2se/1.4.2/docs/api/java/net/JarURLConnection.html > > Thanks, > Keith. > > On Sun, Apr 20, 2008 at 3:27 AM, sowmi <[EMAIL PROTECTED]> wrote: > >> >> Hi, >> >> I am looking for a way to access a file packaged in an AAR, as a >> java.io.File object. >> >> I use third party API that accepts only a 'file path' that is used to >> create >> a java.io.File object. Unfortunately they dont have any API accepting >> InputStream or URL. >> >> Now, given that I package all my configurations in the AAR, is there a >> way >> to generate a "file path" that I can supply to these third party API? >> >> Any help is appreciated. >> >> thanks! >> Sowmi >> -- >> View this message in context: >> http://www.nabble.com/Accessing-a-file-in-AAR-tp16787898p16787898.html >> Sent from the Axis - User mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > -- > Keith Chapman > Senior Software Engineer > WSO2 Inc. > Oxygenating the Web Service Platform. > http://wso2.org/ > > blog: http://www.keith-chapman.org > > -- View this message in context: http://www.nabble.com/Accessing-a-file-in-AAR-tp16787898p16799138.html Sent from the Axis - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
