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 / RecreateDeveloperNoteCalendarTaskAction.java
blob7eddc996e475442e1bad088267555e9742ee88e3
1 // -*- Mode: Java; indent-tabs-mode: t; tab-width: 4 -*-
2 // ---------------------------------------------------------------------------
3 // Multi-Phasic Applications: 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 org.gradle.api.Action;
16 import org.gradle.api.Task;
18 /**
19 * The action for {@link RecreateDeveloperNoteCalendarTask}.
21 * @since 2022/07/10
23 public class RecreateDeveloperNoteCalendarTaskAction
24 implements Action<Task>
26 /**
27 * {@inheritDoc}
28 * @since 2022/07/10
30 @Override
31 public void execute(Task __task)
33 try
35 NoteCalendarGenerator.generateAndStore(FossilExe.instance());
37 catch (IOException e)
39 throw new RuntimeException("Could not generate calendar.", e);