org.apache.maven.plugin.deb
Class SystemCommand
java.lang.Object
org.apache.maven.plugin.deb.SystemCommand
public class SystemCommand
- extends 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(String command)
setBaseDir
public SystemCommand setBaseDir(String baseDir)
addArgument
public SystemCommand addArgument(String argument)
addEnviroment
public SystemCommand addEnviroment(String variable)
execute
public void execute()
throws Exception
- Throws:
Exception
Copyright © 2003-2011 Codehaus. All Rights Reserved.