Package npanday.executable

Examples of npanday.executable.ExecutionException


        throws ExecutionException
    {
        File path = new File( compilerContext.getCompilerCapability().getAssemblyPath() );
        if ( !path.exists() )
        {
            throw new ExecutionException(
                "NPANDAY-067-002: The assembly path does not exist: Path = " + path.getAbsolutePath() );
        }

        List<String> commands = netCompiler.getCommands();
        commands.add( "/nostdlib+" );
View Full Code Here


    public List<String> getCommands()
        throws ExecutionException
    {
        if ( compilerContext == null )
        {
            throw new ExecutionException( "NPANDAY-068-000: Compiler has not been initialized with a context" );
        }
        CompilerConfig config = compilerContext.getNetCompilerConfig();
       
        compilerContext.getCompilerRequirement().getFrameworkVersion();
View Full Code Here

    public List<String> getCommands()
        throws ExecutionException
    {
        if ( compilerContext == null )
        {
            throw new ExecutionException( "NPANDAY-069-000: Compiler has not been initialized with a context" );
        }
        CompilerConfig config = compilerContext.getNetCompilerConfig();
        List<Artifact> resources = compilerContext.getLibraryDependencies();
        List<Artifact> modules = compilerContext.getDirectModuleDependencies();
View Full Code Here

    public List<String> getCommands()
        throws ExecutionException
    {
        if ( compilerContext == null )
        {
            throw new ExecutionException( "NPANDAY-068-000: Compiler has not been initialized with a context" );
        }
        List<String> commands = new ArrayList<String>();

        CompilerConfig config = compilerContext.getNetCompilerConfig();
        String sourceDirectory = compilerContext.getSourceDirectoryName();
View Full Code Here

            commandExecutor.setLogger( logger );
            commandExecutor.executeCommand( getExecutable(), getCommands(), getExecutionPath(), true );
        }
        catch ( ExecutionException e )
        {
            throw new ExecutionException( "NPANDAY-070-000: Execution Path = " +
                ( ( getExecutionPath() != null ) ? getExecutionPath().getAbsolutePath() : "unknown" ) + ", Command = " +
                commands, e );
        }
       
        // This check is too broad, as seen in Issue #9903
View Full Code Here

    public String getExecutable()
        throws ExecutionException
    {
        if ( executableContext == null )
        {
            throw new ExecutionException( "NPANDAY-070-002: Executable has not been initialized with a context" );
        }
        return executableContext.getExecutableCapability().getExecutable();
    }
View Full Code Here

    public String getExecutable()
        throws ExecutionException
    {
        if ( executableContext == null )
        {
            throw new ExecutionException( "NPANDAY-063-002: Executable has not been initialized with a context" );
        }
        return executableContext.getExecutableCapability().getExecutable();
    }
View Full Code Here

            commandExecutor.setLogger( logger );
            commandExecutor.executeCommand( getExecutable(), getCommands(), getExecutionPath(), true );
        }
        catch ( ExecutionException e )
        {
            throw new ExecutionException( "NPANDAY-063-000: Execution Path = " +
                ( ( getExecutionPath() != null ) ? getExecutionPath().getAbsolutePath() : "unknown" ) + ", Executable = " + getExecutable() + ", Args = " +
                commands, e );
        }
        if ( commandExecutor.getStandardOut().contains( "error" )
          && !commandExecutor.getStandardOut().contains( "exit code = 0" ) )       
        {
            throw new ExecutionException(
                "NPANDAY-063-001: Execution Path = " +
                ( ( getExecutionPath() != null ) ? getExecutionPath().getAbsolutePath() : "unknown" ) + ", Executable = " + getExecutable() + ", Args = " +
                commands );
        }
    }
View Full Code Here

    public String getExecutable()
        throws ExecutionException
    {
        if ( executableContext == null )
        {
            throw new ExecutionException( "NPANDAY-063-002: Executable has not been initialized with a context" );
        }

        List<String> executablePaths = executableContext.getExecutableConfig().getExecutionPaths();
        if ( executablePaths != null )
        {
            for ( String executablePath : executablePaths )
            {
                File exe = new File( executablePath );
                logger.debug( "NPANDAY-063-004: Checking executable path = " + exe.getAbsolutePath() );
                if ( exe.exists() )
                {
                    return new File( executablePath ).getName();
                }
                else if ( executablePath.equals( "mono" ) )
                {
                    return executablePath;
                }
            }
        }
        throw new ExecutionException( "NPANDAY-063-003: Executable path has not been set or is invalid" );
    }
View Full Code Here

    public String getExecutable()
        throws ExecutionException
    {
        if ( compilerContext == null )
        {
            throw new ExecutionException( "NPANDAY-068-001: Compiler has not been initialized with a context" );
        }
        return compilerContext.getCompilerCapability().getExecutable();
    }
View Full Code Here

TOP

Related Classes of npanday.executable.ExecutionException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.