Skip to content

Commit

Permalink
as default value is 0 it makes more sense to use the other ordering s…
Browse files Browse the repository at this point in the history
…olution

Signed-off-by: olivier lamy <olamy@apache.org>
  • Loading branch information
olamy committed Sep 6, 2019
1 parent a9bcc8d commit c790d73
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/it/project-setup/src/it/project3/invoker.properties
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
# specific language governing permissions and limitations
# under the License.

invoker.ordinal=1
invoker.ordinal=100
Original file line number Diff line number Diff line change
Expand Up @@ -568,8 +568,8 @@ public abstract class AbstractInvokerMojo
* # Since plugin version 3.0.1
* invoker.settingsFile = ../
*
* # An integer value to control run order of projects. sorted in the ascending order of the ordinal.
* In other words, the BuildJobs with the slowest numbers will be executed first
* # An integer value to control run order of projects. sorted in the descending order of the ordinal.
* In other words, the BuildJobs with the highest numbers will be executed first
* # Since plugin version 3.2.1
* invoker.ordinal = 3
* invoker.ordinal = 1
Expand Down Expand Up @@ -2408,7 +2408,7 @@ private static class OrdinalComparator implements Comparator
@Override
public int compare( Object o1, Object o2 )
{
return Integer.compare( ( ( BuildJob ) o1 ).getOrdinal(), ( ( BuildJob ) o2 ).getOrdinal() );
return Integer.compare( ( ( BuildJob ) o2 ).getOrdinal(), ( ( BuildJob ) o1 ).getOrdinal() );
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/mdo/invocation.mdo
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ under the License.
<version>1.0.0</version>
<required>false</required>
<type>int</type>
<description>BuildJobs will be sorted in the ascending order of the ordinal. In other words, the BuildJobs with the slowest numbers will be executed first</description>
<description>BuildJobs will be sorted in the descending order of the ordinal. In other words, the BuildJobs with the highest numbers will be executed first</description>
</field>
</fields>
<codeSegments>
Expand Down

0 comments on commit c790d73

Please sign in to comment.