Set calling convention for sjme_scritchui_core_grabExternalThreadId.
[SquirrelJME.git] / buildSrc / src / main / java / cc / squirreljme / plugin / util / GradleJavaExecSpecFiller.java
blobe8afad831d7d53c8fbd2d4ea52068dd5ae364020
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 Mozilla Public License Version 2.0.
7 // See license.mkd for licensing and copyright information.
8 // ---------------------------------------------------------------------------
10 package cc.squirreljme.plugin.util;
12 import java.util.Collection;
13 import java.util.Map;
14 import org.gradle.process.JavaExecSpec;
16 /**
17 * This forwards any sets to the execution spec to be forwarded to
18 * {@link JavaExecSpec}.
20 * @since 2020/12/26
22 public class GradleJavaExecSpecFiller
23 implements JavaExecSpecFiller
25 /** The specification to fill. */
26 protected final JavaExecSpec spec;
28 /**
29 * Initializes the filler.
31 * @param __spec The specification to fill.
32 * @throws NullPointerException On null arguments.
33 * @since 2020/12/26
35 public GradleJavaExecSpecFiller(JavaExecSpec __spec)
36 throws NullPointerException
38 if (__spec == null)
39 throw new NullPointerException("NARG");
41 this.spec = __spec;
44 /**
45 * {@inheritDoc}
46 * @since 2020/12/26
48 @Override
49 public void classpath(Collection<Object> __classPath)
51 this.spec.classpath(__classPath);
54 /**
55 * {@inheritDoc}
56 * @since 2020/12/26
58 @Override
59 public Iterable<String> getCommandLine()
61 return this.spec.getCommandLine();
64 /**
65 * {@inheritDoc}
66 * @since 2020/12/26
68 @Override
69 public void setMain(String __mainClass)
71 this.spec.setMain(__mainClass);
74 /**
75 * {@inheritDoc}
76 * @since 2020/12/26
78 @Override
79 public void setArgs(Collection<String> __args)
81 this.spec.setArgs(__args);
84 /**
85 * {@inheritDoc}
86 * @since 2021/06/18
88 @Override
89 public void setJvmArgs(Collection<String> __args)
91 this.spec.setJvmArgs(__args);
94 /**
95 * {@inheritDoc}
96 * @since 2020/12/26
98 @Override
99 public void systemProperties(Map<String, String> __sysProps)
101 this.spec.systemProperties(__sysProps);