Skip to content

Commit

Permalink
Update javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeysemenyukoracle committed Oct 21, 2024
1 parent 0be1d72 commit f94eee3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,16 @@ default StandardPackageType asStandardPackageType() {

Path predefinedAppImage();

/**
* Returns source app image layout.
*/
default ApplicationLayout appLayout() {
return app().appLayout();
}

/**
* Returns app image layout inside of the package.
*/
default ApplicationLayout packageLayout() {
var layout = appLayout();
var pathGroup = layout.pathGroup();
Expand All @@ -103,6 +109,9 @@ default ApplicationLayout packageLayout() {
return layout;
}

/**
* Returns app image layout of the installed package.
*/
default ApplicationLayout installedPackageLayout() {
Path root = relativeInstallDir();
if (type() instanceof StandardPackageType type) {
Expand Down Expand Up @@ -247,7 +256,7 @@ public Path predefinedAppImage() {
public Path configuredInstallBaseDir() {
throw new UnsupportedOperationException();
}

}

static class Proxy<T extends Package> extends ProxyBase<T> implements Package {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,10 @@ interface Workshop {
Path resourceDir();

/**
* Returns path to application image directory. When building app image this is the path to a
* directory where it is assembled. When building a package this is the path to the source app
* image.
* Returns path to application image directory.
*
* The return value is supposed to be used as a parameter for
* ApplicationLayout#resolveAt function.
*/
default Path appImageDir() {
return buildRoot().resolve("image");
Expand Down

0 comments on commit f94eee3

Please sign in to comment.