use of org.wildfly.swarm.spi.api.JARArchive in project wildfly-swarm by wildfly-swarm.
the class LoggingArquillianTest method createDeployment.
@Deployment
public static Archive createDeployment() {
JARArchive deployment = ShrinkWrap.create(JARArchive.class);
deployment.add(EmptyAsset.INSTANCE, "nothing");
return deployment;
}
use of org.wildfly.swarm.spi.api.JARArchive in project wildfly-swarm by wildfly-swarm.
the class ArqSecuredManagementInterfaceWithPropertiesTest method createDeployment.
@Deployment(testable = false)
public static Archive createDeployment() {
JARArchive deployment = ShrinkWrap.create(JARArchive.class, "myapp.jar");
deployment.add(EmptyAsset.INSTANCE, "nothing");
return deployment;
}
use of org.wildfly.swarm.spi.api.JARArchive in project wildfly-swarm by wildfly-swarm.
the class JMXRemoteManagementAutoEndpointArquillianTest method createDeployment.
@Deployment(testable = false)
public static Archive createDeployment() {
JARArchive deployment = ShrinkWrap.create(JARArchive.class);
deployment.add(EmptyAsset.INSTANCE, "nothing");
return deployment;
}
use of org.wildfly.swarm.spi.api.JARArchive in project wildfly-swarm by wildfly-swarm.
the class JMXRemoteManagementEndpointArquillianTest method createDeployment.
@Deployment(testable = false)
public static Archive createDeployment() {
JARArchive deployment = ShrinkWrap.create(JARArchive.class);
deployment.add(EmptyAsset.INSTANCE, "nothing");
return deployment;
}
use of org.wildfly.swarm.spi.api.JARArchive in project wildfly-swarm by wildfly-swarm.
the class KeycloakThemesCustomizer method customize.
@Override
public void customize() throws ModuleLoadException, IOException {
if (!this.keycloakServer.subresources().themes().isEmpty()) {
return;
}
Module module = Module.getBootModuleLoader().loadModule("org.keycloak.keycloak-themes");
URL resource = module.getExportedResource("keycloak-themes.jar");
JARArchive themesArtifact = ShrinkWrap.create(JARArchive.class);
themesArtifact.as(ZipImporter.class).importFrom(resource.openStream());
File root = TempFileManager.INSTANCE.newTempDirectory("keycloak-themes", ".d");
File exportedDir = themesArtifact.as(ExplodedExporter.class).exportExplodedInto(root);
File themeDir = new File(exportedDir, "theme");
this.keycloakServer.theme("defaults", (theme) -> {
theme.dir(themeDir.getAbsolutePath());
theme.staticmaxage(2592000L);
theme.cachethemes(true);
theme.cachetemplates(true);
});
}
Aggregations