You're right. :(
I'd say it's more of a buggy design issue.
A possible fix would be to parse the value of the "depName" variable (e.g.
"farm/foo.ear") into a parentName string (e.g. "farm") and a fileName
string ("foo.ear").
You then use the findParent(parentName) method to get the File that points to the farm/
dir, then create a new File(parent, fileName) and use that for the timestamp comparison.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4226745#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...