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 org
.gradle
.api
.Task
;
13 import org
.gradle
.api
.specs
.Spec
;
16 * Check to see if the ROM is valid.
20 public class CheckRomShouldBuild
23 /** The virtual machine specifier. */
24 protected final VMSpecifier vmType
;
27 * Checks if a ROM should be built.
29 * @param __vmType The virtual machine type.
30 * @throws NullPointerException On null arguments.
33 public CheckRomShouldBuild(VMSpecifier __vmType
)
34 throws NullPointerException
37 throw new NullPointerException("NARG");
39 this.vmType
= __vmType
;
47 public boolean isSatisfiedBy(Task __task
)
48 throws NullPointerException
51 throw new NullPointerException("NARG");
53 return this.vmType
.hasRom();