-
Bug
-
Resolution: Unresolved
-
Critical
-
None
-
Windows 2008 Server
I hit a case where the Perforce "quick clean" option does not remove all of my class files.
This leaves a class file in the /classes output directory, and when rebuilt, blocks the anonymous (MyClass$Anon.class) files from being generated, breaking the build.
I do not see any error messages that indicate the root cause of this issue.
This issues took me hours to track down and verify. If quick-clean had aborted the build when it fails, this would have saved a lot of headache.
Here is failing directory before the clean:
d---- 4/2/2013 3:52 PM firstperson
d---- 4/2/2013 3:52 PM orbit
a-- 4/2/2013 3:52 PM 16553 BasicView.class
a-- 4/2/2013 3:52 PM 4859 BasicViewPropertyLimits.class
a-- 4/2/2013 3:52 PM 2793 ViewElevationAnimator.class
a-- 4/2/2013 3:52 PM 470 ViewModel.class
a-- 4/2/2013 3:52 PM 1237 ViewPropertyAccessor$ElevationAccessor.class
a-- 4/2/2013 3:52 PM 913 ViewPropertyAccessor$EyePositionAccessor.class
a-- 4/2/2013 3:52 PM 876 ViewPropertyAccessor$HeadingAccessor.class
a-- 4/2/2013 3:52 PM 868 ViewPropertyAccessor$PitchAccessor.class
a-- 4/2/2013 3:52 PM 1422 ViewPropertyAccessor.class
a-- 4/2/2013 3:52 PM 826 ViewPropertyLimits.class
a-- 4/2/2013 3:52 PM 1366 ViewUtil$ViewState.class
a-- 4/2/2013 3:52 PM 11575 ViewUtil.class
After the clean I get:
d---- 4/2/2013 4:43 PM firstperson
d---- 4/2/2013 4:43 PM orbit
a-- 4/2/2013 3:52 PM 1422 ViewPropertyAccessor.class
As far as I can tell, there is no reason why this file should not have been removed.
Newer versions of Windows will sometimes allow a file to be silently "deleted" but it won't actually be removed from the file system until all open file handles have been closed. I'll double check to make sure that the plugin at least throws a warning if a file isn't deleted, but I don't believe there is a lot else that can be done.