Cherry pick the banglets and such from wip-l1summercoat, this will be the basis for...
[SquirrelJME.git] / buildSrc / src / main / java / cc / squirreljme / plugin / multivm / VMDumpLibraryTaskAction.java
blobcfac76a2c883518f11c5a74f578c4157a154e74a
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.multivm;
12 import cc.squirreljme.plugin.multivm.ident.SourceTargetClassifier;
13 import org.gradle.api.Action;
14 import org.gradle.api.Task;
16 /**
17 * This performs the action of dumping a compiled library glob.
19 * @since 2021/05/16
21 public class VMDumpLibraryTaskAction
22 implements Action<Task>
24 /** The classifier used. */
25 public final SourceTargetClassifier classifier;
27 /**
28 * Initializes the task action.
30 * @param __classifier The classifier used.
31 * @throws NullPointerException On null arguments.
32 * @since 2021/05/16
34 public VMDumpLibraryTaskAction(SourceTargetClassifier __classifier)
35 throws NullPointerException
37 if (__classifier == null)
38 throw new NullPointerException("NARG");
40 this.classifier = __classifier;
43 /**
44 * {@inheritDoc}
45 * @since 2021/05/16
47 @Override
48 public void execute(Task __task)
50 VMLibraryTaskAction.execute((VMBaseTask)__task, this.classifier,
51 this.classifier.getVmType()::dumpLibrary);