modules/annotation-processor/src/main/java/org/ballerinalang/natives/annotation/processor/BallerinaAnnotationProcessor.java
private void generateNativeBalFiles(Map<String, String> options, String srcDir) {
        String targetDir = options.get(TARGET_DIR);
        if (targetDir == null) {
            throw new BallerinaException("target directory to store the generated ballerina files, must be specified.");
        }
        NativeBallerinaFileBuilder nativeBallerinaFileBuilder = new NativeBallerinaFileBuilder(srcDir, targetDir);
        nativeBallerinaFileBuilder.addNativePackages(nativePackages);
        nativeBallerinaFileBuilder.build();
    }
/**
     * Generate the built-in ballerina files.
     * 
     * @param srcDir Path to the ballerina source directory
     */
Generate the built-in ballerina files.

@param srcDir Path to the ballerina source directory
Generate the built - in ballerina files . @param srcDir Path to the ballerina source directory
private void generateNativeBalFiles(Map<String, String> options, String srcDir) {
        String targetDir = options.get(TARGET_DIR);
        if (targetDir == null) {
            throw new BallerinaException("target directory to store the generated ballerina files, must be specified.");
        }
        NativeBallerinaFileBuilder nativeBallerinaFileBuilder = new NativeBallerinaFileBuilder(srcDir, targetDir);
        nativeBallerinaFileBuilder.addNativePackages(nativePackages);
        nativeBallerinaFileBuilder.build();
    }
private void generateNativeBalFiles ( Map < String , String > options , String srcDir ) { String targetDir = options . get ( TARGET_DIR ) ; if ( targetDir == null ) { throw new BallerinaException ( "target directory to store the generated ballerina files, must be specified." ) ; } NativeBallerinaFileBuilder nativeBallerinaFileBuilder = new NativeBallerinaFileBuilder ( srcDir , targetDir ) ; nativeBallerinaFileBuilder . addNativePackages ( nativePackages ) ; nativeBallerinaFileBuilder . build ( ) ; }
Generate the built-in ballerina files.
Generate the built - in ballerina files .