org.apache.maven.dotnet.executable.impl
Class DefaultNetExecutable

java.lang.Object
  extended by org.apache.maven.dotnet.executable.impl.DefaultNetExecutable
All Implemented Interfaces:
NetExecutable

public class DefaultNetExecutable
extends java.lang.Object
implements NetExecutable

Provides the default implementation of the net executable.

Author:
Shane Isbell

Field Summary
protected  ExecutableContext executableContext
           
 
Constructor Summary
DefaultNetExecutable()
           
 
Method Summary
 void execute()
          Compiles class files.
 java.util.List<java.lang.String> getCommands()
          Returns the commands that this compiler will use to compile the application.
 java.lang.String getExecutable()
          Returns the executable file name that this compiler will use to compile the application.
 java.io.File getExecutionPath()
          Returns the parent directory of the executable.
 Vendor getVendor()
          Returns vendor framework used to run executable.
 void init(NMavenContext nmavenContext)
          Initialize this compiler.
 void resetCommands(java.util.List<java.lang.String> commands)
          Resets the commands to be used by the executable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

executableContext

protected ExecutableContext executableContext
Constructor Detail

DefaultNetExecutable

public DefaultNetExecutable()
Method Detail

getCommands

public java.util.List<java.lang.String> getCommands()
                                             throws ExecutionException
Description copied from interface: NetExecutable
Returns the commands that this compiler will use to compile the application. This list is unmodifiable.

Specified by:
getCommands in interface NetExecutable
Returns:
the commands that this compiler will use to compile the application
Throws:
ExecutionException

resetCommands

public void resetCommands(java.util.List<java.lang.String> commands)
Description copied from interface: NetExecutable
Resets the commands to be used by the executable. This should only be used if the executable is being reused with different commands from the one that it was initialized with.

Specified by:
resetCommands in interface NetExecutable

getExecutionPath

public java.io.File getExecutionPath()
Description copied from interface: NetExecutable
Returns the parent directory of the executable.

Specified by:
getExecutionPath in interface NetExecutable
Returns:
the parent directory of the executable

execute

public void execute()
             throws ExecutionException
Description copied from interface: NetExecutable
Compiles class files.

Specified by:
execute in interface NetExecutable
Throws:
ExecutionException - if the compiler writes to the standard error stream. artifact (module, library, exe, winexe) or the target artifact is not valid for the compiler

getExecutable

public java.lang.String getExecutable()
                               throws ExecutionException
Description copied from interface: NetExecutable
Returns the executable file name that this compiler will use to compile the application.

Specified by:
getExecutable in interface NetExecutable
Returns:
the executable file name that this compiler will use to compile the application
Throws:
ExecutionException

getVendor

public Vendor getVendor()
Description copied from interface: NetExecutable
Returns vendor framework used to run executable.

Specified by:
getVendor in interface NetExecutable
Returns:
vendor vendor framework used to run executable

init

public void init(NMavenContext nmavenContext)
Description copied from interface: NetExecutable
Initialize this compiler.

Specified by:
init in interface NetExecutable


Copyright © 2007 NMaven. All Rights Reserved.