/// <summary> /// Example code /// </summary> /// <param name="args"></param> public static void Main(string[] args) { log4net.Config.BasicConfigurator.Configure(); SonatypeDependencyManager dm = new SonatypeDependencyManager(groupId, artifactId, version, packaging, classifier); FileInfo fileLocation = dm.DownloadArtifactToFolder(System.IO.Path.GetTempPath()); IUnzipper unzipper = new SevenZipUnzipper(fileLocation); string unzipFileLocation = unzipper.UnzipFile(fileLocation.Directory.FullName); OpenEngSBConnection openengsb = new OpenEngSBConnection(unzipFileLocation); openengsb.StartOpenEngSB(); openengsb.ConnectToOSBWithSSH(); List <String> commands = new List <string>(); commands.Add("feature:install openengsb-domain-example"); commands.Add("feature:install openengsb-ports-jms"); commands.Add("feature:install openengsb-ports-rs"); foreach (String command in commands) { openengsb.ExecuteCommand(command); } openengsb.CloseConnection(); openengsb.Shutdown(); }
public static void CloseOSB() { openengsb.CloseConnection(); }