You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
adds ability to have versions in an "/bin/archived" folder and still do a release.
PR Type
Enhancement
Description
Add support for archived bundle versions in /bin/archived/ folder
Enhance build system to check archived location during release
Improve error messaging for bundle version lookup
Diagram Walkthrough
flowchart LR
A["Bundle Release Request"] --> B["Check /bin/ folder"]
B --> C{Bundle Found?}
C -->|Yes| D["Release Bundle"]
C -->|No| E["Check /bin/archived/ folder"]
E --> F{Bundle Found?}
F -->|Yes| G["Release Archived Bundle"]
F -->|No| H["Fail with Enhanced Error"]
Loading
File Walkthrough
Relevant files
Enhancement
build-bundle.xml
Enhanced bundle lookup with archived support
build/build-bundle.xml
Add new elseif condition to check /bin/archived/ directory
Include echo message for archived bundle detection
Update error message to mention both checked locations
Backslashes are used in new archived checks and messages; verify this build runs on non-Windows agents or consider using path properties or forward slashes for Ant portability.
<availablefile="${project.basedir}\bin\archived\${bundle.name}${input.bundle}"type="dir"/>
<then>
<echomessage="Bundle version found in archived location: ${project.basedir}\bin\archived\${bundle.name}${input.bundle}"/>
<antcalltarget="release.one">
<paramname="bundle.path"value="${project.basedir}\bin\archived\${bundle.name}${input.bundle}"/>
</antcall>
</then>
The new echo may clutter release logs; confirm desired verbosity or guard with a verbose/debug flag.
<echomessage="Bundle version found in archived location: ${project.basedir}\bin\archived\${bundle.name}${input.bundle}"/>
<antcalltarget="release.one">
The fail message states both locations were checked; ensure this remains accurate if future locations are added, and consider including the exact requested version string.
<failmessage="Invalid bundle's version for ${bundle.name}. Checked both /bin/ and /bin/archived/ locations."/>
</else>
Use forward slashes in paths to ensure Ant resolves them cross-platform. Backslashes can be interpreted as escape characters and break on non-Windows environments.
-<available file="${project.basedir}\bin\archived\${bundle.name}${input.bundle}" type="dir"/>+<available file="${project.basedir}/bin/archived/${bundle.name}${input.bundle}" type="dir"/>
<then>
- <echo message="Bundle version found in archived location: ${project.basedir}\bin\archived\${bundle.name}${input.bundle}"/>+ <echo message="Bundle version found in archived location: ${project.basedir}/bin/archived/${bundle.name}${input.bundle}"/>
<antcall target="release.one">
- <param name="bundle.path" value="${project.basedir}\bin\archived\${bundle.name}${input.bundle}"/>+ <param name="bundle.path" value="${project.basedir}/bin/archived/${bundle.name}${input.bundle}"/>
</antcall>
</then>
Apply / Chat
Suggestion importance[1-10]: 7
__
Why: The suggestion correctly identifies that using forward slashes in Ant build file paths is a best practice for cross-platform compatibility, improving the robustness of the script.
Medium
General
Improve failure message detail
Include the resolved paths in the failure to aid debugging and ensure clarity on what was checked. This avoids ambiguity when variables expand unexpectedly.
-<fail message="Invalid bundle's version for ${bundle.name}. Checked both /bin/ and /bin/archived/ locations."/>+<fail message="Invalid bundle's version for ${bundle.name}. Checked: ${project.basedir}/bin/${bundle.name}${input.bundle} and ${project.basedir}/bin/archived/${bundle.name}${input.bundle}"/>
Apply / Chat
Suggestion importance[1-10]: 6
__
Why: This is a good suggestion that improves debuggability by including the fully resolved paths in the failure message, making it easier to diagnose issues with variable expansion.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
User description
adds ability to have versions in an "/bin/archived" folder and still do a release.
PR Type
Enhancement
Description
Add support for archived bundle versions in
/bin/archived/folderEnhance build system to check archived location during release
Improve error messaging for bundle version lookup
Diagram Walkthrough
flowchart LR A["Bundle Release Request"] --> B["Check /bin/ folder"] B --> C{Bundle Found?} C -->|Yes| D["Release Bundle"] C -->|No| E["Check /bin/archived/ folder"] E --> F{Bundle Found?} F -->|Yes| G["Release Archived Bundle"] F -->|No| H["Fail with Enhanced Error"]File Walkthrough
build-bundle.xml
Enhanced bundle lookup with archived supportbuild/build-bundle.xml
/bin/archived/directory