Skip to content

Commit

Permalink
upgrader to migrate from test2-plugin to this plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Benoit Moussaud committed Mar 23, 2015
1 parent cfc2659 commit 1d7151f
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
23 changes: 23 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,29 @@ apply plugin: "com.github.hierynomus.license"
apply plugin: 'java'
apply plugin: 'idea'

dependencies {
compile "com.xebialabs.deployit:udm-plugin-api:2014.7"
compile "com.xebialabs.deployit:engine-api:2014.7"
compile "com.xebialabs.deployit:engine-spi:2014.7"
compile 'com.google.guava:guava:16.0'
compile 'com.google.code.findbugs:findbugs:3.0.0'
compile 'commons-io:commons-io:1.4'
compile 'org.jdom:jdom:2.0.2'
testCompile 'junit:junit:4.12'

}

repositories {
mavenLocal()
mavenCentral()
maven {
credentials {
username 'community-plugins'
password 'community'
}
url 'http://nexus.xebialabs.com/nexus/content/repositories/releases'
}
}

license {
header rootProject.file('src/main/license/xebialabs_community.license')
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/**
* THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS
* FOR A PARTICULAR PURPOSE. THIS CODE AND INFORMATION ARE NOT SUPPORTED BY XEBIALABS.
*/
package ext.deployit.smoketest.util;


import com.xebialabs.deployit.server.api.repository.RawRepository;
import com.xebialabs.deployit.server.api.upgrade.Upgrade;
import com.xebialabs.deployit.server.api.upgrade.UpgradeException;
import com.xebialabs.deployit.server.api.upgrade.Version;


public class UpgradeFromTest2CommunityPlugin extends Upgrade {
@Override
public boolean doUpgrade(final RawRepository repository) throws UpgradeException {

repository.renameType("tests2.TestRunner", "smoketest.Runner");
repository.renameType("tests2.HttpRequestTest", "smoketest.HttpRequestTest");
repository.renameType("tests2.HttpRequestTest", "smoketest.HttpRequestTest");
repository.renameType("tests2.ExecutedHttpRequestTest", "smoketest.ExecutedHttpRequestTest");
repository.renameType("tests2.ExecutedHttpPostRequestTest", "smoketest.ExecutedHttpPostRequestTest");
repository.renameType("tests2.ExecutedHttpPostFileRequestTest", "smoketest.ExecutedHttpPostRequestFileTest");

return true;
}

@Override
public Version upgradeVersion() {
return Version.valueOf("deployit", "4.5.0");
}
}

0 comments on commit 1d7151f

Please sign in to comment.