holatuwol/liferay-portal — pull request #18 by jonathanmccann (2014-04-02 14:54:41+00:00)
Title: LPS-45478

Hey Minhchau,

I don't really like the duplicated calls to addPortletFileEntry in BackgroundTaskLocalServiceImpl and the if statements are even more complex, but I'm unsure of another way to handle this situation. I thought about passing through a boolean to say whether or not it's importing/exporting but I'm not sure if that would be any better. Let me know your thoughts on this.

Thanks.