Great. Thanks for sharing this. Azeez
On Mon, Mar 21, 2011 at 12:04 PM, Anjana Fernando <[email protected]> wrote: > Hi Supun, > > I see, in your case, you're actually creating and giving the absolute > paths to the tests. What I actually did was fix the other code which > handles file paths. For example, in DSS we can give a XSLT file path > to a data service query. And this can be a relative path, so in DSS > core code, if this was not handled in the way I mentioned earlier, the > relative paths given in the .dbs file will not work in some occasions. > > Cheers, > Anjana. > > On Mon, Mar 21, 2011 at 11:27 AM, Supun Kamburugamuva <[email protected]> > wrote: > > 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 > > > > > > -- > 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 > -- *Afkham Azeez* Senior Software Architect & Senior Manager; WSO2, Inc.; http://wso2.com, * * *Member; Apache Software Foundation; **http://www.apache.org/*<http://www.apache.org/> * email: **[email protected]* <[email protected]>* cell: +94 77 3320919 blog: **http://blog.afkham.org* <http://blog.afkham.org>* twitter: **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez> * linked-in: **http://lk.linkedin.com/in/afkhamazeez* * * *Lean . Enterprise . Middleware*
_______________________________________________ Carbon-dev mailing list [email protected] http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
