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 cc
.squirreljme
.plugin
.util
.NoteCalendarGenerator
;
14 import java
.io
.IOException
;
15 import javax
.inject
.Inject
;
16 import org
.gradle
.api
.DefaultTask
;
17 import org
.gradle
.api
.Task
;
20 * Creates the developer note Calendar.
24 public class RecreateDeveloperNoteCalendarTask
28 * Initializes the task.
30 * @param __exeTask The executable task.
34 public RecreateDeveloperNoteCalendarTask(FossilExeTask __exeTask
)
36 // Set details of this task
37 this.setGroup("squirreljmeGeneral");
38 this.setDescription("Edits the developer note for the current day.");
40 // The executable task must run first
41 this.dependsOn(__exeTask
);
44 this.onlyIf(__task
-> FossilExe
.isAvailable(true));
47 this.doLast(new RecreateDeveloperNoteCalendarTaskAction());