public final class PackageInfo extends Object
Modifier and Type | Field and Description |
---|---|
static String |
PACKAGE_HTML_NAME |
static String |
PACKAGE_JAVA_NAME |
Constructor and Description |
---|
PackageInfo() |
Modifier and Type | Method and Description |
---|---|
static void |
copy(File sourceFile,
String destDirectory,
boolean verbose)
Copies the given sourceFile into the specified directory.
|
static void |
copyPackageInfo(MetadataParserPath path,
Metadata metadata,
boolean verbose)
Copies the optional packageInfo files into the packages.
|
static void |
deleteExistingPackageInfo(String destDirectory,
boolean verbose)
Deletes package.html or package-info.java from the given directory.
|
public static final String PACKAGE_HTML_NAME
public static final String PACKAGE_JAVA_NAME
public static void copyPackageInfo(MetadataParserPath path, Metadata metadata, boolean verbose) throws IOException
path
- metadata
- IOException
public static void copy(File sourceFile, String destDirectory, boolean verbose) throws IOException
If the source file ends with .java
, then the destination file name is package-info.java
otherwise the file name is package.html
.
sourceFile
- destDirectory
- verbose
- IOException
public static void deleteExistingPackageInfo(String destDirectory, boolean verbose)
destDirectory
- verbose
- Copyright © 2024 JBoss by Red Hat. All rights reserved.