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 GNU General Public License v3+, or later.
7 // See license.mkd for licensing and copyright information.
8 // ---------------------------------------------------------------------------
10 package cc
.squirreljme
.plugin
.general
;
12 import cc
.squirreljme
.plugin
.util
.FossilExe
;
13 import javax
.inject
.Inject
;
14 import org
.gradle
.api
.DefaultTask
;
17 * Prints the current fossil user.
21 public class FossilUserTask
25 * Initializes the task.
27 * @param __exeTask The executable task.
31 public FossilUserTask(FossilExeTask __exeTask
)
33 // Set details of this task
34 this.setGroup("squirreljmeGeneral");
35 this.setDescription("Prints the current Fossil user.");
37 // The executable task must run first
38 this.dependsOn(__exeTask
);
41 this.onlyIf(__task
-> FossilExe
.isAvailable(false));
44 this.doLast(new FossilUserTaskAction());