Official Content

Specifies the contents of the package being created so that the application can be deployed.

Values

Binaries The package that is created contains the compiled and executable code of the application, along with any necessary dependencies or libraries.
Sources The package being created contains the source code for the application, along with any necessary configuration files or static files, etc.

Scope

Generators: .NET, Java
Level: Deploy Target Options

Description

The Package Type property is typically used in software development and deployment processes to distinguish between packages containing source code and those containing compiled code. It helps to determine how the package can be used and what steps may be required to use it.

If you simply want to run the application, a package containing the binaries will suffice. Thus, you should configure the property with the Binaries value.

If you need to modify the application code or upload the generated code to a version control system, you will need a package containing the source code. Then you must configure the property with the Sources value.

Runtime/Design time

This property applies only at design time.

Samples

Uploading the source code of an application to a source code management system such as GitHub.

In this case, a package containing the source code of the application is usually created. This package is uploaded to GitHub, where other developers can access the code. In this scenario, the Package Type property would be set to 'Sources'. This is because the package contains the source code for the application, which can be used to build the application later. It can then be built for a specific platform, such as Linux or Windows. More information in SAC #52557.

Integrating the build process into an organization's existing pipeline with certain quality rules.

When an organization wants to integrate the build process of a software application into its existing deployment pipeline, it usually creates a package containing the source code of the application along with the necessary build scripts or configuration files. This package is then integrated into the organization's build process, where it can be compiled, tested, and deployed. In addition, the organization may have certain quality standards and static code analysis as part of its build process that the application must meet before being deployed. In this case, the Package Type property would be set to 'Sources'.

See Also

Packaging Java sources
Packaging .NET sources

Last update: February 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant