public String getStartupUrl()
        throws MojoExecutionException
    {
        if ( noServer )
        {
            return runTarget;
        }

        int dash = runTarget.indexOf( '/' );
        if ( dash > 0 )
        {
            String prefix = runTarget.substring( 0, dash );
            // runTarget includes the GWT module full path.
            // Lets retrieve the GWT module and apply the rename-to directive
            String[] modules = getModules();
            for ( String module : modules )
            {
                if ( prefix.equals( module ) )
                {
                    try
                    {
                        return readModule( module ).getPath() + '/' + runTarget.substring( dash + 1 );
                    }
                    catch ( GwtModuleReaderException e )
                    {
                        throw new MojoExecutionException( e.getMessage(), e );
                    }
                }
            }
        }
        return runTarget;
    }
public String getStartupUrl ( ) throws MojoExecutionException { if ( noServer ) { return runTarget ; } int dash = runTarget . indexOf ( '/' ) ; if ( dash > 0 ) { String prefix = runTarget . substring ( 0 , dash ) ; String [ ] modules = getModules ( ) ; for ( String module : modules ) { if ( prefix . equals ( module ) ) { try { return readModule ( module ) . getPath ( ) + '/' + runTarget . substring ( dash + 1 ) ; } catch ( GwtModuleReaderException e ) { throw new MojoExecutionException ( e . getMessage ( ) , e ) ; } } } } return runTarget ; }
@return the startup URL to open in hosted browser (gwt 1.6+)