Skip to content

[JVSC-253] Refactor Netbeans localisation build #280

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed

Conversation

sid-srini
Copy link
Member

  1. Moved the addition of the build project dirs locale_ja and locale_zh_CN to nbcode/l10n/ from inside netbeans-l10n/.

    • This is because the netbeans-l10n repo provides the build projects locale_de/ and locale_cs/ only as samples.
    • Thus the repo would not need to accept more such samples causing bloat.
    • Only the addition of localised messages for the java.lsp.server module is included in the patch.
    • This slimmed and renamed patch maybe submitted to the repo as a PR.
  2. Enhanced the Package ant task definition in netbeans-l10n to:

    • Support accepting disabledModules and enabledClusterPath as input.
    • These are used to filter unneeded clusters and modules from being built.
    • The platform properties disabled.modules and cluster.path can be used to set these parameters.
    • The former is expected to contain comma-separated module names.
    • The latter is expected to contain path-delimiter separated cluster paths.
    • This is stored in patches/l10n/filter-enabled-clusters-disabled-modules-code-cleanup.diff
    • This may also be submitted to the repo as a PR.
  3. Fixed nbcode/nbproject/platform.properties to specify ${path.separator} instead of ':' for the cluster.path value separator.

    • This is needed for build support on windows.
  4. Loaded the platform.properties in the locale build scripts and pass the values for disabled.modules and cluster.path to the buildPackage task.

  5. Updated the build.xml scripts to pass the appropriate property values for the netbeans/ and netbeans-l10n/ dirs.

  6. Fixed the clean-l10n target to clean out the copied artifacts from vscode/nbcode/extras/

  7. Fixed minor typos.

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Sep 19, 2024
@sid-srini sid-srini force-pushed the nb-l10n-remove-disabled-modules branch from 6eb0eb1 to 93ba732 Compare September 19, 2024 13:36
@sid-srini sid-srini marked this pull request as draft September 19, 2024 13:38
1. Moved the addition of the build project dirs locale_ja and locale_zh_CN to nbcode/l10n/ from inside netbeans-l10n/.
    - This is because the netbeans-l10n repo provides the build projects locale_de/ and locale_cs/ only as samples.
    - Thus the repo would not need to accept more such samples causing bloat.
    - Only the addition of localised messages for the java.lsp.server module is included in the patch.
    - This slimmed and renamed patch maybe submitted to the repo as a PR.

2. Enhanced the Package ant task definition in netbeans-l10n to:
    - Support accepting "disabledModules" and "enabledClusterPath" as input.
    - These are used to filter unneeded clusters and modules from being built.
    - The platform properties "disabled.modules" and "cluster.path" can be used to set these parameters.
    - The former is expected to contain comma-separated module names.
    - The latter is expected to contain path-delimiter separated cluster paths.
    - This is stored in patches/l10n/filter-enabled-clusters-disabled-modules-code-cleanup.diff

3. Fixed nbcode/nbproject/platform.properties to specify ${path.separator} instead of ':' for the cluster.path value separator.
    - This is needed for build support on windows.

4. Loaded the platform.properties in the locale build scripts and pass the values for "disabled.modules" and "cluster.path" to the buildPackage task.

5. Updated the build.xml scripts to pass the appropriate property values for the netbeans/ and netbeans-l10n/ dirs.

6. Fixed the clean-l10n target to clean out the copied artifacts from vscode/nbcode/extras/

7. Fixed minor typos.

Signed-off-by: Siddharth Srinivasan <[email protected]>
@sid-srini sid-srini force-pushed the nb-l10n-remove-disabled-modules branch from 93ba732 to b1bac24 Compare September 20, 2024 00:29
@sid-srini sid-srini closed this Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant