org.apache.maven.plugin.deb
Class SystemCommand
java.lang.Object
org.apache.maven.plugin.deb.SystemCommand
public class SystemCommand
- extends java.lang.Object
Executes a system command.
Typical usage:
new SystemCommand()
.setBaseDir(directory)
.setCommand("dpkg")
.addArgument("-b")
.addArgument("deb")
.addArgument(debFileName)
.execute();
- Version:
- $Id: SystemCommand.java 1483 2006-02-13 09:19:48Z trygvis $
- Author:
- Trygve Laugstøl
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SystemCommand
public SystemCommand()
setCommand
public SystemCommand setCommand(java.lang.String command)
setBaseDir
public SystemCommand setBaseDir(java.lang.String baseDir)
addArgument
public SystemCommand addArgument(java.lang.String argument)
addEnviroment
public SystemCommand addEnviroment(java.lang.String variable)
execute
public void execute()
throws java.lang.Exception
- Throws:
java.lang.Exception
Copyright © 2003-2010. All Rights Reserved.