14.4. RFRS ConsiderationsThe "Build" section of the RFRS Requirements includes six itemsthree requirements and three best practicesdealing with builders. 14.4.1. Use builders to convert resources (RFRS 3.8.1)
To pass this requirement, start by showing your builder in action. Describe how it is invoked and what resources it transforms. Turn off the Build automatically preference on the General > Workspace preference page and show that your builder does not run. Invoke the Project > Rebuild Project command to show that your builder correctly processes any accumulated changes. 14.4.2. Do not replace existing builders (RFRS 3.8.3)
Start by configuring a project to use your builder. Open the project's .project file to show that your builder has been added and that none of the existing builders, such as org.eclipse.jdt.core.javabuilder, have been removed. 14.4.3. Do not misuse the term "build" (RFRS 5.3.8.1)
Show any places in your product documentation where the term "build" is used and confirm that any such uses are related to your plug-in's builders. 14.4.4. Mark created resources as "derived" (RFRS 5.3.8.2)
For this test, demonstrate that any resources created by your builder are marked as derived. In the case of a .class file created by the Java compiler, you would open the Properties dialog and show that the Derived option has been checked (see Figure 14-14). Figure 14-14. The Properties dialog for the HelloWorld.class file.14.4.5. Respond to clean-build requests (RFRS 5.3.8.3)
For this test, check that the outputs of the builder in question exist and note their timestamp using the Properties view. Invoke a CLEAN_BUILD request (Projects > Clean...). Verify that the outputs of the builder being tested have been recreated (check timestamps) and that the builder ran to completion without errors (check the error log). 14.4.6. Use IResourceProxy when possible (RFRS 5.3.8.4)Best Practice #6 states:
To pass this test, you should avoid using IResourceVisitor objects and use IResourceProxyVistor objects instead. Search your plug-in source code for references to IResourceVisitor and explain why IResourceProxyVisitor could not be used instead. 14.4.7. Builders must be added by natures (RFRS 5.3.8.5)
For this test, show your nature definition in the plugin.xml file. Create a project with your nature and demonstrate that the builder is automatically configured. Add your nature to an existing project's .project file and show that your builder is invoked as soon as the file is saved. |