provisionr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From as...@apache.org
Subject [21/21] git commit: PROVISIONR-20. Change groupId from com.axemblr.provisionr to org.apache.provisionr
Date Mon, 01 Apr 2013 08:52:44 GMT
PROVISIONR-20. Change groupId from com.axemblr.provisionr to org.apache.provisionr

* Changed com.axemblr to org.apache for all packages
* Also removed all mentions of Axemblr
* Updated README.md to use the new groupId
* All components under activiti/ now have org.apache.provisionr as groupId
* Added org.apache:apache as parent to the project parent pom
* Updated Apache Karaf branding bundle


Project: http://git-wip-us.apache.org/repos/asf/incubator-provisionr/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-provisionr/commit/6ba40c4b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-provisionr/tree/6ba40c4b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-provisionr/diff/6ba40c4b

Branch: refs/heads/master
Commit: 6ba40c4b2fcd597b35a08e44ae38ab69ad3b9660
Parents: 6559ede
Author: Andrei Savu <asavu@apache.org>
Authored: Mon Apr 1 00:23:47 2013 +0300
Committer: Andrei Savu <asavu@apache.org>
Committed: Mon Apr 1 11:47:22 2013 +0300

----------------------------------------------------------------------
 README.md                                          |   43 +--
 activiti/commands/pom.xml                          |   10 +-
 .../activiti/karaf/commands/ActivitiCommand.java   |   64 ----
 .../activiti/karaf/commands/AddGroupCommand.java   |   64 ----
 .../activiti/karaf/commands/AddUserCommand.java    |   54 ---
 .../commands/CleanHistoryActivitiCommand.java      |  125 -------
 .../karaf/commands/DeleteGroupCommand.java         |   33 --
 .../activiti/karaf/commands/DeleteUserCommand.java |   38 ---
 .../karaf/commands/InfoActivitiCommand.java        |  249 --------------
 .../karaf/commands/KillActivitiCommand.java        |   72 ----
 .../karaf/commands/ListActivitiCommand.java        |  220 ------------
 .../activiti/karaf/commands/ListGroupsCommand.java |   39 ---
 .../activiti/karaf/commands/ListUsersCommand.java  |   40 ---
 .../karaf/commands/SignalActivitiCommand.java      |  110 ------
 .../karaf/commands/StartActivitiCommand.java       |   51 ---
 .../karaf/commands/UndeployActivitiCommand.java    |   80 -----
 .../handlers/AbstractActivitiPrintHandler.java     |  178 ----------
 .../commands/handlers/ActivitiPrintHandler.java    |   47 ---
 .../handlers/DefaultActivitiPrintHandler.java      |   57 ----
 .../org/activiti/karaf/commands/util/Commands.java |   97 ------
 .../activiti/karaf/commands/util/TextTable.java    |   94 ------
 .../activiti/karaf/commands/ActivitiCommand.java   |   64 ++++
 .../activiti/karaf/commands/AddGroupCommand.java   |   64 ++++
 .../activiti/karaf/commands/AddUserCommand.java    |   54 +++
 .../commands/CleanHistoryActivitiCommand.java      |  125 +++++++
 .../karaf/commands/DeleteGroupCommand.java         |   33 ++
 .../activiti/karaf/commands/DeleteUserCommand.java |   38 +++
 .../karaf/commands/InfoActivitiCommand.java        |  249 ++++++++++++++
 .../karaf/commands/KillActivitiCommand.java        |   72 ++++
 .../karaf/commands/ListActivitiCommand.java        |  220 ++++++++++++
 .../activiti/karaf/commands/ListGroupsCommand.java |   39 +++
 .../activiti/karaf/commands/ListUsersCommand.java  |   40 +++
 .../karaf/commands/SignalActivitiCommand.java      |  110 ++++++
 .../karaf/commands/StartActivitiCommand.java       |   51 +++
 .../karaf/commands/UndeployActivitiCommand.java    |   80 +++++
 .../handlers/AbstractActivitiPrintHandler.java     |  178 ++++++++++
 .../commands/handlers/ActivitiPrintHandler.java    |   47 +++
 .../handlers/DefaultActivitiPrintHandler.java      |   57 ++++
 .../activiti/karaf/commands/util/Commands.java     |   97 ++++++
 .../activiti/karaf/commands/util/TextTable.java    |   94 ++++++
 .../resources/OSGI-INF/blueprint/bpm-commands.xml  |   26 +-
 .../karaf/commands/ActivitiCommandTest.java        |  117 -------
 .../activiti/karaf/commands/ActivitiTestCase.java  |  136 --------
 .../karaf/commands/InfoActivitiCommandTest.java    |  141 --------
 .../karaf/commands/ListActivitiCommandTest.java    |   46 ---
 .../karaf/commands/ActivitiCommandTest.java        |  117 +++++++
 .../activiti/karaf/commands/ActivitiTestCase.java  |  136 ++++++++
 .../karaf/commands/InfoActivitiCommandTest.java    |  141 ++++++++
 .../karaf/commands/ListActivitiCommandTest.java    |   46 +++
 activiti/explorer/pom.xml                          |   11 +-
 api/pom.xml                                        |    6 +-
 .../com/axemblr/provisionr/api/Provisionr.java     |   75 -----
 .../axemblr/provisionr/api/access/AdminAccess.java |   88 -----
 .../provisionr/api/access/AdminAccessBuilder.java  |   67 ----
 .../provisionr/api/hardware/BlockDevice.java       |   77 -----
 .../api/hardware/BlockDeviceBuilder.java           |   33 --
 .../axemblr/provisionr/api/hardware/Hardware.java  |   83 -----
 .../provisionr/api/hardware/HardwareBuilder.java   |   56 ----
 .../axemblr/provisionr/api/network/Network.java    |   87 -----
 .../provisionr/api/network/NetworkBuilder.java     |   57 ----
 .../axemblr/provisionr/api/network/Protocol.java   |   23 --
 .../com/axemblr/provisionr/api/network/Rule.java   |   84 -----
 .../provisionr/api/network/RuleBuilder.java        |   80 -----
 .../com/axemblr/provisionr/api/pool/Machine.java   |  164 ---------
 .../provisionr/api/pool/MachineBuilder.java        |   76 -----
 .../java/com/axemblr/provisionr/api/pool/Pool.java |  146 --------
 .../axemblr/provisionr/api/pool/PoolBuilder.java   |   94 ------
 .../axemblr/provisionr/api/provider/Provider.java  |  111 -------
 .../provisionr/api/provider/ProviderBuilder.java   |   63 ----
 .../provisionr/api/software/Repository.java        |   95 ------
 .../provisionr/api/software/RepositoryBuilder.java |   59 ----
 .../axemblr/provisionr/api/software/Software.java  |  124 -------
 .../provisionr/api/software/SoftwareBuilder.java   |   89 -----
 .../provisionr/api/util/BuilderWithOptions.java    |   89 -----
 .../axemblr/provisionr/api/util/WithOptions.java   |   44 ---
 .../java/org/apache/provisionr/api/Provisionr.java |   75 +++++
 .../apache/provisionr/api/access/AdminAccess.java  |   88 +++++
 .../provisionr/api/access/AdminAccessBuilder.java  |   67 ++++
 .../provisionr/api/hardware/BlockDevice.java       |   77 +++++
 .../api/hardware/BlockDeviceBuilder.java           |   33 ++
 .../apache/provisionr/api/hardware/Hardware.java   |   82 +++++
 .../provisionr/api/hardware/HardwareBuilder.java   |   56 ++++
 .../org/apache/provisionr/api/network/Network.java |   84 +++++
 .../provisionr/api/network/NetworkBuilder.java     |   57 ++++
 .../apache/provisionr/api/network/Protocol.java    |   23 ++
 .../org/apache/provisionr/api/network/Rule.java    |   84 +++++
 .../apache/provisionr/api/network/RuleBuilder.java |   79 +++++
 .../org/apache/provisionr/api/pool/Machine.java    |  164 +++++++++
 .../apache/provisionr/api/pool/MachineBuilder.java |   76 +++++
 .../java/org/apache/provisionr/api/pool/Pool.java  |  146 ++++++++
 .../apache/provisionr/api/pool/PoolBuilder.java    |   94 ++++++
 .../apache/provisionr/api/provider/Provider.java   |  109 ++++++
 .../provisionr/api/provider/ProviderBuilder.java   |   63 ++++
 .../apache/provisionr/api/software/Repository.java |   95 ++++++
 .../provisionr/api/software/RepositoryBuilder.java |   59 ++++
 .../apache/provisionr/api/software/Software.java   |  124 +++++++
 .../provisionr/api/software/SoftwareBuilder.java   |   89 +++++
 .../provisionr/api/util/BuilderWithOptions.java    |   89 +++++
 .../apache/provisionr/api/util/WithOptions.java    |   44 +++
 .../axemblr/provisionr/api/AssertSerializable.java |   54 ---
 .../provisionr/api/access/AdminAccessTest.java     |   35 --
 .../provisionr/api/network/NetworkTest.java        |   42 ---
 .../axemblr/provisionr/api/network/RuleTest.java   |   31 --
 .../axemblr/provisionr/api/pool/MachineTest.java   |   42 ---
 .../com/axemblr/provisionr/api/pool/PoolTest.java  |   67 ----
 .../provisionr/api/provider/ProviderTest.java      |   38 ---
 .../provisionr/api/software/RepositoryTest.java    |   39 ---
 .../provisionr/api/software/SoftwareTest.java      |   49 ---
 .../api/util/BuilderWithOptionsTest.java           |   59 ----
 .../apache/provisionr/api/AssertSerializable.java  |   54 +++
 .../provisionr/api/access/AdminAccessTest.java     |   35 ++
 .../apache/provisionr/api/network/NetworkTest.java |   42 +++
 .../apache/provisionr/api/network/RuleTest.java    |   31 ++
 .../apache/provisionr/api/pool/MachineTest.java    |   42 +++
 .../org/apache/provisionr/api/pool/PoolTest.java   |   67 ++++
 .../provisionr/api/provider/ProviderTest.java      |   38 +++
 .../provisionr/api/software/RepositoryTest.java    |   39 +++
 .../provisionr/api/software/SoftwareTest.java      |   49 +++
 .../api/util/BuilderWithOptionsTest.java           |   59 ++++
 console/pom.xml                                    |   15 +-
 .../provisionr/client/ProvisionrClient.java        |   34 --
 .../apache/provisionr/client/ProvisionrClient.java |   34 ++
 .../main/resources/OSGI-INF/blueprint/context.xml  |    6 +-
 .../resources/com.axemblr.provisionr.console.cfg   |    5 -
 console/src/main/resources/features.xml            |   14 +-
 .../resources/org.apache.provisionr.console.cfg    |    5 +
 core/pom.xml                                       |   20 +-
 .../com/axemblr/provisionr/core/CoreConstants.java |   10 -
 .../provisionr/core/CoreProcessVariables.java      |   70 ----
 .../com/axemblr/provisionr/core/CoreSignals.java   |   29 --
 .../java/com/axemblr/provisionr/core/Mustache.java |   58 ----
 .../com/axemblr/provisionr/core/PoolStatus.java    |   34 --
 .../axemblr/provisionr/core/ProvisionrSupport.java |   95 ------
 .../main/java/com/axemblr/provisionr/core/Ssh.java |  145 --------
 .../ConfigurableFailedJobCommandFactory.java       |  153 ---------
 .../core/activiti/ConfigurationFactory.java        |   68 ----
 .../core/activities/CheckProcessesEnded.java       |   76 -----
 .../provisionr/core/activities/DownloadFiles.java  |   53 ---
 .../core/activities/InstallPackages.java           |   50 ---
 .../core/activities/InstallRepositories.java       |   62 ----
 .../core/activities/IsMachinePortOpen.java         |   90 -----
 .../core/activities/KillMachineSetUpProcesses.java |   65 ----
 .../provisionr/core/activities/PuppetActivity.java |  131 --------
 .../activities/SpawnProcessForEachMachine.java     |   96 ------
 .../provisionr/core/logging/ErrorStreamLogger.java |   33 --
 .../provisionr/core/logging/InfoStreamLogger.java  |   33 --
 .../provisionr/core/logging/StreamLogger.java      |   67 ----
 .../provisionr/core/templates/PoolTemplate.java    |   38 ---
 .../core/templates/PoolTemplateInstaller.java      |  109 ------
 .../provisionr/core/templates/xml/FileEntry.java   |   91 -----
 .../core/templates/xml/RepositoryEntry.java        |  114 -------
 .../provisionr/core/templates/xml/XmlTemplate.java |  257 ---------------
 .../org/apache/provisionr/core/CoreConstants.java  |   10 +
 .../provisionr/core/CoreProcessVariables.java      |   70 ++++
 .../org/apache/provisionr/core/CoreSignals.java    |   29 ++
 .../java/org/apache/provisionr/core/Mustache.java  |   58 ++++
 .../org/apache/provisionr/core/PoolStatus.java     |   34 ++
 .../apache/provisionr/core/ProvisionrSupport.java  |   95 ++++++
 .../main/java/org/apache/provisionr/core/Ssh.java  |  145 ++++++++
 .../ConfigurableFailedJobCommandFactory.java       |  153 +++++++++
 .../core/activiti/ConfigurationFactory.java        |   68 ++++
 .../core/activities/CheckProcessesEnded.java       |   76 +++++
 .../provisionr/core/activities/DownloadFiles.java  |   53 +++
 .../core/activities/InstallPackages.java           |   50 +++
 .../core/activities/InstallRepositories.java       |   62 ++++
 .../core/activities/IsMachinePortOpen.java         |   90 +++++
 .../core/activities/KillMachineSetUpProcesses.java |   65 ++++
 .../provisionr/core/activities/PuppetActivity.java |  131 ++++++++
 .../activities/SpawnProcessForEachMachine.java     |   96 ++++++
 .../provisionr/core/logging/ErrorStreamLogger.java |   33 ++
 .../provisionr/core/logging/InfoStreamLogger.java  |   33 ++
 .../provisionr/core/logging/StreamLogger.java      |   67 ++++
 .../provisionr/core/templates/PoolTemplate.java    |   38 +++
 .../core/templates/PoolTemplateInstaller.java      |  109 ++++++
 .../provisionr/core/templates/xml/FileEntry.java   |   91 +++++
 .../core/templates/xml/RepositoryEntry.java        |  114 +++++++
 .../provisionr/core/templates/xml/XmlTemplate.java |  257 +++++++++++++++
 .../main/resources/OSGI-INF/blueprint/context.xml  |   18 +-
 core/src/main/resources/com.axemblr.provisionr.cfg |   37 --
 .../provisionr/core/puppet/files.pp.mustache       |   25 --
 .../provisionr/core/puppet/packages.pp.mustache    |    7 -
 .../core/puppet/repositories.pp.mustache           |   38 ---
 .../com/axemblr/provisionr/core/templates/cdh3.xml |  108 ------
 .../com/axemblr/provisionr/core/templates/cdh4.xml |   59 ----
 .../axemblr/provisionr/core/templates/jenkins.xml  |  132 --------
 core/src/main/resources/features.xml               |   24 +-
 core/src/main/resources/org.apache.provisionr.cfg  |   37 ++
 .../provisionr/core/puppet/files.pp.mustache       |   25 ++
 .../provisionr/core/puppet/packages.pp.mustache    |    7 +
 .../core/puppet/repositories.pp.mustache           |   38 +++
 .../org/apache/provisionr/core/templates/cdh3.xml  |  108 ++++++
 .../org/apache/provisionr/core/templates/cdh4.xml  |   59 ++++
 .../apache/provisionr/core/templates/jenkins.xml   |  132 ++++++++
 .../com/axemblr/provisionr/core/BaseJaxbTest.java  |   57 ----
 .../provisionr/core/ProvisionrSupportTest.java     |   32 --
 .../com/axemblr/provisionr/core/SshLiveTest.java   |  131 --------
 .../provisionr/core/activiti/AlwaysFailTask.java   |   37 --
 .../ConfigurableFailedJobCommandFactoryTest.java   |   60 ----
 .../core/activities/CheckProcessesEndedTest.java   |   98 ------
 .../core/activities/CheckProcessesTest.java        |   56 ----
 .../core/activities/DownloadFilesTest.java         |   51 ---
 .../core/activities/InstallPackagesTest.java       |   44 ---
 .../core/activities/InstallRepositoriesTest.java   |   52 ---
 .../core/activities/IsMachinePortOpenTest.java     |   88 -----
 .../activities/KillMachineSetUpProcessesTest.java  |   93 ------
 .../activities/SpawnProcessForEachMachineTest.java |   86 -----
 .../provisionr/core/logging/StreamLoggerTest.java  |   55 ---
 .../core/templates/PoolTemplateInstallerTest.java  |   61 ----
 .../core/templates/xml/XmlTemplateTest.java        |  106 ------
 .../org/apache/provisionr/core/BaseJaxbTest.java   |   57 ++++
 .../provisionr/core/ProvisionrSupportTest.java     |   32 ++
 .../org/apache/provisionr/core/SshLiveTest.java    |  131 ++++++++
 .../provisionr/core/activiti/AlwaysFailTask.java   |   37 ++
 .../ConfigurableFailedJobCommandFactoryTest.java   |   60 ++++
 .../core/activities/CheckProcessesEndedTest.java   |   95 ++++++
 .../core/activities/CheckProcessesTest.java        |   56 ++++
 .../core/activities/DownloadFilesTest.java         |   51 +++
 .../core/activities/InstallPackagesTest.java       |   46 +++
 .../core/activities/InstallRepositoriesTest.java   |   54 +++
 .../core/activities/IsMachinePortOpenTest.java     |   88 +++++
 .../activities/KillMachineSetUpProcessesTest.java  |   93 ++++++
 .../activities/SpawnProcessForEachMachineTest.java |   86 +++++
 .../provisionr/core/logging/StreamLoggerTest.java  |   56 ++++
 .../core/templates/PoolTemplateInstallerTest.java  |   63 ++++
 .../core/templates/xml/XmlTemplateTest.java        |  106 ++++++
 .../test/resources/diagrams/alwaysFail.bpmn20.xml  |    2 +-
 ...ols of Virtual Machines - ApacheCon NA 2013.pdf |  Bin 456683 -> 0 bytes
 docs/icla.pdf                                      |  Bin 48313 -> 0 bytes
 integration/rundeck/pom.xml                        |    8 +-
 .../com/axemblr/provisionr/rundeck/Attribute.java  |   86 -----
 .../java/com/axemblr/provisionr/rundeck/Node.java  |  169 ----------
 .../com/axemblr/provisionr/rundeck/Project.java    |   78 -----
 .../axemblr/provisionr/rundeck/RundeckServlet.java |  128 -------
 .../org/apache/provisionr/rundeck/Attribute.java   |   86 +++++
 .../java/org/apache/provisionr/rundeck/Node.java   |  169 ++++++++++
 .../org/apache/provisionr/rundeck/Project.java     |   78 +++++
 .../apache/provisionr/rundeck/RundeckServlet.java  |  128 +++++++
 .../main/resources/OSGI-INF/blueprint/context.xml  |    2 +-
 .../rundeck/src/main/resources/features.xml        |   10 +-
 .../axemblr/provisionr/rundeck/BaseJaxbTest.java   |   57 ----
 .../axemblr/provisionr/rundeck/ProjectTest.java    |   60 ----
 .../provisionr/rundeck/RundeckServletTest.java     |   62 ----
 .../apache/provisionr/rundeck/BaseJaxbTest.java    |   57 ++++
 .../org/apache/provisionr/rundeck/ProjectTest.java |   60 ++++
 .../provisionr/rundeck/RundeckServletTest.java     |   62 ++++
 karaf/assembly-tests/pom.xml                       |   10 +-
 .../karaf/CustomKarafDistributionTest.java         |  248 --------------
 .../karaf/CustomKarafDistributionTest.java         |  248 ++++++++++++++
 karaf/assembly/pom.xml                             |   16 +-
 karaf/assembly/src/main/assembly/unix.xml          |    2 +-
 .../etc/org.apache.karaf.features.cfg              |    4 +-
 karaf/branding/pom.xml                             |    7 +-
 .../org/apache/karaf/branding/branding.properties  |   22 +-
 karaf/commands/pom.xml                             |   13 +-
 .../axemblr/provisionr/commands/CreateCommand.java |  130 --------
 .../provisionr/commands/CreateImageCommand.java    |   61 ----
 .../provisionr/commands/CreatePoolCommand.java     |  197 -----------
 .../provisionr/commands/DestroyPoolCommand.java    |   75 -----
 .../provisionr/commands/ListPoolsCommand.java      |  109 ------
 .../provisionr/commands/ListServicesCommand.java   |   54 ---
 .../provisionr/commands/ListTemplatesCommand.java  |   54 ---
 .../provisionr/commands/ResetRetriesCommand.java   |   81 -----
 .../commands/predicates/ProvisionrPredicates.java  |   41 ---
 .../apache/provisionr/commands/CreateCommand.java  |  126 +++++++
 .../provisionr/commands/CreateImageCommand.java    |   52 +++
 .../provisionr/commands/CreatePoolCommand.java     |  181 ++++++++++
 .../provisionr/commands/DestroyPoolCommand.java    |   75 +++++
 .../provisionr/commands/ListPoolsCommand.java      |  109 ++++++
 .../provisionr/commands/ListServicesCommand.java   |   54 +++
 .../provisionr/commands/ListTemplatesCommand.java  |   54 +++
 .../provisionr/commands/ResetRetriesCommand.java   |   81 +++++
 .../commands/predicates/ProvisionrPredicates.java  |   41 +++
 .../main/resources/OSGI-INF/blueprint/context.xml  |   16 +-
 .../provisionr/commands/CreatePoolCommandTest.java |  210 ------------
 .../commands/DestroyPoolCommandTest.java           |   87 -----
 .../provisionr/commands/ListPoolsCommandTest.java  |  156 ---------
 .../commands/ListServicesCommandTest.java          |   62 ----
 .../commands/ListTemplatesCommandTest.java         |   77 -----
 .../commands/ResetRetriesCommandTest.java          |   96 ------
 .../provisionr/commands/CreatePoolCommandTest.java |  207 ++++++++++++
 .../commands/DestroyPoolCommandTest.java           |   87 +++++
 .../provisionr/commands/ListPoolsCommandTest.java  |  156 +++++++++
 .../commands/ListServicesCommandTest.java          |   62 ++++
 .../commands/ListTemplatesCommandTest.java         |   77 +++++
 .../commands/ResetRetriesCommandTest.java          |   96 ++++++
 karaf/features/pom.xml                             |   23 +-
 karaf/features/src/main/resources/features.xml     |   50 ++--
 parent/pom.xml                                     |  116 +++++--
 pom.xml                                            |    7 +-
 providers/amazon-tests/pom.xml                     |   15 +-
 .../amazon/AmazonProvisionrLiveTest.java           |  207 ------------
 .../amazon/AmazonProvisionrLiveTest.java           |  207 ++++++++++++
 providers/amazon/pom.xml                           |   17 +-
 .../provisionr/amazon/AmazonProvisionr.java        |  127 -------
 .../provisionr/amazon/ProcessVariables.java        |  107 ------
 .../activities/AllInstancesMatchPredicate.java     |   91 -----
 .../activities/AllSpotRequestsMatchPredicate.java  |   77 -----
 .../amazon/activities/AmazonActivity.java          |   75 -----
 .../amazon/activities/CancelSpotRequests.java      |   37 --
 .../activities/CheckAllInstancesAreRunning.java    |   41 ---
 .../activities/CheckAllInstancesAreTerminated.java |   41 ---
 .../activities/CheckAllRequestsAreActive.java      |   35 --
 .../amazon/activities/CheckNoRequestsAreOpen.java  |   26 --
 .../amazon/activities/DeleteKeyPair.java           |   43 ---
 .../amazon/activities/DeleteSecurityGroup.java     |   57 ----
 .../amazon/activities/DumpConsoleOutput.java       |   55 ---
 .../amazon/activities/EnsureKeyPairExists.java     |   66 ----
 .../activities/EnsureSecurityGroupExists.java      |  112 -------
 .../activities/GetInstanceIdsFromSpotRequests.java |   44 ---
 .../amazon/activities/PublishListOfMachines.java   |   83 -----
 .../provisionr/amazon/activities/RunInstances.java |  148 ---------
 .../amazon/activities/RunOnDemandInstances.java    |   76 -----
 .../amazon/activities/RunSpotInstances.java        |  100 ------
 .../amazon/activities/SetupAdminAccess.java        |   71 ----
 .../amazon/activities/TerminateInstances.java      |   56 ----
 .../amazon/config/DefaultProviderConfig.java       |   60 ----
 .../axemblr/provisionr/amazon/core/ErrorCodes.java |   33 --
 .../axemblr/provisionr/amazon/core/ImageTable.java |  143 --------
 .../provisionr/amazon/core/ImageTableQuery.java    |   87 -----
 .../axemblr/provisionr/amazon/core/KeyPairs.java   |   28 --
 .../amazon/core/ProviderClientCache.java           |   28 --
 .../amazon/core/ProviderClientCacheSupplier.java   |  114 -------
 .../provisionr/amazon/core/SecurityGroups.java     |   29 --
 .../functions/ConvertIpPermissionToRule.java       |   40 ---
 .../functions/ConvertRuleToIpPermission.java       |   40 ---
 .../provisionr/amazon/options/ProviderOptions.java |   31 --
 .../provisionr/amazon/options/SoftwareOptions.java |   30 --
 .../apache/provisionr/amazon/AmazonProvisionr.java |  127 +++++++
 .../apache/provisionr/amazon/ProcessVariables.java |  107 ++++++
 .../activities/AllInstancesMatchPredicate.java     |   91 +++++
 .../activities/AllSpotRequestsMatchPredicate.java  |   75 +++++
 .../amazon/activities/AmazonActivity.java          |   73 ++++
 .../amazon/activities/CancelSpotRequests.java      |   36 ++
 .../activities/CheckAllInstancesAreRunning.java    |   41 +++
 .../activities/CheckAllInstancesAreTerminated.java |   41 +++
 .../activities/CheckAllRequestsAreActive.java      |   35 ++
 .../amazon/activities/CheckNoRequestsAreOpen.java  |   26 ++
 .../amazon/activities/DeleteKeyPair.java           |   43 +++
 .../amazon/activities/DeleteSecurityGroup.java     |   55 +++
 .../amazon/activities/DumpConsoleOutput.java       |   55 +++
 .../amazon/activities/EnsureKeyPairExists.java     |   64 ++++
 .../activities/EnsureSecurityGroupExists.java      |  110 ++++++
 .../activities/GetInstanceIdsFromSpotRequests.java |   44 +++
 .../amazon/activities/PublishListOfMachines.java   |   80 +++++
 .../provisionr/amazon/activities/RunInstances.java |  144 ++++++++
 .../amazon/activities/RunOnDemandInstances.java    |   76 +++++
 .../amazon/activities/RunSpotInstances.java        |  100 ++++++
 .../amazon/activities/SetupAdminAccess.java        |   71 ++++
 .../amazon/activities/TerminateInstances.java      |   56 ++++
 .../amazon/config/DefaultProviderConfig.java       |   60 ++++
 .../apache/provisionr/amazon/core/ErrorCodes.java  |   33 ++
 .../apache/provisionr/amazon/core/ImageTable.java  |  143 ++++++++
 .../provisionr/amazon/core/ImageTableQuery.java    |   87 +++++
 .../apache/provisionr/amazon/core/KeyPairs.java    |   28 ++
 .../amazon/core/ProviderClientCache.java           |   28 ++
 .../amazon/core/ProviderClientCacheSupplier.java   |  114 +++++++
 .../provisionr/amazon/core/SecurityGroups.java     |   29 ++
 .../functions/ConvertIpPermissionToRule.java       |   40 +++
 .../functions/ConvertRuleToIpPermission.java       |   40 +++
 .../provisionr/amazon/options/ProviderOptions.java |   29 ++
 .../provisionr/amazon/options/SoftwareOptions.java |   30 ++
 .../main/resources/OSGI-INF/blueprint/context.xml  |   48 ++--
 .../resources/com.axemblr.provisionr.amazon.cfg    |    7 -
 .../resources/com/axemblr/provisionr/amazon/README |    3 -
 .../amazon/puppet/adminaccess.pp.mustache          |   62 ----
 .../provisionr/amazon/puppet/sshd_config.mustache  |   83 -----
 .../com/axemblr/provisionr/amazon/puppet/sudoers   |   28 --
 .../com/axemblr/provisionr/amazon/ubuntu.csv       |  221 -------------
 .../com/axemblr/provisionr/amazon/userdata.sh      |   16 -
 providers/amazon/src/main/resources/features.xml   |   14 +-
 .../resources/org.apache.provisionr.amazon.cfg     |    7 +
 .../resources/org/apache/provisionr/amazon/README  |    3 +
 .../amazon/puppet/adminaccess.pp.mustache          |   62 ++++
 .../provisionr/amazon/puppet/sshd_config.mustache  |   83 +++++
 .../org/apache/provisionr/amazon/puppet/sudoers    |   28 ++
 .../org/apache/provisionr/amazon/ubuntu.csv        |  221 +++++++++++++
 .../org/apache/provisionr/amazon/userdata.sh       |   16 +
 .../amazon/ProcessDefinitionSyntaxCheckTest.java   |   54 ---
 .../amazon/activities/AmazonActivityLiveTest.java  |  132 --------
 .../amazon/activities/CreatePoolLiveTest.java      |   75 -----
 .../amazon/activities/DeleteKeyPairLiveTest.java   |   89 -----
 .../activities/DeleteSecurityGroupLiveTest.java    |   73 ----
 .../activities/EnsureKeyPairExistsLiveTest.java    |   80 -----
 .../EnsureSecurityGroupExistsLiveTest.java         |  130 --------
 .../activities/PublishListOfMachinesTest.java      |   73 ----
 .../activities/RunOnDemandInstancesLiveTest.java   |  144 --------
 .../activities/RunSpotInstancesLiveTest.java       |  112 -------
 .../amazon/activities/SetupAdminAccessTest.java    |   52 ---
 .../activities/TerminateInstancesLiveTest.java     |   77 -----
 .../amazon/config/DefaultProviderConfigTest.java   |   42 ---
 .../amazon/core/ImageTableQueryTest.java           |   34 --
 .../provisionr/amazon/core/ImageTableTest.java     |   66 ----
 .../ConvertIpPermissionToRuleAndBackTest.java      |   60 ----
 .../amazon/ProcessDefinitionSyntaxCheckTest.java   |   54 +++
 .../amazon/activities/AmazonActivityLiveTest.java  |  132 ++++++++
 .../amazon/activities/CreatePoolLiveTest.java      |   72 ++++
 .../amazon/activities/DeleteKeyPairLiveTest.java   |   88 +++++
 .../activities/DeleteSecurityGroupLiveTest.java    |   66 ++++
 .../activities/EnsureKeyPairExistsLiveTest.java    |   79 +++++
 .../EnsureSecurityGroupExistsLiveTest.java         |  129 ++++++++
 .../activities/PublishListOfMachinesTest.java      |   73 ++++
 .../activities/RunOnDemandInstancesLiveTest.java   |  144 ++++++++
 .../activities/RunSpotInstancesLiveTest.java       |  107 ++++++
 .../amazon/activities/SetupAdminAccessTest.java    |   52 +++
 .../activities/TerminateInstancesLiveTest.java     |   68 ++++
 .../amazon/config/DefaultProviderConfigTest.java   |   42 +++
 .../amazon/core/ImageTableQueryTest.java           |   34 ++
 .../provisionr/amazon/core/ImageTableTest.java     |   66 ++++
 .../ConvertIpPermissionToRuleAndBackTest.java      |   60 ++++
 providers/cloudstack-tests/pom.xml                 |   17 +-
 .../cloudstack/CloudStackProvisionrLiveTest.java   |  105 ------
 .../cloudstack/CloudStackProvisionrLiveTest.java   |  105 ++++++
 providers/cloudstack/pom.xml                       |   17 +-
 .../cloudstack/CloudStackProvisionr.java           |   92 -----
 .../cloudstack/DefaultProviderConfig.java          |   57 ----
 .../provisionr/cloudstack/NetworkOptions.java      |   33 --
 .../provisionr/cloudstack/ProcessVariables.java    |   26 --
 .../provisionr/cloudstack/ProviderOptions.java     |   37 --
 .../cloudstack/activities/CloudStackActivity.java  |   82 -----
 .../cloudstack/activities/DeleteKeyPair.java       |   36 --
 .../cloudstack/activities/DeleteSecurityGroup.java |   35 --
 .../cloudstack/activities/EnsureKeyPairExists.java |   53 ---
 .../cloudstack/activities/EnsureNetworkExists.java |   64 ----
 .../activities/EnsureSecurityGroupExists.java      |   56 ----
 .../cloudstack/activities/RunInstances.java        |   58 ----
 .../cloudstack/commands/CommandSupport.java        |   76 -----
 .../cloudstack/commands/OfferingsCommand.java      |  107 ------
 .../cloudstack/commands/TemplatesCommand.java      |   45 ---
 .../cloudstack/commands/ZonesCommand.java          |   44 ---
 .../cloudstack/core/ConvertIngressRuleToRule.java  |   46 ---
 .../provisionr/cloudstack/core/KeyPairs.java       |   28 --
 .../provisionr/cloudstack/core/Networks.java       |   51 ---
 .../provisionr/cloudstack/core/SecurityGroups.java |   99 ------
 .../cloudstack/core/VirtualMachines.java           |  107 ------
 .../axemblr/provisionr/cloudstack/core/Zones.java  |   40 ---
 .../cloudstack/CloudStackProvisionr.java           |   92 +++++
 .../cloudstack/DefaultProviderConfig.java          |   57 ++++
 .../provisionr/cloudstack/NetworkOptions.java      |   33 ++
 .../provisionr/cloudstack/ProcessVariables.java    |   26 ++
 .../provisionr/cloudstack/ProviderOptions.java     |   37 ++
 .../cloudstack/activities/CloudStackActivity.java  |   82 +++++
 .../cloudstack/activities/DeleteKeyPair.java       |   36 ++
 .../cloudstack/activities/DeleteSecurityGroup.java |   35 ++
 .../cloudstack/activities/EnsureKeyPairExists.java |   53 +++
 .../cloudstack/activities/EnsureNetworkExists.java |   64 ++++
 .../activities/EnsureSecurityGroupExists.java      |   56 ++++
 .../cloudstack/activities/RunInstances.java        |   58 ++++
 .../cloudstack/commands/CommandSupport.java        |   76 +++++
 .../cloudstack/commands/OfferingsCommand.java      |  107 ++++++
 .../cloudstack/commands/TemplatesCommand.java      |   45 +++
 .../cloudstack/commands/ZonesCommand.java          |   44 +++
 .../cloudstack/core/ConvertIngressRuleToRule.java  |   46 +++
 .../provisionr/cloudstack/core/KeyPairs.java       |   28 ++
 .../provisionr/cloudstack/core/Networks.java       |   51 +++
 .../provisionr/cloudstack/core/SecurityGroups.java |   99 ++++++
 .../cloudstack/core/VirtualMachines.java           |  107 ++++++
 .../apache/provisionr/cloudstack/core/Zones.java   |   40 +++
 .../main/resources/OSGI-INF/blueprint/context.xml  |   22 +-
 .../com.axemblr.provisionr.cloudstack.cfg          |   10 -
 .../cloudstack/src/main/resources/features.xml     |   14 +-
 .../resources/org.apache.provisionr.cloudstack.cfg |   10 +
 .../activities/CloudStackActivityLiveTest.java     |  129 --------
 .../activities/DeleteKeyPairLiveTest.java          |   77 -----
 .../activities/DeleteSecurityGroupLiveTest.java    |   78 -----
 .../activities/EnsureKeyPairExistsLiveTest.java    |   83 -----
 .../activities/EnsureNetworkExistsLiveTest.java    |  123 -------
 .../EnsureSecurityGroupExistsLiveTest.java         |  127 -------
 .../activities/RunInstancesLiveTest.java           |  107 ------
 .../cloudstack/commands/CommandTestSupport.java    |   47 ---
 .../cloudstack/commands/OfferingsCommandTest.java  |   98 ------
 .../cloudstack/commands/TemplatesCommandTest.java  |   47 ---
 .../cloudstack/commands/ZonesCommandTest.java      |   53 ---
 .../cloudstack/core/ConversionsTest.java           |   58 ----
 .../cloudstack/core/SecurityGroupsTest.java        |   29 --
 .../activities/CloudStackActivityLiveTest.java     |  129 ++++++++
 .../activities/DeleteKeyPairLiveTest.java          |   77 +++++
 .../activities/DeleteSecurityGroupLiveTest.java    |   77 +++++
 .../activities/EnsureKeyPairExistsLiveTest.java    |   82 +++++
 .../activities/EnsureNetworkExistsLiveTest.java    |  123 +++++++
 .../EnsureSecurityGroupExistsLiveTest.java         |  127 +++++++
 .../activities/RunInstancesLiveTest.java           |  107 ++++++
 .../cloudstack/commands/CommandTestSupport.java    |   47 +++
 .../cloudstack/commands/OfferingsCommandTest.java  |   98 ++++++
 .../cloudstack/commands/TemplatesCommandTest.java  |   47 +++
 .../cloudstack/commands/ZonesCommandTest.java      |   53 +++
 .../cloudstack/core/ConversionsTest.java           |   58 ++++
 .../cloudstack/core/SecurityGroupsTest.java        |   28 ++
 .../cloudstack/src/test/resources/logback.xml      |    2 +-
 scripts/deploy.sh                                  |    4 +-
 test-support/pom.xml                               |   10 +-
 .../java/com/axemblr/provisionr/test/Generics.java |   75 -----
 .../com/axemblr/provisionr/test/KarafTests.java    |  117 -------
 .../provisionr/test/ProcessVariablesCollector.java |   64 ----
 .../provisionr/test/ProvisionrLiveTestSupport.java |  153 ---------
 .../com/axemblr/provisionr/test/TestConstants.java |   39 ---
 .../java/org/apache/provisionr/test/Generics.java  |   75 +++++
 .../org/apache/provisionr/test/KarafTests.java     |  117 +++++++
 .../provisionr/test/ProcessVariablesCollector.java |   64 ++++
 .../provisionr/test/ProvisionrLiveTestSupport.java |  153 +++++++++
 .../org/apache/provisionr/test/TestConstants.java  |   39 +++
 .../com/axemblr/provisionr/test/id_rsa_test        |   27 --
 .../com/axemblr/provisionr/test/id_rsa_test.pub    |    1 -
 test-support/src/main/resources/features.xml       |    2 +-
 .../org/apache/provisionr/test/id_rsa_test         |   27 ++
 .../org/apache/provisionr/test/id_rsa_test.pub     |    1 +
 505 files changed, 17877 insertions(+), 17919 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-provisionr/blob/6ba40c4b/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
index 76b06ef..67e88a6 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,5 @@
-Axemblr Provisionr [![Build Status](https://buildhive.cloudbees.com/job/axemblr/job/axemblr-provisionr/badge/icon)](https://buildhive.cloudbees.com/job/axemblr/job/axemblr-provisionr/)
-==================
+Apache Provisionr
+=================
 
 *Simple Service for Managing Pools of 10s or 100s of Virtual Machines*
 
@@ -29,33 +29,12 @@ You can use Activiti Explorer to inspect the process while running:
 
 ![Shell](http://people.apache.org/~asavu/shell.png)
 
-Who is behind this?
--------------------
-
-Core developers:
-
-* Andrei Savu - [LinkedIn](http://www.linkedin.com/in/sandrei), [Github](https://github.com/andreisavu)
-* Ioan Eugen Stan - [LinkedIn](http://www.linkedin.com/in/ieugen), [Github](https://github.com/ieugen)
-* Alex Ciminian - [LinkedIn](http://www.linkedin.com/in/alexciminian), [GitHub](https://github.com/cimi)
-
 License
 -------
 
 Apache License Version 2.0
 http://apache.org/licenses/LICENSE-2.0.txt
 
-Get involved in the community 
------------------------------
-
-For those of you who really dig our software, we have created two mailing lists that yo can join depending on your involvement: 
-
-* If you are a user join: [provisionr-users@googlegroups.com](https://groups.google.com/forum/?fromgroups#!forum/provisionr-users)
-* If you wish to develop Provisionr go to [provisionr-dev@googlegroups.com](https://groups.google.com/forum/?fromgroups#!forum/provisionr-dev)
-
-Join us on IRC channel *#axemblr* on *irc.freenode.net*.
-
-We appreciate any kind of help so don't hesitate.
-
 
 Supported cloud providers
 -------------------------
@@ -71,7 +50,7 @@ You can build a binary release by running:
 
 And you will find the .tar.gz file in:
 
-    karaf/assembly/target/com.axemblr.provisionr-*.tar.gz
+    karaf/assembly/target/org.apache.provisionr-*.tar.gz
 
 How to run?
 -----------
@@ -79,23 +58,23 @@ How to run?
 Extract the custom Karaf distribution:
 
     $ cd karaf/assembly/target/
-    $ tar xvfz com.axemblr.provisionr-0.0.1-SNAPSHOT.tar.gz
-    $ cd com.axemblr.provisionr-0.0.1-SNAPSHOT
+    $ tar xvfz org.apache.provisionr-0.0.1-SNAPSHOT.tar.gz
+    $ cd org.apache.provisionr-0.0.1-SNAPSHOT
 
 Start and configure the Amazon provisionr:
 
     $ ./bin/provisionr
-    provisionr [0.0.1-SNAPSHOT] $ config:edit com.axemblr.provisionr.amazon
+    provisionr [0.0.1-SNAPSHOT] $ config:edit org.apache.provisionr.amazon
     provisionr [0.0.1-SNAPSHOT] $ config:proplist
-        service.pid = com.axemblr.provisionr.amazon
+        service.pid = org.apache.provisionr.amazon
         secretKey = secret
-        felix.fileinstall.filename = file:[...]/etc/com.axemblr.provisionr.amazon.cfg
+        felix.fileinstall.filename = file:[...]/etc/org.apache.provisionr.amazon.cfg
         region = us-east-1
         accessKey = access
     provisionr [0.0.1-SNAPSHOT] $ config:propset accessKey "XXXXXXX"
     provisionr [0.0.1-SNAPSHOT] $ config:propset secretKey "XXXXXXX"
     provisionr [0.0.1-SNAPSHOT] $ config:update
-    provisionr [0.0.1-SNAPSHOT] $ config:list "(service.pid=com.axemblr.provisionr.amazon)"
+    provisionr [0.0.1-SNAPSHOT] $ config:list "(service.pid=org.apache.provisionr.amazon)"
 
 Create a pool:
 
@@ -116,8 +95,8 @@ You should see an Activiti process in execution:
     BPMN Deployments
     ----------------
      ID   Name                               Deployment Time         
-    [1  ][com.axemblr.provisionr.amazon    ][Dec 13, 2012 1:52:05 PM]
-    [5  ][com.axemblr.provisionr.cloudstack][Dec 13, 2012 1:52:07 PM]
+    [1  ][org.apache.provisionr.amazon    ][Dec 13, 2012 1:52:05 PM]
+    [5  ][org.apache.provisionr.cloudstack][Dec 13, 2012 1:52:07 PM]
 
     BPMN Process Definitions
     -------------------------

http://git-wip-us.apache.org/repos/asf/incubator-provisionr/blob/6ba40c4b/activiti/commands/pom.xml
----------------------------------------------------------------------
diff --git a/activiti/commands/pom.xml b/activiti/commands/pom.xml
index 490d4ab..a24cb49 100644
--- a/activiti/commands/pom.xml
+++ b/activiti/commands/pom.xml
@@ -21,17 +21,17 @@
     <modelVersion>4.0.0</modelVersion>
 
     <parent>
-        <groupId>com.axemblr.provisionr</groupId>
+        <groupId>org.apache.provisionr</groupId>
         <artifactId>provisionr-parent</artifactId>
         <version>0.4.0-SNAPSHOT</version>
         <relativePath>../../parent</relativePath>
     </parent>
 
-    <groupId>org.activiti.karaf</groupId>
     <artifactId>activiti-karaf-commands</artifactId>
     <packaging>bundle</packaging>
 
-    <name>Activiti Karaf :: Commands</name>
+    <name>Apache Provisionr :: Activiti Karaf :: Commands</name>
+    <description>Apache Karaf commands for the Activiti process engine</description>
     <url>http://activiti.org</url>
 
     <properties>
@@ -161,8 +161,8 @@
                     <outputDirectory>${basedir}/target/classes</outputDirectory>
                     <instructions>
                         <Export-Package>
-                            org.activiti.karaf.commands,
-                            org.activiti.karaf.commands.handlers,
+                            org.apache.provisionr.activiti.karaf.commands,
+                            org.apache.provisionr.activiti.karaf.commandsiti.karaf.commands.haorg.apache.provisionr.activiti.karaf.commands
                             org.activiti.karaf.commands.util
                         </Export-Package>
                         <Import-Package>

http://git-wip-us.apache.org/repos/asf/incubator-provisionr/blob/6ba40c4b/activiti/commands/src/main/java/org/activiti/karaf/commands/ActivitiCommand.java
----------------------------------------------------------------------
diff --git a/activiti/commands/src/main/java/org/activiti/karaf/commands/ActivitiCommand.java b/activiti/commands/src/main/java/org/activiti/karaf/commands/ActivitiCommand.java
deleted file mode 100644
index ef800a7..0000000
--- a/activiti/commands/src/main/java/org/activiti/karaf/commands/ActivitiCommand.java
+++ /dev/null
@@ -1,64 +0,0 @@
-/*
- * Copyright 2012 Cisco Systems
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.activiti.karaf.commands;
-
-import java.io.PrintWriter;
-import org.activiti.engine.ProcessEngine;
-import org.apache.karaf.shell.console.OsgiCommandSupport;
-
-/**
- * Base class for implementing Activiti Karaf commands
- *
- * @author Srinivasan Chikkala
- */
-public abstract class ActivitiCommand extends OsgiCommandSupport {
-
-    /**
-     * By default write normal messages to stdout
-     */
-    private PrintWriter out = new PrintWriter(System.out, true);
-
-    /**
-     * By default write error messages to stderr
-     */
-    private PrintWriter err = new PrintWriter(System.err, true);
-
-    private ProcessEngine processEngine;
-
-    public ProcessEngine getProcessEngine() {
-        return processEngine;
-    }
-
-    public void setProcessEngine(ProcessEngine processEngine) {
-        this.processEngine = processEngine;
-    }
-
-    public PrintWriter out() {
-        return out;
-    }
-
-    public void setOut(PrintWriter out) {
-        this.out = out;
-    }
-
-    public PrintWriter err() {
-        return err;
-    }
-
-    public void setErr(PrintWriter err) {
-        this.err = err;
-    }
-}

http://git-wip-us.apache.org/repos/asf/incubator-provisionr/blob/6ba40c4b/activiti/commands/src/main/java/org/activiti/karaf/commands/AddGroupCommand.java
----------------------------------------------------------------------
diff --git a/activiti/commands/src/main/java/org/activiti/karaf/commands/AddGroupCommand.java b/activiti/commands/src/main/java/org/activiti/karaf/commands/AddGroupCommand.java
deleted file mode 100644
index 97f0237..0000000
--- a/activiti/commands/src/main/java/org/activiti/karaf/commands/AddGroupCommand.java
+++ /dev/null
@@ -1,64 +0,0 @@
-/*
- * Copyright (c) 2012 S.C. Axemblr Software Solutions S.R.L
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *    http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.activiti.karaf.commands;
-
-import com.google.common.annotations.VisibleForTesting;
-import static com.google.common.base.Preconditions.checkNotNull;
-import org.activiti.engine.IdentityService;
-import org.activiti.engine.identity.Group;
-import org.apache.felix.gogo.commands.Command;
-import org.apache.felix.gogo.commands.Option;
-
-@Command(scope = "activiti", name = "add-group", description = "Create new user group")
-public class AddGroupCommand extends ActivitiCommand {
-
-    @Option(name = "-i", aliases = "--id", description = "Group ID", required = true)
-    private String id;
-
-    @Option(name = "-n", aliases = "--name", description = "Group Name", required = true)
-    private String name;
-
-    @Option(name = "-t", aliases = "--type", description = "Group Type")
-    private String type = "security-role";
-
-    @Override
-    protected Object doExecute() throws Exception {
-        IdentityService identityService = getProcessEngine().getIdentityService();
-
-        Group group = identityService.newGroup(id);
-        group.setName(name);
-        group.setType(type);
-        identityService.saveGroup(group);
-
-        return null;
-    }
-
-    @VisibleForTesting
-    void setId(String id) {
-        this.id = checkNotNull(id, "id is null");
-    }
-
-    @VisibleForTesting
-    void setName(String name) {
-        this.name = checkNotNull(name, "name is null");
-    }
-
-    @VisibleForTesting
-    void setType(String type) {
-        this.type = checkNotNull(type, "type is null");
-    }
-}

http://git-wip-us.apache.org/repos/asf/incubator-provisionr/blob/6ba40c4b/activiti/commands/src/main/java/org/activiti/karaf/commands/AddUserCommand.java
----------------------------------------------------------------------
diff --git a/activiti/commands/src/main/java/org/activiti/karaf/commands/AddUserCommand.java b/activiti/commands/src/main/java/org/activiti/karaf/commands/AddUserCommand.java
deleted file mode 100644
index 3f7ba78..0000000
--- a/activiti/commands/src/main/java/org/activiti/karaf/commands/AddUserCommand.java
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
- * Copyright (c) 2012 S.C. Axemblr Software Solutions S.R.L
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *    http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.activiti.karaf.commands;
-
-import org.activiti.engine.IdentityService;
-import org.activiti.engine.identity.User;
-import org.apache.felix.gogo.commands.Command;
-import org.apache.felix.gogo.commands.Option;
-
-@Command(scope = "activiti", name = "add-user", description = "Create a new Activiti user")
-public class AddUserCommand extends ActivitiCommand {
-
-    @Option(name = "-i", aliases = "--id", description = "User ID", required = true)
-    private String id;
-
-    @Option(name = "-p", aliases = "--password", description = "User password", required = true)
-    private String password;
-
-    @Option(name = "-g", aliases = "--group", description = "Group ID", required = true)
-    private String groupId;
-
-    @Option(name = "-e", aliases = "--email", description = "User email")
-    private String email = "";
-
-    @Override
-    protected Object doExecute() throws Exception {
-        if (getProcessEngine() == null) {
-            throw new NullPointerException("Please configure a processEngine instance for this command");
-        }
-        IdentityService identityService = getProcessEngine().getIdentityService();
-
-        User user = identityService.newUser(id);
-        user.setEmail(password);
-        identityService.saveUser(user);
-
-        identityService.createMembership(id, groupId);
-
-        return null;
-    }
-}

http://git-wip-us.apache.org/repos/asf/incubator-provisionr/blob/6ba40c4b/activiti/commands/src/main/java/org/activiti/karaf/commands/CleanHistoryActivitiCommand.java
----------------------------------------------------------------------
diff --git a/activiti/commands/src/main/java/org/activiti/karaf/commands/CleanHistoryActivitiCommand.java b/activiti/commands/src/main/java/org/activiti/karaf/commands/CleanHistoryActivitiCommand.java
deleted file mode 100644
index 2b9bf38..0000000
--- a/activiti/commands/src/main/java/org/activiti/karaf/commands/CleanHistoryActivitiCommand.java
+++ /dev/null
@@ -1,125 +0,0 @@
-/*
- * Copyright 2012 Cisco Systems
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.activiti.karaf.commands;
-
-import java.util.List;
-import org.activiti.engine.HistoryService;
-import org.activiti.engine.ProcessEngine;
-import org.activiti.engine.history.HistoricProcessInstance;
-import org.apache.felix.gogo.commands.Argument;
-import org.apache.felix.gogo.commands.Command;
-import org.apache.felix.gogo.commands.Option;
-
-/**
- * @author Srinivasan Chikkala
- */
-@Command(scope = "activiti", name = "clean-history", description = "Removes history of the Activiti process instances")
-public class CleanHistoryActivitiCommand extends ActivitiCommand {
-
-    @Argument(index = 0, name = "instanceIDs", description = "Instance IDs to remove from history",
-        required = false, multiValued = true)
-    private String[] instanceIDs;
-
-    @Option(name = "-a", aliases = "--all", description = "Remove all Activiti Processes from history")
-    private boolean cleanAll;
-
-    @Option(name = "-pd", aliases = "--definitions", required = false, multiValued = true,
-        description = "Removes history of process instances started from the definitions")
-    private String[] definitionIDs;
-
-    @Override
-    protected Object doExecute() throws Exception {
-        ProcessEngine engine = this.getProcessEngine();
-        if (engine == null) {
-            out().println("Process Engine NOT Found!");
-            return null;
-        }
-        HistoryService historyService = engine.getHistoryService();
-
-        // order of priority if instnaceIDs or definitionIDs and all on the list
-        // process instnaceID and exist or process definitionIDs and exit or process all 
-        // TODO figure out how to add mutually exclusive options - instanceIDs | definitions | all
-
-        if (this.instanceIDs != null && this.instanceIDs.length > 0) {
-            this.cleanProcessInstanceHistory(historyService, this.instanceIDs);
-            return null;
-        }
-
-        if (this.definitionIDs != null && this.definitionIDs.length > 0) {
-            this.cleanProcessDefinitionHistory(historyService, this.definitionIDs);
-            return null;
-        }
-
-        // clean all history
-        if (!cleanAll) {
-            out().println("Process instance IDs required or use the command with -a " +
-                "or --all option to clean all history");
-            return null;
-        } else {
-            cleanAllHistory(historyService);
-        }
-
-        return null;
-    }
-
-    private void cleanAllHistory(HistoryService hs) {
-        out().println("Cleaning History of All Process Instances...");
-        List<HistoricProcessInstance> hpiList = hs.createHistoricProcessInstanceQuery()
-            .orderByProcessDefinitionId().asc().list();
-        if (hpiList == null || hpiList.size() == 0) {
-            out().println("No Process History found! ");
-            return;
-        }
-        for (HistoricProcessInstance hpi : hpiList) {
-            String processId = hpi.getId();
-            hs.deleteHistoricProcessInstance(hpi.getId());
-            out().printf("History removed for process instance %s \n", processId);
-        }
-    }
-
-    private void cleanProcessInstanceHistory(HistoryService hs, String... instances) {
-        for (String instanceId : instances) {
-            // query and if exists delete.
-            HistoricProcessInstance hpi = hs.createHistoricProcessInstanceQuery()
-                .processInstanceId(instanceId).singleResult();
-            if (hpi != null) {
-                hs.deleteHistoricProcessInstance(hpi.getId());
-                out().printf("History removed for process instance %s \n", hpi.getId());
-            } else {
-                out().printf("No History found for process instance %s \n", instanceId);
-            }
-        }
-    }
-
-    private void cleanProcessDefinitionHistory(HistoryService hs, String... definitions) {
-
-        for (String definitionId : definitions) {
-            List<HistoricProcessInstance> hpiList = hs.createHistoricProcessInstanceQuery()
-                .processDefinitionId(definitionId)
-                .orderByProcessDefinitionId().asc().list();
-            if (hpiList == null || hpiList.size() == 0) {
-                out().printf("No History found for process definition %s \n", definitionId);
-                break;
-            }
-            for (HistoricProcessInstance hpi : hpiList) {
-                String processId = hpi.getId();
-                hs.deleteHistoricProcessInstance(hpi.getId());
-                out().printf("History removed for process instance %s with definition %s\n", processId,
-                    definitionId);
-            }
-        }
-    }
-}

http://git-wip-us.apache.org/repos/asf/incubator-provisionr/blob/6ba40c4b/activiti/commands/src/main/java/org/activiti/karaf/commands/DeleteGroupCommand.java
----------------------------------------------------------------------
diff --git a/activiti/commands/src/main/java/org/activiti/karaf/commands/DeleteGroupCommand.java b/activiti/commands/src/main/java/org/activiti/karaf/commands/DeleteGroupCommand.java
deleted file mode 100644
index 3c6ca5c..0000000
--- a/activiti/commands/src/main/java/org/activiti/karaf/commands/DeleteGroupCommand.java
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- * Copyright (c) 2012 S.C. Axemblr Software Solutions S.R.L
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *    http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.activiti.karaf.commands;
-
-import org.apache.felix.gogo.commands.Command;
-import org.apache.felix.gogo.commands.Option;
-
-@Command(scope = "activiti", name = "delete-group", description = "Delete Group")
-public class DeleteGroupCommand extends ActivitiCommand {
-
-    @Option(name = "-i", aliases = "--id", description = "Group ID", required = true)
-    private String id;
-
-    @Override
-    protected Object doExecute() throws Exception {
-        getProcessEngine().getIdentityService().deleteGroup(id);
-        return null;
-    }
-}

http://git-wip-us.apache.org/repos/asf/incubator-provisionr/blob/6ba40c4b/activiti/commands/src/main/java/org/activiti/karaf/commands/DeleteUserCommand.java
----------------------------------------------------------------------
diff --git a/activiti/commands/src/main/java/org/activiti/karaf/commands/DeleteUserCommand.java b/activiti/commands/src/main/java/org/activiti/karaf/commands/DeleteUserCommand.java
deleted file mode 100644
index f68a311..0000000
--- a/activiti/commands/src/main/java/org/activiti/karaf/commands/DeleteUserCommand.java
+++ /dev/null
@@ -1,38 +0,0 @@
-/*
- * Copyright (c) 2012 S.C. Axemblr Software Solutions S.R.L
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *    http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.activiti.karaf.commands;
-
-import org.activiti.engine.IdentityService;
-import org.apache.felix.gogo.commands.Command;
-import org.apache.felix.gogo.commands.Option;
-
-@Command(scope = "activiti", name = "delete-user", description = "Delete existing Activiti user")
-public class DeleteUserCommand extends ActivitiCommand {
-
-    @Option(name = "--id", description = "User ID")
-    private String id;
-
-    @Override
-    protected Object doExecute() throws Exception {
-        if (getProcessEngine() == null) {
-            throw new NullPointerException("Please configure a processEngine instance for this command");
-        }
-        IdentityService identityService = getProcessEngine().getIdentityService();
-        identityService.deleteUser(id);
-        return null;
-    }
-}

http://git-wip-us.apache.org/repos/asf/incubator-provisionr/blob/6ba40c4b/activiti/commands/src/main/java/org/activiti/karaf/commands/InfoActivitiCommand.java
----------------------------------------------------------------------
diff --git a/activiti/commands/src/main/java/org/activiti/karaf/commands/InfoActivitiCommand.java b/activiti/commands/src/main/java/org/activiti/karaf/commands/InfoActivitiCommand.java
deleted file mode 100644
index 11dd63a..0000000
--- a/activiti/commands/src/main/java/org/activiti/karaf/commands/InfoActivitiCommand.java
+++ /dev/null
@@ -1,249 +0,0 @@
-/*
- * Copyright 2012 Cisco Systems
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.activiti.karaf.commands;
-
-import java.io.PrintWriter;
-import java.util.LinkedHashMap;
-import java.util.List;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-import org.activiti.engine.HistoryService;
-import org.activiti.engine.ProcessEngine;
-import org.activiti.engine.RepositoryService;
-import org.activiti.engine.RuntimeService;
-import org.activiti.engine.history.HistoricActivityInstance;
-import org.activiti.engine.history.HistoricProcessInstance;
-import org.activiti.engine.repository.Deployment;
-import org.activiti.engine.repository.ProcessDefinition;
-import org.activiti.engine.runtime.ProcessInstance;
-import org.activiti.karaf.commands.handlers.ActivitiPrintHandler;
-import org.activiti.karaf.commands.handlers.DefaultActivitiPrintHandler;
-import org.activiti.karaf.commands.util.Commands;
-import org.apache.felix.gogo.commands.Argument;
-import org.apache.felix.gogo.commands.Command;
-import org.apache.felix.gogo.commands.Option;
-
-/**
- * karaf command class that prints the details about the bpmn process inlcuding deployment, definition,
- * instance and process varaible details.
- *
- * @author Srinivasan Chikkala
- */
-@Command(scope = "activiti", name = "info", description = "Provides details about the Activiti process instance")
-public class InfoActivitiCommand extends ActivitiCommand {
-
-    private static final Logger LOG = Logger.getLogger(InfoActivitiCommand.class.getName());
-
-    @Argument(index = 0, name = "instanceID", description = "Instance ID for which the details should " +
-        "be displayed", required = true, multiValued = false)
-    private String instanceID;
-
-    @Option(name = "-v", aliases = "--verbose", description = "Full details of the process instance")
-    private boolean verbose;
-
-    @Option(name = "-q", aliases = "--quiet", description = "Show minimum required details of the process instance")
-    private boolean quiet;
-
-    private ActivitiPrintHandler printHandler;
-
-    public boolean isVerbose() {
-        return verbose;
-    }
-
-    public void setVerbose(boolean verbose) {
-        this.verbose = verbose;
-    }
-
-    public boolean isQuiet() {
-        return quiet;
-    }
-
-    public void setQuiet(boolean quiet) {
-        this.quiet = quiet;
-    }
-
-    public String getInstanceID() {
-        return instanceID;
-    }
-
-    public void setInstanceID(String instanceID) {
-        this.instanceID = instanceID;
-    }
-
-    public ActivitiPrintHandler getPrintHandler() {
-        return printHandler;
-    }
-
-    public void setPrintHandler(ActivitiPrintHandler printHandler) {
-        this.printHandler = printHandler;
-    }
-
-    @Override
-    protected Object doExecute() throws Exception {
-        Object obj = null;
-        try {
-            obj = executeCommand();
-        } catch (Exception ex) {
-            out().println(ex.getMessage());
-            LOG.log(Level.INFO, ex.getMessage(), ex);
-        }
-        return obj;
-    }
-
-    protected Object executeCommand() throws Exception {
-        ProcessEngine pe = this.getProcessEngine();
-        if (pe == null) {
-            out().println("Process Engine NOT Found!");
-            return null;
-        }
-        if (this.instanceID == null || this.instanceID.trim().length() == 0) {
-            out().println("Instance ID required to show the information about the instance");
-            return null;
-        }
-
-        this.printHandler = this.findBPMPrintHandler();
-
-        printDetails(this.instanceID.trim());
-        return null;
-    }
-
-    protected ActivitiPrintHandler findBPMPrintHandler() {
-        ActivitiPrintHandler handler;
-        List<ActivitiPrintHandler> hList = null;
-        try {
-            String filter = null; // add the filter here per process.
-            hList = this.getAllServices(ActivitiPrintHandler.class, filter);
-        } catch (Exception e) {
-            e.printStackTrace();
-        }
-        if (hList == null || hList.size() == 0) {
-            DefaultActivitiPrintHandler defHandler = new DefaultActivitiPrintHandler();
-            defHandler.setProcessEngine(this.getProcessEngine());
-            handler = defHandler;
-        } else {
-            handler = hList.get(0); // first one that matches.
-        }
-        return handler;
-    }
-
-    protected void printDeploymentInfo(Deployment depInfo) {
-        LinkedHashMap<String, String> nvMap = new LinkedHashMap<String, String>();
-        nvMap.put("Deployment ID", depInfo.getId());
-        nvMap.put("Deployment Name", depInfo.getName());
-        nvMap.put("Deployment Time", Commands.UTIL.formatDate(depInfo.getDeploymentTime()));
-        Commands.UTIL.printNameValues(new PrintWriter(out(), true), nvMap);
-    }
-
-    protected void printProcessDefinitionInfo(ProcessDefinition pd) {
-        LinkedHashMap<String, String> nvMap = new LinkedHashMap<String, String>();
-        nvMap.put("Definition ID", pd.getId());
-        nvMap.put("Definition Name", pd.getName());
-        nvMap.put("Version", Integer.toString(pd.getVersion()));
-        nvMap.put("Resource Name", pd.getResourceName());
-        Commands.UTIL.printNameValues(new PrintWriter(out(), true), nvMap);
-
-    }
-
-    protected void printProcessInstanceInfo(HistoricProcessInstance hpi) {
-        LinkedHashMap<String, String> nvMap = new LinkedHashMap<String, String>();
-        nvMap.put("Instance ID", hpi.getId());
-        nvMap.put("Start Activity", hpi.getStartActivityId());
-        nvMap.put("End Activity", hpi.getEndActivityId());
-        nvMap.put("Start Time", Commands.UTIL.formatDate(hpi.getStartTime()));
-        nvMap.put("End Time", Commands.UTIL.formatDate(hpi.getEndTime()));
-        if (!this.isQuiet()) {
-            nvMap.put("Duration", Commands.UTIL.formatDuration(hpi.getDurationInMillis()));
-        }
-
-        PrintWriter out = new PrintWriter(out(), true);
-        Commands.UTIL.printNameValues(out, nvMap);
-        // print instance data
-        this.getPrintHandler().printInstanceData(out, this.isVerbose(), this.isQuiet(), hpi);
-    }
-
-    protected void printActivityInstanceInfo(HistoricActivityInstance actInst) {
-
-        LinkedHashMap<String, String> nvMap = new LinkedHashMap<String, String>();
-        nvMap.put("Activity ID", actInst.getActivityId());
-        if (!this.isQuiet()) {
-            nvMap.put("Activity Type", actInst.getActivityType());
-        }
-        nvMap.put("Activity Name", actInst.getActivityName());
-        if (!this.isQuiet()) {
-            nvMap.put("Execution ID", actInst.getExecutionId());
-        }
-        nvMap.put("Start Time", Commands.UTIL.formatDate(actInst.getStartTime()));
-        nvMap.put("End Time", Commands.UTIL.formatDate(actInst.getEndTime()));
-        if (!this.isQuiet()) {
-            nvMap.put("Duration", Commands.UTIL.formatDuration(actInst.getDurationInMillis()));
-        }
-
-        PrintWriter out = new PrintWriter(out(), true);
-        Commands.UTIL.printNameValues(out, nvMap);
-        // print activity vars
-        this.getPrintHandler().printActivityData(out, this.isVerbose(), this.isQuiet(), actInst);
-        out().println("-------------");
-    }
-
-    protected void printDetails(String pid) {
-        ProcessEngine pe = this.getProcessEngine();
-        RepositoryService repo = pe.getRepositoryService();
-        RuntimeService rt = pe.getRuntimeService();
-        HistoryService hs = pe.getHistoryService();
-
-        ProcessInstance pi = rt.createProcessInstanceQuery().processInstanceId(pid).singleResult();
-        HistoricProcessInstance hpi = hs.createHistoricProcessInstanceQuery().processInstanceId(pid)
-            .singleResult();
-        if (pi == null && hpi == null) {
-            // both null means. no process with that id.
-            out().printf("No process details found with process id %s \n", pid);
-            return;
-        }
-
-        String pdId = null;
-        if (pi != null) {
-            pdId = pi.getProcessDefinitionId();
-        } else if (hpi != null) {
-            pdId = hpi.getProcessDefinitionId();
-        }
-
-        ProcessDefinition pd = repo.createProcessDefinitionQuery().processDefinitionId(pdId).singleResult();
-        Deployment depInfo = repo.createDeploymentQuery().deploymentId(pd.getDeploymentId()).singleResult();
-        // print
-        if (isVerbose()) {
-            out().println("======== Deployment Details");
-            printDeploymentInfo(depInfo);
-
-            out().println("======== Process Definition Details");
-            printProcessDefinitionInfo(pd);
-        }
-
-        out().println("======== Process Instance Details");
-        printProcessInstanceInfo(hpi);
-
-        List<HistoricActivityInstance> actInstList = hs.createHistoricActivityInstanceQuery()
-            .processInstanceId(hpi.getId()).orderByHistoricActivityInstanceStartTime().asc().list();
-        if (actInstList != null && actInstList.size() > 0) {
-            out().println("======== Activity Execution Details");
-            for (HistoricActivityInstance actInst : actInstList) {
-                printActivityInstanceInfo(actInst);
-            }
-        } else {
-            LOG.info("No Activity execution details");
-        }
-    }
-
-}

http://git-wip-us.apache.org/repos/asf/incubator-provisionr/blob/6ba40c4b/activiti/commands/src/main/java/org/activiti/karaf/commands/KillActivitiCommand.java
----------------------------------------------------------------------
diff --git a/activiti/commands/src/main/java/org/activiti/karaf/commands/KillActivitiCommand.java b/activiti/commands/src/main/java/org/activiti/karaf/commands/KillActivitiCommand.java
deleted file mode 100644
index 00717a1..0000000
--- a/activiti/commands/src/main/java/org/activiti/karaf/commands/KillActivitiCommand.java
+++ /dev/null
@@ -1,72 +0,0 @@
-/*
- * Copyright 2012 Cisco Systems
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.activiti.karaf.commands;
-
-import java.util.List;
-import org.activiti.engine.ProcessEngine;
-import org.activiti.engine.RuntimeService;
-import org.activiti.engine.runtime.ProcessInstance;
-import org.apache.felix.gogo.commands.Argument;
-import org.apache.felix.gogo.commands.Command;
-import org.apache.felix.gogo.commands.Option;
-
-/**
- * @author Srinivasan Chikkala
- */
-@Command(scope = "activiti", name = "kill", description = "Kills any active Activiti process instances")
-public class KillActivitiCommand extends ActivitiCommand {
-
-    @Argument(index = 0, name = "instanceIDs", description = "Instance IDs to kill set of active process instances",
-        required = false, multiValued = true)
-    private String[] instanceIDs;
-
-    @Option(name = "-a", aliases = "--all", description = "Kill all active process instances")
-    private boolean killAll;
-
-    @Override
-    protected Object doExecute() throws Exception {
-        ProcessEngine processEngine = this.getProcessEngine();
-        if (processEngine == null) {
-            out().println("Process Engine NOT Found!");
-            return null;
-        }
-
-        RuntimeService runtimeService = processEngine.getRuntimeService();
-
-        if (this.instanceIDs != null && this.instanceIDs.length > 0) {
-            for (String instanceID : instanceIDs) {
-                runtimeService.deleteProcessInstance(instanceID, "Forcefully terminating the instance");
-                out().printf("Process instance %s terminated\n", instanceID);
-            }
-            return null;
-        }
-
-        if (!killAll) {
-            out().println("Process instance IDs required or use the command with -a or --all option");
-            return null;
-        } else {
-            out().println("Signalling all executions in all active process instances...");
-            List<ProcessInstance> piList = runtimeService.createProcessInstanceQuery().orderByProcessInstanceId().asc().list();
-            for (ProcessInstance pi : piList) {
-                String instanceID = pi.getProcessInstanceId();
-                runtimeService.deleteProcessInstance(instanceID, "Forcefully terminating the instance");
-                out().printf("Process instance %s terminated\n", instanceID);
-            }
-        }
-
-        return null;
-    }
-}

http://git-wip-us.apache.org/repos/asf/incubator-provisionr/blob/6ba40c4b/activiti/commands/src/main/java/org/activiti/karaf/commands/ListActivitiCommand.java
----------------------------------------------------------------------
diff --git a/activiti/commands/src/main/java/org/activiti/karaf/commands/ListActivitiCommand.java b/activiti/commands/src/main/java/org/activiti/karaf/commands/ListActivitiCommand.java
deleted file mode 100644
index 5483620..0000000
--- a/activiti/commands/src/main/java/org/activiti/karaf/commands/ListActivitiCommand.java
+++ /dev/null
@@ -1,220 +0,0 @@
-/*
- * Copyright 2012 Cisco Systems
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.activiti.karaf.commands;
-
-import java.io.PrintWriter;
-import java.text.DateFormat;
-import java.util.Date;
-import java.util.List;
-import org.activiti.engine.HistoryService;
-import org.activiti.engine.ProcessEngine;
-import org.activiti.engine.RepositoryService;
-import org.activiti.engine.RuntimeService;
-import org.activiti.engine.history.HistoricProcessInstance;
-import org.activiti.engine.repository.Deployment;
-import org.activiti.engine.repository.ProcessDefinition;
-import org.activiti.engine.runtime.Execution;
-import org.activiti.engine.runtime.ProcessInstance;
-import org.activiti.karaf.commands.util.TextTable;
-import org.apache.felix.gogo.commands.Command;
-import org.apache.felix.gogo.commands.Option;
-
-/**
- * @author Srinivasan Chikkala
- */
-@Command(scope = "activiti", name = "list", description = "Displays information about Activiti active " +
-    "process instances, process definitions, history of process instances")
-public class ListActivitiCommand extends ActivitiCommand {
-
-    @Option(name = "-pi", aliases = "--active", description = "Display information about all active process instances")
-    private boolean active;
-
-    @Option(name = "-pd", aliases = "--definitions", description = "Display information about all process definitions")
-    private boolean definitions;
-
-    @Option(name = "-h", aliases = "--history", description = "Display information about history of all process instances")
-    private boolean history;
-
-    @Option(name = "-d", aliases = "--deployments", description = "Display information about all Activiti deployments")
-    private boolean deployments;
-
-
-    @Override
-    protected Object doExecute() throws Exception {
-        ProcessEngine pe = this.getProcessEngine();
-
-        if (pe == null) {
-            out().println("Process Engine NOT Found!");
-            return null;
-        }
-
-        if (!(this.active || this.definitions || this.history || this.deployments)) {
-            // none of them set, display everything 
-            // set all to true;
-            this.active = this.definitions = this.history = this.deployments = true;
-        }
-
-        if (this.deployments) {
-            RepositoryService repo = pe.getRepositoryService();
-            printDeployments(out(), repo);
-        }
-
-        if (this.definitions) {
-            RepositoryService repo = pe.getRepositoryService();
-            printProcessDefinitions(out(), repo);
-        }
-
-        if (this.history) {
-            HistoryService his = pe.getHistoryService();
-            boolean printActive = !this.active; // if we show active process, dont print then in history 
-            printHistoricProcessInstances(out(), his, printActive);
-        }
-
-        if (this.active) {
-            RuntimeService rt = pe.getRuntimeService();
-            printActiveProcessInstances(out(), rt);
-        }
-
-
-        return null;
-    }
-
-    private String formatDate(Date date) {
-        String dateTxt = "";
-        if (date != null) {
-            dateTxt = DateFormat.getDateTimeInstance().format(date);
-        }
-        return dateTxt;
-    }
-
-    private String formatBpmResource(String bpmResource) {
-        if (bpmResource.startsWith("bundleresource:")) {
-            return bpmResource.substring("bundleresource:".length());
-        } else {
-            return bpmResource;
-        }
-    }
-
-    private void printDeployments(PrintWriter out, RepositoryService repo) {
-
-        List<Deployment> depList = repo.createDeploymentQuery().orderByDeploymenTime().asc().list();
-
-        out.println();
-        out.println("Activiti Deployments");
-        out.println("--------------------");
-        if (depList.isEmpty()) {
-            out.println("No Activiti Deployments Found.");
-            return;
-        }
-
-        TextTable txtTable = new TextTable(3);
-
-        txtTable.addHeaders("ID", "Name", "Deployment Time");
-        for (Deployment dep : depList) {
-            txtTable.addRow(dep.getId(), dep.getName(), formatDate(dep.getDeploymentTime()));
-        }
-        txtTable.print(out);
-    }
-
-    private void printProcessDefinitions(PrintWriter out, RepositoryService repo) {
-        List<ProcessDefinition> pdList = repo.createProcessDefinitionQuery()
-            .orderByDeploymentId().asc().list();
-
-        out.println();
-        out.println("Activiti Process Definitions");
-        out.println("----------------------------");
-        if (pdList.isEmpty()) {
-            out.println("No Activiti Process Definitions Found.");
-            return;
-        }
-
-        TextTable txtTable = new TextTable(4);
-
-        txtTable.addHeaders("Definition ID", "Name", "Version", "Resource");
-        for (ProcessDefinition pd : pdList) {
-            Integer ver = pd.getVersion();
-            txtTable.addRow(pd.getId(), pd.getName(), ver.toString(), formatBpmResource(pd.getResourceName()));
-        }
-        txtTable.print(out);
-    }
-
-    private String getExecutions(RuntimeService rt, String pi) {
-        List<Execution> executions = rt.createExecutionQuery()
-            .processInstanceId(pi)
-            .orderByProcessInstanceId().asc().list();
-        StringBuilder bld = new StringBuilder();
-        boolean first = true;
-        for (Execution exec : executions) {
-            if (!first) {
-                bld.append(",");
-            } else {
-                first = false;
-            }
-            bld.append(exec.getId());
-        }
-        return bld.toString();
-    }
-
-    private void printActiveProcessInstances(PrintWriter out, RuntimeService rt) {
-
-        List<ProcessInstance> piList = rt.createProcessInstanceQuery().orderByProcessInstanceId().asc().list();
-
-        out.println();
-        out.println("Active Process Instances");
-        out.println("------------------------");
-        if (piList.isEmpty()) {
-            out.println("No Active Process Instances Found.");
-            return;
-        }
-
-        TextTable txtTable = new TextTable(3);
-
-        txtTable.addHeaders("Definition ID", "Instance ID", "Executions");
-        for (ProcessInstance pi : piList) {
-            txtTable.addRow(pi.getProcessDefinitionId(),
-                pi.getProcessInstanceId(), getExecutions(rt, pi.getProcessInstanceId()));
-        }
-        txtTable.print(out);
-    }
-
-    private void printHistoricProcessInstances(PrintWriter out, HistoryService his, boolean printActive) {
-
-        List<HistoricProcessInstance> hpiList = his.createHistoricProcessInstanceQuery()
-            .orderByProcessDefinitionId().asc().list();
-
-        out.println();
-        out.println("History of Activiti Process Instances");
-        out.println("-------------------------------------");
-        if (hpiList.isEmpty()) {
-            out.println("No History on Activiti Processes.");
-            return;
-        }
-
-        TextTable txtTable = new TextTable(4);
-
-        txtTable.addHeaders("Definition ID", "Instance ID", "Start Time", "End Time");
-        for (HistoricProcessInstance hpi : hpiList) {
-            Date endTime = hpi.getEndTime();
-            if (endTime == null && !printActive) {
-                continue;  // don't print active instance history if printActive is false - default.
-            }
-            txtTable.addRow(hpi.getProcessDefinitionId(), hpi.getId(),
-                formatDate(hpi.getStartTime()), formatDate(hpi.getEndTime()));
-        }
-        txtTable.print(out);
-    }
-}

http://git-wip-us.apache.org/repos/asf/incubator-provisionr/blob/6ba40c4b/activiti/commands/src/main/java/org/activiti/karaf/commands/ListGroupsCommand.java
----------------------------------------------------------------------
diff --git a/activiti/commands/src/main/java/org/activiti/karaf/commands/ListGroupsCommand.java b/activiti/commands/src/main/java/org/activiti/karaf/commands/ListGroupsCommand.java
deleted file mode 100644
index eb6c312..0000000
--- a/activiti/commands/src/main/java/org/activiti/karaf/commands/ListGroupsCommand.java
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * Copyright (c) 2012 S.C. Axemblr Software Solutions S.R.L
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *    http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.activiti.karaf.commands;
-
-import java.util.List;
-import org.activiti.engine.identity.Group;
-import org.apache.felix.gogo.commands.Command;
-
-@Command(scope = "activiti", name = "list-groups", description = "List groups")
-public class ListGroupsCommand extends ActivitiCommand {
-
-    @Override
-    protected Object doExecute() throws Exception {
-        List<Group> groups = getProcessEngine().getIdentityService()
-            .createGroupQuery().orderByGroupId().asc().list();
-
-        if (groups.isEmpty()) {
-            err().println("No groups found.");
-        }
-        for (Group group : groups) {
-            out().printf("%s\t%s\t%s\n", group.getId(), group.getName(), group.getType());
-        }
-        return null;
-    }
-}

http://git-wip-us.apache.org/repos/asf/incubator-provisionr/blob/6ba40c4b/activiti/commands/src/main/java/org/activiti/karaf/commands/ListUsersCommand.java
----------------------------------------------------------------------
diff --git a/activiti/commands/src/main/java/org/activiti/karaf/commands/ListUsersCommand.java b/activiti/commands/src/main/java/org/activiti/karaf/commands/ListUsersCommand.java
deleted file mode 100644
index 95c97e0..0000000
--- a/activiti/commands/src/main/java/org/activiti/karaf/commands/ListUsersCommand.java
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * Copyright (c) 2012 S.C. Axemblr Software Solutions S.R.L
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *    http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.activiti.karaf.commands;
-
-import java.util.List;
-import org.activiti.engine.identity.User;
-import org.apache.felix.gogo.commands.Command;
-
-@Command(scope = "activiti", name = "list-users", description = "List users")
-public class ListUsersCommand extends ActivitiCommand {
-
-    @Override
-    protected Object doExecute() throws Exception {
-        List<User> users = getProcessEngine().getIdentityService()
-            .createUserQuery().orderByUserId().asc().list();
-
-        if (users.isEmpty()) {
-            err().println("No users found.");
-        }
-        for (User user : users) {
-            out().printf("%s\t%s\t%s\n", user.getId(), user.getEmail(), user.getPassword());
-        }
-
-        return null;
-    }
-}

http://git-wip-us.apache.org/repos/asf/incubator-provisionr/blob/6ba40c4b/activiti/commands/src/main/java/org/activiti/karaf/commands/SignalActivitiCommand.java
----------------------------------------------------------------------
diff --git a/activiti/commands/src/main/java/org/activiti/karaf/commands/SignalActivitiCommand.java b/activiti/commands/src/main/java/org/activiti/karaf/commands/SignalActivitiCommand.java
deleted file mode 100644
index 66331e3..0000000
--- a/activiti/commands/src/main/java/org/activiti/karaf/commands/SignalActivitiCommand.java
+++ /dev/null
@@ -1,110 +0,0 @@
-/*
- * Copyright 2012 Cisco Systems
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.activiti.karaf.commands;
-
-import java.util.List;
-import org.activiti.engine.ProcessEngine;
-import org.activiti.engine.RuntimeService;
-import org.activiti.engine.runtime.Execution;
-import org.activiti.engine.runtime.ProcessInstance;
-import org.apache.felix.gogo.commands.Argument;
-import org.apache.felix.gogo.commands.Command;
-import org.apache.felix.gogo.commands.Option;
-
-/**
- * @author Srinivasan Chikkala
- */
-@Command(scope = "activiti", name = "signal",
-    description = "Signals any active executions in Activiti process instances")
-public class SignalActivitiCommand extends ActivitiCommand {
-
-    @Argument(index = 0, name = "instanceIDs", description = "Instance IDs to signal set of active process " +
-        "instances", required = false, multiValued = true)
-    private String[] instanceIDs;
-
-    @Option(name = "-a", aliases = "--all", description = "Signal all active process instances")
-    private boolean signalAll;
-
-    @Option(name = "-activities", aliases = "--activities", required = false,
-        multiValued = true, description = "Signal all activities in a process instances")
-    private String[] activities;
-
-    @Override
-    protected Object doExecute() throws Exception {
-        ProcessEngine engine = this.getProcessEngine();
-        if (engine == null) {
-            out().println("Process Engine NOT Found!");
-            return null;
-        }
-        RuntimeService runtimeService = engine.getRuntimeService();
-
-        if (this.instanceIDs != null && this.instanceIDs.length > 0) {
-            for (String instanceID : this.instanceIDs) {
-                signal(runtimeService, instanceID, this.activities);
-            }
-            return null;
-        }
-
-        if (!signalAll) {
-            out().println("Process instance IDs required or use the command with -a or --all option");
-            return null;
-        } else {
-            out().println("Signalling all executions in all active process instances...");
-            List<ProcessInstance> piList = runtimeService.createProcessInstanceQuery().orderByProcessInstanceId().asc().list();
-            for (ProcessInstance pi : piList) {
-                signal(runtimeService, pi.getProcessInstanceId(), this.activities);
-            }
-        }
-
-        return null;
-    }
-
-    private void signal(RuntimeService rt, Execution exec) {
-        try {
-            if (!exec.isEnded()) {
-                rt.signal(exec.getId());
-            } else {
-                out().printf("Execution %s already ended \n" + exec.getId());
-            }
-        } catch (Exception ex) {
-            out().printf("Exception:%s in signaling the execution %s \n", ex.getMessage(), exec.getId());
-        }
-    }
-
-    private void signal(RuntimeService rt, String pi, String... activities) {
-        if (activities == null || activities.length == 0) {
-            // signal all executions in the instance 
-            out().println("Signaling all active executions in the process instance " + pi);
-            List<Execution> executions = rt.createExecutionQuery()
-                .processInstanceId(pi)
-                .orderByProcessInstanceId().asc().list();
-            for (Execution exec : executions) {
-                signal(rt, exec);
-            }
-        } else {
-            for (String activity : activities) {
-                out().printf("Signaling activity %s in process instance %s \n", activity, pi);
-                List<Execution> executions = rt.createExecutionQuery()
-                    .processInstanceId(pi)
-                    .activityId(activity)
-                    .orderByProcessInstanceId().asc().list();
-                for (Execution exec : executions) {
-                    signal(rt, exec);
-                }
-            }
-        }
-    }
-}


Mime
View raw message