Hi Anjana, I believe the changes we have done for the ESB integration tests will fix the file errors. Please have a look.
Thanks, Supun.. On Mon, Mar 21, 2011 at 8:50 AM, Anjana Fernando <[email protected]> wrote: > Hi, > > In case if you got any problems when running the new integration tests > and the relative paths are not working properly, the following will > probably fix it. If you pass a relative path to FileInputStream, > either as a string or a File object, it will not resolve the absolute > path by using "user.dir" system property, but it resolves it in some > other way. But if you first create a File object and call it's > getAbsolutePath (and I guess getAbsoluteFile also), it will properly > return the absolute path by using "user.dir". So in places in using > FileInputStreams, you may want to use it like the following. > > FileInputStream in = new FileInputStream(new > File(relativePath).getAbsoluteFile()); > > Cheers, > Anjana. > > -- > Anjana Fernando > Software Engineer > WSO2, Inc.; http://wso2.com > lean.enterprise.middleware > _______________________________________________ > Carbon-dev mailing list > [email protected] > http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev > -- Supun Kamburugamuva Technical Lead & Product Manager, WSO2 Inc.; http://wso2.com Member, Apache Software Foundation; http://www.apache.org WSO2 Inc.; http://wso2.org E-mail: [email protected]; Mobile: +94 77 431 3585 Blog: http://supunk.blogspot.com _______________________________________________ Carbon-dev mailing list [email protected] http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
