Package org.wildfly.prospero.test
Class MetadataTestUtils
java.lang.Object
org.wildfly.prospero.test.MetadataTestUtils
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcopyManifest(String resource, Path targetPath) static voidstatic org.jboss.galleon.state.ProvisionedStatecreateGalleonProvisionedState(Path installation, String... featurePacks) static InstallationMetadatacreateInstallationMetadata(Path installation) static InstallationMetadatacreateInstallationMetadata(Path installation, org.wildfly.channel.ChannelManifest manifest, List<org.wildfly.channel.Channel> channels) static voidcreateManifest(String name, List<org.wildfly.channel.Stream> streams, Path metadataDir) static org.wildfly.channel.ChannelManifestcreateManifest(Collection<org.wildfly.channel.Stream> streams) static List<org.eclipse.aether.repository.RemoteRepository>static PathprepareChannel(String manifestDescriptor) static voidprepareChannel(Path channelFile, String... manifestDescriptor) static voidprepareChannel(Path channelFile, List<URL> manifestUrls) static voidprepareChannel(Path channelFile, List<URL> manifestUrls, List<org.wildfly.channel.Repository> repositories) static voidprepareChannel(Path channelFile, List<org.wildfly.channel.Repository> repositories, String... manifests) static List<org.wildfly.channel.Channel>readChannels(Path channelFile) static voidupgradeStreamInManifest(Path manifestPath, org.eclipse.aether.artifact.Artifact upgrade) static voidwriteChannels(Path channelFile, List<org.wildfly.channel.Channel> channels)
-
Field Details
-
MANIFEST_FILE_PATH
-
INSTALLER_CHANNELS_FILE_PATH
-
-
Method Details
-
createManifest
public static org.wildfly.channel.ChannelManifest createManifest(Collection<org.wildfly.channel.Stream> streams) -
createManifest
public static void createManifest(String name, List<org.wildfly.channel.Stream> streams, Path metadataDir) throws IOException - Throws:
IOException
-
createChannel
public static void createChannel(String name, String mavenCoordinate, List<String> repositories, Path metadataDir) throws IOException - Throws:
IOException
-
createInstallationMetadata
public static InstallationMetadata createInstallationMetadata(Path installation) throws MetadataException - Throws:
MetadataException
-
createInstallationMetadata
public static InstallationMetadata createInstallationMetadata(Path installation, org.wildfly.channel.ChannelManifest manifest, List<org.wildfly.channel.Channel> channels) throws MetadataException - Throws:
MetadataException
-
createGalleonProvisionedState
public static org.jboss.galleon.state.ProvisionedState createGalleonProvisionedState(Path installation, String... featurePacks) throws XMLStreamException, IOException - Throws:
XMLStreamExceptionIOException
-
prepareChannel
- Throws:
IOException
-
prepareChannel
public static void prepareChannel(Path channelFile, String... manifestDescriptor) throws IOException - Throws:
IOException
-
prepareChannel
public static void prepareChannel(Path channelFile, List<org.wildfly.channel.Repository> repositories, String... manifests) throws IOException - Throws:
IOException
-
prepareChannel
- Throws:
IOException
-
prepareChannel
public static void prepareChannel(Path channelFile, List<URL> manifestUrls, List<org.wildfly.channel.Repository> repositories) throws IOException - Throws:
IOException
-
writeChannels
public static void writeChannels(Path channelFile, List<org.wildfly.channel.Channel> channels) throws IOException - Throws:
IOException
-
readChannels
- Throws:
IOException
-
defaultRemoteRepositories
-
copyManifest
- Throws:
IOException
-
upgradeStreamInManifest
public static void upgradeStreamInManifest(Path manifestPath, org.eclipse.aether.artifact.Artifact upgrade) throws IOException - Throws:
IOException
-