Cherry pick the banglets and such from wip-l1summercoat, this will be the basis for...
[SquirrelJME.git] / buildSrc / src / main / java / cc / squirreljme / plugin / general / RecreateDeveloperNoteCalendarTask.java
blob01cd98d3f5bae3351a59ba29d413b0beae5c44ca
1 // -*- Mode: Java; indent-tabs-mode: t; tab-width: 4 -*-
2 // ---------------------------------------------------------------------------
3 // SquirrelJME
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;
19 /**
20 * Creates the developer note Calendar.
22 * @since 2020/06/27
24 public class RecreateDeveloperNoteCalendarTask
25 extends DefaultTask
27 /**
28 * Initializes the task.
30 * @param __exeTask The executable task.
31 * @since 2020/06/26
33 @Inject
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);
43 // Fossil must exist
44 this.onlyIf(__task -> FossilExe.isAvailable(true));
46 // Action to perform
47 this.doLast(new RecreateDeveloperNoteCalendarTaskAction());