Skip to content

Commit

Permalink
eclipse-archived/ceylon-ide-eclipse#1572 : Allow building the IDE aga…
Browse files Browse the repository at this point in the history
…inst the last

release (finished)
  • Loading branch information
davidfestal committed Nov 3, 2015
1 parent fc859f3 commit df76edb
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 4 deletions.
32 changes: 30 additions & 2 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,19 @@ Some super-charged ant tasks:
ant eclipse - Builds all IDE related projects + the Eclipse plugin
ant intellij - Builds all IDE related projects + the IntelliJ plugin

ant help-release - Shows help on the commands for building a release</echo>
ant help-release - Shows help on the commands for building a release

ant eclipse-switch-to-last-release-updates
- switches the Eclipse plugin and the 'ceylon-ide-common' projects
against to the last release maintenance branch
ant eclipse-rebuild-last-release-updates
- Builds (after cleaning) the last release maintenance branch of the
Eclipse plugin and the 'ceylon-ide-common' projects, against
all the other dependencies found in the main release
update site : http://ceylon-lang.org/eclipse/updatesite/
ant eclipse-switch-back-to-master
- switches the Eclipse plugin and the 'ceylon-ide-common' projects
back to the master branch</echo>

</target>

Expand Down Expand Up @@ -1070,7 +1082,23 @@ You can now build the package by executing:
</ant>
</target>

<target name="eclipse-rebuild-against-last-release">
<target name="eclipse-switch-to-last-release-updates" depends="siblings">
<ant antfile="${basedir}/ide-build.xml"
target="eclipse-switch-to-last-release-updates"
inheritall="false"
useNativeBasedir="true">
</ant>
</target>

<target name="eclipse-switch-back-to-master" depends="siblings">
<ant antfile="${basedir}/ide-build.xml"
target="eclipse-switch-back-to-master"
inheritall="false"
useNativeBasedir="true">
</ant>
</target>

<target name="eclipse-rebuild-last-release-updates">
<ant antfile="${basedir}/ide-build.xml"
target="check-branch-for-last-release-updates"
inheritall="false"
Expand Down
23 changes: 21 additions & 2 deletions ide-build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -270,9 +270,28 @@ Used with another target such as 'package'">

<property name="branch-for-last-release-updates" value="1.2.0-fixes"/>

<target name="eclipse-switch-to-last-release-updates" depends="siblings">
<fail unless="projects.base.dir" message="${msg.needlocalorsiblings}" />
<foreach list="ceylon-ide-common,ceylon-ide-eclipse"
target="checkout-internal-item"
param="project.item.name"
inheritall="true" >
<param name="tag-internal" value="${branch-for-last-release-updates}" />
</foreach>
</target>

<target name="eclipse-switch-back-to-master" depends="siblings">
<fail unless="projects.base.dir" message="${msg.needlocalorsiblings}" />
<foreach list="ceylon-ide-common,ceylon-ide-eclipse"
target="checkout-internal-item"
param="project.item.name"
inheritall="true" >
<param name="tag-internal" value="master" />
</foreach>
</target>

<target name="check-branch-for-last-release-updates" depends="siblings">
<fail unless="projects.base.dir" message="${msg.needlocalorsiblings}" />
<mkdir dir="${projects.base.dir}"/>
<foreach list="ceylon-ide-common,ceylon-ide-eclipse"
target="check-branch-for-last-release-updates-item"
param="project.item.name"
Expand All @@ -295,7 +314,7 @@ Used with another target such as 'package'">
<contains string="${gitOutput}" substring="* ${branch-for-last-release-updates}"/>
</not>
<then>
<fail message="The 'ceylon-ide-eclipse' and 'ceylon-ide-common' projects should be on branch '${branch-for-last-release-updates}' to build against the last release"/>
<fail message="The 'ceylon-ide-eclipse' and 'ceylon-ide-common' projects should be on branch '${branch-for-last-release-updates}' to build against the last release\n To switch to the last release maintenance branch run:\n 'ant eclipse-swicth-to-last-release-updates'"/>
</then>
</if>
</then>
Expand Down

0 comments on commit df76edb

Please sign in to comment.