@Test public void testStartFlexMetrics() { try { final File outputFile = File.createTempFile( "metrics", "" ); FlexMetrics.startFlexMetrics( new String[] { "-s", getTestDirectory().getAbsolutePath(), "-o", outputFile.getAbsolutePath() } ); assertTrue( "outputFile has not been created", outputFile.exists() ); assertTrue( "outputFile is empty", outputFile.length() > 0 ); } catch ( final Exception e ) { Logger.getAnonymousLogger().warning( e.getMessage() ); fail(); } }
static boolean startFlexMetrics( final String[] args ) throws JSAPException, PMDException, URISyntaxException, IOException, DocumentException { if ( areCommandLineOptionsCorrect( args ) ) { final File sourceDirectory = new File( getParameterValue( CommandLineOptions.SOURCE_DIRECTORY ) ); final File outputDirectory = new File( getParameterValue( CommandLineOptions.OUTPUT ) ); double mxmlFactor = 0; try { mxmlFactor = getDoubleParameter( CommandLineOptions.MXML_FACTOR ); } catch ( final UnspecifiedParameterException e ) { } new com.adobe.ac.pmd.metrics.engine.FlexMetrics( sourceDirectory, mxmlFactor ).execute( outputDirectory ); } return config.success(); }
FlexMetrics { static boolean startFlexMetrics( final String[] args ) throws JSAPException, PMDException, URISyntaxException, IOException, DocumentException { if ( areCommandLineOptionsCorrect( args ) ) { final File sourceDirectory = new File( getParameterValue( CommandLineOptions.SOURCE_DIRECTORY ) ); final File outputDirectory = new File( getParameterValue( CommandLineOptions.OUTPUT ) ); double mxmlFactor = 0; try { mxmlFactor = getDoubleParameter( CommandLineOptions.MXML_FACTOR ); } catch ( final UnspecifiedParameterException e ) { } new com.adobe.ac.pmd.metrics.engine.FlexMetrics( sourceDirectory, mxmlFactor ).execute( outputDirectory ); } return config.success(); } }
FlexMetrics { static boolean startFlexMetrics( final String[] args ) throws JSAPException, PMDException, URISyntaxException, IOException, DocumentException { if ( areCommandLineOptionsCorrect( args ) ) { final File sourceDirectory = new File( getParameterValue( CommandLineOptions.SOURCE_DIRECTORY ) ); final File outputDirectory = new File( getParameterValue( CommandLineOptions.OUTPUT ) ); double mxmlFactor = 0; try { mxmlFactor = getDoubleParameter( CommandLineOptions.MXML_FACTOR ); } catch ( final UnspecifiedParameterException e ) { } new com.adobe.ac.pmd.metrics.engine.FlexMetrics( sourceDirectory, mxmlFactor ).execute( outputDirectory ); } return config.success(); } private  FlexMetrics(); }
FlexMetrics { static boolean startFlexMetrics( final String[] args ) throws JSAPException, PMDException, URISyntaxException, IOException, DocumentException { if ( areCommandLineOptionsCorrect( args ) ) { final File sourceDirectory = new File( getParameterValue( CommandLineOptions.SOURCE_DIRECTORY ) ); final File outputDirectory = new File( getParameterValue( CommandLineOptions.OUTPUT ) ); double mxmlFactor = 0; try { mxmlFactor = getDoubleParameter( CommandLineOptions.MXML_FACTOR ); } catch ( final UnspecifiedParameterException e ) { } new com.adobe.ac.pmd.metrics.engine.FlexMetrics( sourceDirectory, mxmlFactor ).execute( outputDirectory ); } return config.success(); } private  FlexMetrics(); static void main( final String[] args ); }
FlexMetrics { static boolean startFlexMetrics( final String[] args ) throws JSAPException, PMDException, URISyntaxException, IOException, DocumentException { if ( areCommandLineOptionsCorrect( args ) ) { final File sourceDirectory = new File( getParameterValue( CommandLineOptions.SOURCE_DIRECTORY ) ); final File outputDirectory = new File( getParameterValue( CommandLineOptions.OUTPUT ) ); double mxmlFactor = 0; try { mxmlFactor = getDoubleParameter( CommandLineOptions.MXML_FACTOR ); } catch ( final UnspecifiedParameterException e ) { } new com.adobe.ac.pmd.metrics.engine.FlexMetrics( sourceDirectory, mxmlFactor ).execute( outputDirectory ); } return config.success(); } private  FlexMetrics(); static void main( final String[] args );  }