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
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev

Reply via email to