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
.multivm
;
12 import cc
.squirreljme
.plugin
.multivm
.ident
.SourceTargetClassifier
;
13 import org
.gradle
.api
.Action
;
14 import org
.gradle
.api
.Task
;
17 * This performs the action of dumping a compiled library glob.
21 public class VMDumpLibraryTaskAction
22 implements Action
<Task
>
24 /** The classifier used. */
25 public final SourceTargetClassifier classifier
;
28 * Initializes the task action.
30 * @param __classifier The classifier used.
31 * @throws NullPointerException On null arguments.
34 public VMDumpLibraryTaskAction(SourceTargetClassifier __classifier
)
35 throws NullPointerException
37 if (__classifier
== null)
38 throw new NullPointerException("NARG");
40 this.classifier
= __classifier
;
48 public void execute(Task __task
)
50 VMLibraryTaskAction
.execute((VMBaseTask
)__task
, this.classifier
,
51 this.classifier
.getVmType()::dumpLibrary
);