static function run_convert_configuration( $task=null, $args=array(), $cliopts=array() )
    {
        self::setConfigDir( $cliopts );
        $extname = @$args[0];
        if ( $extname == '' )
        {
            $extname = dirname( __FILE__ );
        }
        while ( !is_file( "ant/$extname.properties" ) )
        {
            $extname = pake_input( 'What is the name of the current extension?' );
            if ( !is_file( "ant/$extname.properties" ) )
            {
                pake_echo( "File ant/$extname.properties not found" );
            }
        }

        self::convertPropertyFileToYamlFile(
            "ant/$extname.properties",
            self::getConfigDir() . "/options-$extname.yaml",
            array( $extname => '', 'external' => 'dependencies', 'dependency' => 'extensions', 'repository' => array( 'svn', 'url' ) ),
            "extension:\n    name: $extname\n\n" );

        foreach( array( 'files.to.parse.txt' => 'to_parse', 'files.to.exclude.txt' => 'to_exclude' ) as $file => $option )
        {
            $src = "ant/$file";
            if ( file_exists( $src ) )
            {
                //$ok = !file_exists( $dst ) || ( pake_input( "Destionation file $dst exists. Overwrite? [y/n]", 'n' ) == 'y' );
                //$ok && pake_copy( $src, $dst, array( 'override' => true ) );
                if ( count( $in = file( $src, FILE_SKIP_EMPTY_LINES | FILE_IGNORE_NEW_LINES ) ) )
                {
                    $in = "\n\nfiles:\n    $option: [" . implode( ', ', $in ) . "]\n";
                    file_put_contents( self::getConfigDir() . "options-$extname.yaml", $in, FILE_APPEND );
                }
            }
        }
    }
static function run_convert_configuration( $task=null, $args=array(), $cliopts=array() )
    {
        self::setConfigDir( $cliopts );
        $extname = @$args[0];
        if ( $extname == '' )
        {
            $extname = dirname( __FILE__ );
        }
        while ( !is_file( "ant/$extname.properties" ) )
        {
            $extname = pake_input( 'What is the name of the current extension?' );
            if ( !is_file( "ant/$extname.properties" ) )
            {
                pake_echo( "File ant/$extname.properties not found" );
            }
        }

        self::convertPropertyFileToYamlFile(
            "ant/$extname.properties",
            self::getConfigDir() . "/options-$extname.yaml",
            array( $extname => '', 'external' => 'dependencies', 'dependency' => 'extensions', 'repository' => array( 'svn', 'url' ) ),
            "extension:\n    name: $extname\n\n" );

        foreach( array( 'files.to.parse.txt' => 'to_parse', 'files.to.exclude.txt' => 'to_exclude' ) as $file => $option )
        {
            $src = "ant/$file";
            if ( file_exists( $src ) )
            {
                //$ok = !file_exists( $dst ) || ( pake_input( "Destionation file $dst exists. Overwrite? [y/n]", 'n' ) == 'y' );
                //$ok && pake_copy( $src, $dst, array( 'override' => true ) );
                if ( count( $in = file( $src, FILE_SKIP_EMPTY_LINES | FILE_IGNORE_NEW_LINES ) ) )
                {
                    $in = "\n\nfiles:\n    $option: [" . implode( ', ', $in ) . "]\n";
                    file_put_contents( self::getConfigDir() . "options-$extname.yaml", $in, FILE_APPEND );
                }
            }
        }
    }
static function run_convert_configuration ( $ task = null , $ args = array ( ) , $ cliopts = array ( ) ) { self :: setConfigDir ( $ cliopts ) ; $ extname = @ $ args [ 0 ] ; if ( $ extname == '' ) { $ extname = dirname ( __FILE__ ) ; } while ( ! is_file ( "ant/$extname.properties" ) ) { $ extname = pake_input ( 'What is the name of the current extension?' ) ; if ( ! is_file ( "ant/$extname.properties" ) ) { pake_echo ( "File ant/$extname.properties not found" ) ; } } self :: convertPropertyFileToYamlFile ( "ant/$extname.properties" , self :: getConfigDir ( ) . "/options-$extname.yaml" , array ( $ extname => '' , 'external' => 'dependencies' , 'dependency' => 'extensions' , 'repository' => array ( 'svn' , 'url' ) ) , "extension:\n    name: $extname\n\n" ) ; foreach ( array ( 'files.to.parse.txt' => 'to_parse' , 'files.to.exclude.txt' => 'to_exclude' ) as $ file => $ option ) { $ src = "ant/$file" ; if ( file_exists ( $ src ) ) { //$ok = !file_exists( $dst ) || ( pake_input( "Destionation file $dst exists. Overwrite? [y/n]", 'n' ) == 'y' );
 //$ok && pake_copy( $src, $dst, array( 'override' => true ) );
 if ( count ( $ in = file ( $ src , FILE_SKIP_EMPTY_LINES | FILE_IGNORE_NEW_LINES ) ) ) { $ in = "\n\nfiles:\n    $option: [" . implode ( ', ' , $ in ) . "]\n" ; file_put_contents ( self :: getConfigDir ( ) . "options-$extname.yaml" , $ in , FILE_APPEND ) ; } } } }
Converts an existing ant properties file in its corresponding yaml version

Converts the .properties files used to hold configuration settings for old
versions of ezextensionbuilder (the ones based on ant) to a .yaml configuration
file that is suitable for this version of the script.
It is recommended to inspect by hand the generated .yaml file after executing
the conversion.
Converts an existing ant properties file in its corresponding yaml version