Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
titleSample ANT Script to extract annotations
    <import file="Consultingwerk/Studio/ExtractClassAnnotations/extract-class-annotations.xml"/>
 
    <target name="ExtractClassAnnotations">
        <extractClassAnnotations directory="Consultingwerk"
                                 fileMask="*BusinessEntity.cls"
                                 overwriteWriteProtected="true"
                                 excludeAnnotations="@Test,@TestIgnore,@BusinessEntityGenerator"
                                 verbose="true">

            <!-- If propath is required to find the tools -->
            <propathentries>
                <pathelement path="." />
                <pathelement path="../SmartComponentLibrary" />
            </propathentries>
        </extractClassAnnotations>
    </target> 

This ANT script will extract annotations from all classes in the Consultingwerk directory that match the fileMask *BusinessEntity.cls. Write protected files will be overwritten and @Test, @TestIgnore and @BusinessEntityGenerator annotations will be ignored. 

...