Skip to content

Commit 2791b84

Browse files
authored
Merge pull request #35 from Bearsampp/archived
adds ability to have versions in an "/bin/archived" folder
2 parents 65f265f + 4973165 commit 2791b84

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

build/build-bundle.xml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,17 @@
185185
</antcall>
186186
</then>
187187
</elseif>
188+
<elseif>
189+
<available file="${project.basedir}\bin\archived\${bundle.name}${input.bundle}" type="dir"/>
190+
<then>
191+
<echo message="Bundle version found in archived location: ${project.basedir}\bin\archived\${bundle.name}${input.bundle}"/>
192+
<antcall target="release.one">
193+
<param name="bundle.path" value="${project.basedir}\bin\archived\${bundle.name}${input.bundle}"/>
194+
</antcall>
195+
</then>
196+
</elseif>
188197
<else>
189-
<fail message="Invalid bundle's version for ${bundle.name}"/>
198+
<fail message="Invalid bundle's version for ${bundle.name}. Checked both /bin/ and /bin/archived/ locations."/>
190199
</else>
191200
</if>
192201
</target>

0 commit comments

Comments
 (0)