private void initializeConfigFilters() throws ModuleLoadException, IOException, ClassNotFoundException { if (isFatJar()) { initializeConfigFiltersFatJar(); } else { initializeConfigFiltersClassPath(); } }
public static void stopMain() throws Exception { try { if (swarm != null) { swarm.stop(); } } catch (Exception e) { } }
@RunWith(Arquillian.class) public class SomeTest { @Deployment public static JavaArchive createTestArchive() { /* ... */ } @CreateSwarm public static Swarm newContainer() throws Exception { Swarm swarm = new Swarm(); // configure your swarm thingy return swarm; }
/** * Start the container with a deployment. * * <p>Effectively calls {@code start().deploy(deployment)}</p> * * @param deployment The deployment to deploy. * @return The container. * @throws Exception if an error occurs. * @see #start() * @see #deploy(Archive) */ public Swarm start(Archive<?> deployment) throws Exception { return start().deploy(deployment); }
public static void factoryMain(ContainerFactory factory, String...args) throws Exception { Container container = factory.newContainer(args); container.start(); container.deploy(); }
/** * Retrieve an artifact that was part of the original build using a * full or simplified Maven GAV specifier, returning an archive with a * specified name. * * @param gav The Maven GAV. * @return The located artifact, as a {@code JavaArchive} with the specified name. * @throws Exception If the specified artifact is not locatable. * @see #artifact(String) */ public static JavaArchive artifact(String gav, String asName) throws Exception { return artifactLookup().artifact(gav, asName); }
/** * Retrieve all dependency artifacts for the user's project. * * @return All dependencies, as {@code JavaArchive} objects. * @throws Exception */ public static List<JavaArchive> allArtifacts() throws Exception { return artifactLookup().allArtifacts(); }
default T addAllDependencies() throws Exception { List<JavaArchive> artifacts = Swarm.allArtifacts(); addAsLibraries( artifacts ); return (T) this; } }
public static List<JavaArchive> allArtifacts() throws Exception { return ArtifactManager.allArtifacts(); } }
public static JavaArchive artifact(String gav) throws Exception { return ArtifactManager.artifact( gav ); }
/** * Start the container with a deployment. * * <p>Effectively calls {@code start().deploy(deployment)}</p> * * @param deployment The deployment to deploy. * @return The container. * @throws Exception if an error occurs. * @see #start() * @see #deploy(Archive) */ public Swarm start(Archive<?> deployment) throws Exception { return start().deploy(deployment); }
private void initializeConfigFilters() throws ModuleLoadException, IOException, ClassNotFoundException { if (isFatJar()) { initializeConfigFiltersFatJar(); } else { initializeConfigFiltersClassPath(); } }
/** * Retrieve all dependency artifacts for the user's project. * * @return All dependencies, as {@code JavaArchive} objects. * @throws Exception */ public static List<JavaArchive> allArtifacts() throws Exception { return artifactLookup().allArtifacts(); }
@SuppressWarnings("unchecked") default T addAllDependencies() throws Exception { List<JavaArchive> artifacts = Swarm.allArtifacts(); addAsLibraries(artifacts); return (T) this; } }
public static void stopMain() throws Exception { try { if (swarm != null) { swarm.stop(); } } catch (Exception e) { } }
/** * Start the container with a deployment. * * <p>Effectively calls {@code start().deploy(deployment)}</p> * * @param deployment The deployment to deploy. * @return The container. * @throws Exception if an error occurs. * @see #start() * @see #deploy(Archive) */ public Swarm start(Archive<?> deployment) throws Exception { return start().deploy(deployment); }
private void initializeConfigFilters() throws ModuleLoadException, IOException, ClassNotFoundException { if (isFatJar()) { initializeConfigFiltersFatJar(); } else { initializeConfigFiltersClassPath(); } }
/** * Retrieve all dependency artifacts for the user's project. * * @return All dependencies, as {@code JavaArchive} objects. * @throws Exception */ public static List<JavaArchive> allArtifacts() throws Exception { return artifactLookup().allArtifacts(); }
public static void stopMain() throws Exception { try { if (swarm != null) { swarm.stop(); } } catch (Exception e) { } }