1 // -*- Mode: Java; indent-tabs-mode: t; tab-width: 4 -*-
2 // ---------------------------------------------------------------------------
4 // Copyright (C) Stephanie Gawroriski <xer@multiphasicapps.net>
5 // ---------------------------------------------------------------------------
6 // SquirrelJME is under the Mozilla Public License Version 2.0.
7 // See license.mkd for licensing and copyright information.
8 // ---------------------------------------------------------------------------
10 package cc
.squirreljme
.plugin
.multivm
;
12 import javax
.inject
.Inject
;
13 import org
.gradle
.api
.Task
;
14 import org
.gradle
.api
.tasks
.testing
.Test
;
17 * This represents a test task which is defunct, it relies on another task
22 public class DefunctTestTask
26 * Initializes the test.
31 public DefunctTestTask()
33 // Set details of this task
34 this.setGroup("defunct");
35 this.setDescription("Defunct test task, relies on another test task.");
38 this.onlyIf(new AlwaysFalse());
40 // Depend on testHosted since all of the tests are there and those
42 this.dependsOn(this.getProject()
43 .getTasks().findByName("testHosted"));
45 // Make sure the task fails as quickly as possibles
46 this.doFirst(new DefunctTestTaskAction());