Skip to content

fix(#2011): self-contained ant.deps in migration_i18n_locales.xml - #2012

Merged
natechadwick merged 2 commits into
mainfrom
fix/issue-2011-ant-deps-migration
Aug 5, 2026
Merged

natechadwick merged 2 commits into
mainfrom
fix/issue-2011-ant-deps-migration

Conversation

@natechadwick-intsof

Copy link
Copy Markdown
Collaborator

Summary

Fixes full CMS installer abort on Windows when nested migration_i18n_locales.xml evaluates project-level taskdef classpathref="ant.deps" and fails with Reference ant.deps not found.

Root cause: Apache Ant applies parent inheritRefs only after the nested project is configured. install.xml correctly defines path id="ant.deps" and calls the migration with inheritAll/inheritRefs=true, but those path refs are not yet visible to project-level taskdef in the child.

Fix: Self-contained local <path id="ant.deps"> in migration_i18n_locales.xml, built from inherited ${install.dir} / ${install.src} (available via inheritAll during configure). Mirrors the JDBC / perc / extension filesets from install.xml with erroronmissingdir="false".

Test plan

  • cd modules/perc-distribution-tree && ../../mvnw.cmd clean install — BUILD SUCCESS
  • I18nLocaleMigrationWiringTest — Tests run: 3, Failures: 0, Errors: 0
    • ships migration script + task
    • local <path id="ant.deps"> present; no dangling classpathref without local path
    • install.chain + upgrade.chain still invoke migration_i18n_locales.xml (≥2 hits)
  • Module Spotless: spotless:apply then spotless:check (in-scope only; monorepo baseline Spotless hits discarded)
  • Erlang pre-commit review: approve — report docs/ai-generated/code-reviews/issue-2011-ant-deps-migration-erlang.md
  • Full Windows installer smoke (optional QA; not required for this static ANT wiring fix)

Gates evidence

Gate Result
Standalone module clean install SUCCESS
Unit tests (wiring) 3 / 0 fail
Spotless apply → check (in-scope) PASS
Erlang approve
Cross-platform paths Path.of relative; ANT props

Operator

Operator: Grok: night-issue-prs (model grok-4.5)

Fixes #2011

@natechadwick-intsof natechadwick-intsof added operator:grok Changes authored by Grok operator:night-issue-prs night-issue-prs workflow model:grok-4.5 Grok 4.5 model labels Aug 5, 2026
@kilo-code-bot

kilo-code-bot Bot commented Aug 5, 2026 •

Copy link
Copy Markdown
Contributor

Code Review Summary

Status: 1 Warning, 3 Suggestions | Recommendation: Address before merge

Overview

Severity Count
CRITICAL 0
WARNING 1
SUGGESTION 3
Issue Details (click to expand)

WARNING

File Line Issue
I18nLocaleMigrationWiringTest.java 65 Missing test coverage for erroronmissingdir="false" — the key behavioral change in the migration XML filesets is not verified by any assertion

SUGGESTION

File Line Issue
I18nLocaleMigrationWiringTest.java 75 Tautological inner assertion — LOCAL_ANT_DEPS_PATH is already asserted unconditionally on line 70, so the if guard can never produce a failing inner assertion
I18nLocaleMigrationWiringTest.java 106 Redundant `
I18nLocaleMigrationWiringTest.java 109 Redundant `
Files Reviewed (3 files)
  • docs/ai-generated/code-reviews/issue-2011-ant-deps-migration-erlang.md — no issues
  • modules/perc-distribution-tree/src/main/resources/distribution/rxconfig/Installer/migration_i18n_locales.xml — no issues
  • modules/perc-distribution-tree/src/test/java/com/percussion/distribution/install/I18nLocaleMigrationWiringTest.java — 1 warning, 3 suggestions

Fix link: https://app.kilo.ai/cloud-agent-fork/review/68bd1c79-3d21-4696-8171-18b6e7f5a4fc

Previous Review Summaries (2 snapshots, latest commit 1d57b1a)

Current summary above is authoritative. Previous snapshots are kept for context only.

Previous review (commit 1d57b1a)

Status: 1 Warning, 3 Suggestions | Recommendation: Address before merge

Overview

Severity Count
CRITICAL 0
WARNING 1
SUGGESTION 3
Issue Details (click to expand)

WARNING

File Line Issue
I18nLocaleMigrationWiringTest.java 65 Missing test coverage for erroronmissingdir="false" — the key behavioral change in the migration XML filesets is not verified by any assertion

SUGGESTION

File Line Issue
I18nLocaleMigrationWiringTest.java 75 Tautological inner assertion — LOCAL_ANT_DEPS_PATH is already asserted unconditionally on line 70, so the if guard can never produce a failing inner assertion
I18nLocaleMigrationWiringTest.java 106 Redundant `
I18nLocaleMigrationWiringTest.java 109 Redundant `
Files Reviewed (3 files)
  • docs/ai-generated/code-reviews/issue-2011-ant-deps-migration-erlang.md — no issues
  • modules/perc-distribution-tree/src/main/resources/distribution/rxconfig/Installer/migration_i18n_locales.xml — no issues
  • modules/perc-distribution-tree/src/test/java/com/percussion/distribution/install/I18nLocaleMigrationWiringTest.java — 1 warning, 3 suggestions

Fix link: https://app.kilo.ai/cloud-agent-fork/review/68bd1c79-3d21-4696-8171-18b6e7f5a4fc

Previous review (commit a4013bc)

Status: 1 Warning, 3 Suggestions | Recommendation: Address before merge

Overview

Severity Count
CRITICAL 0
WARNING 1
SUGGESTION 3
Issue Details (click to expand)

WARNING

File Line Issue
I18nLocaleMigrationWiringTest.java 65 Missing test coverage for erroronmissingdir="false" — the key behavioral change in the migration XML filesets is not verified by any assertion

SUGGESTION

File Line Issue
I18nLocaleMigrationWiringTest.java 75 Tautological inner assertion — LOCAL_ANT_DEPS_PATH is already asserted unconditionally on line 70, so the if guard can never produce a failing inner assertion
I18nLocaleMigrationWiringTest.java 106 Redundant `
I18nLocaleMigrationWiringTest.java 109 Redundant `
Files Reviewed (3 files)
  • docs/ai-generated/code-reviews/issue-2011-ant-deps-migration-erlang.md — no issues
  • modules/perc-distribution-tree/src/main/resources/distribution/rxconfig/Installer/migration_i18n_locales.xml — no issues
  • modules/perc-distribution-tree/src/test/java/com/percussion/distribution/install/I18nLocaleMigrationWiringTest.java — 1 warning, 3 suggestions

Fix link: https://app.kilo.ai/cloud-agent-fork/review/68bd1c79-3d21-4696-8171-18b6e7f5a4fc


Reviewed by step-3.7-flash · Input: 62.5K · Output: 11.4K · Cached: 345.6K

Review guidance: REVIEW.md from base branch main

natechadwick-intsof added a commit that referenced this pull request Aug 5, 2026
…back

Address PR #2012 review on GH-2011 wiring guards:
- assert classpathref and local path id independently (drop dead if/assert)
- assert every ant.deps fileset has erroronmissingdir=false
- simplify install.chain / upgrade.chain contains checks

> Co-Authored by Grok Build using grok-4.5 with agent main.
Nested <ant inheritRefs> applies parent path refs only after the child
project is configured, so project-level taskdef classpathref=ant.deps
failed with Reference ant.deps not found and aborted Windows installs.

Redefine local path id ant.deps from inherited install.dir/install.src
(mirror install.xml JDBC/perc filesets). Extend I18nLocaleMigrationWiringTest
to assert local path wiring and install/upgrade chain calls.

> Co-Authored by Grok Build using grok-4.5 with agent main.
…back

Address PR #2012 review on GH-2011 wiring guards:
- assert classpathref and local path id independently (drop dead if/assert)
- assert every ant.deps fileset has erroronmissingdir=false
- simplify install.chain / upgrade.chain contains checks

> Co-Authored by Grok Build using grok-4.5 with agent main.
@natechadwick-intsof
natechadwick-intsof force-pushed the fix/issue-2011-ant-deps-migration branch from 1d57b1a to 5dddba5 Compare August 5, 2026 16:24
@natechadwick-intsof

Copy link
Copy Markdown
Collaborator Author

Overnight follow-up: rebased onto main (catch-up)

Branch was behind main. Clean rebase (no conflict markers). Head: 5dddba59c4.

Co-Authored by Grok Build using grok-4.5 with agent overnight-pr-follow-up.

@natechadwick
natechadwick merged commit 62efa3a into main Aug 5, 2026
6 checks passed
@natechadwick
natechadwick deleted the fix/issue-2011-ant-deps-migration branch August 5, 2026 17:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

model:grok-4.5 Grok 4.5 model operator:grok Changes authored by Grok operator:night-issue-prs night-issue-prs workflow

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[8.2] CMS Installer fails during installation with Reference ant.deps not found in migration_i18n_locales.xml

2 participants