Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
How to Implement a new Migrator
Create a new package in org.jboss.loom.migrators.*
Implement IMigrator. You may use AbstractMigrator which deals with
conf.<migratorName>.*app parameters by putting them to a Map<String, String>.
If you need an action which is not in the existing set, first discuss on #jboss-migration IRC channel.
If it's a warn-only implementation (let's user know that the impl is not done yet), create ManualAction(s) like this:
// TODO: Report exactly what was found in which deployment. ManualAction manualAction = new ManualAction(); manualAction.addWarning( "jboss-classloading.xml or/and jboss-web.xml was found in your deployments.\n" + "Migration of classloading configuration is not supported (yet)."); ctx.getActions().add( manualAction );
- Use Arquillian
- Use org.jboss.loom.TestAppConfig
- Put the test in the same package
- If it needs an app, see ShrinkWrap