Issue Details (XML | Word | Printable)

Key: GDS-843
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Franck Wolff
Reporter: Franck Wolff
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
GraniteDS

Deleted and renamed classes should be cleaned

Created: 09/Mar/11 10:12 PM   Updated: 12/May/12 07:33 PM   Resolved: 12/May/12 07:33 PM
Component/s: Granite Eclipse Builder
Affects Version/s: None
Fix Version/s: 2.3.2.GA


 Description  « Hide
-> remove all AS3 Base classes (or the class itself if it doesn't have a Base class).

Franck Wolff added a comment - 12/May/12 07:33 PM
The builder does not delete any file but renames them:

Given a deleted/renamed Java source file "path.to.MyClass.java" in the generator scope, the builder looks for all potential AS3 outputs using the pattern "path.to.MyClass[$...][Base].as" and renames them to "path.to.MyClass[$...][Base].as.[millis].hid". It take cares of package translators (if any) and configured AS3 output dir for the given Java source.

If any other AS3 file hold a reference to renamed classes, this operation will lead to compilation errors, which is the main goal of this improvement.

This behavior can potentially lead to errors, for example renaming an AS3 file named "path.to.MyClass$Something.as", while this file hasn't been generated but written by end. This is, however, a very unlikely case, and it is always possible to revert the operation.