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 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
;
14 import org
.gradle
.process
.JavaExecSpec
;
17 * This forwards any sets to the execution spec to be forwarded to
18 * {@link JavaExecSpec}.
22 public class GradleJavaExecSpecFiller
23 implements JavaExecSpecFiller
25 /** The specification to fill. */
26 protected final JavaExecSpec spec
;
29 * Initializes the filler.
31 * @param __spec The specification to fill.
32 * @throws NullPointerException On null arguments.
35 public GradleJavaExecSpecFiller(JavaExecSpec __spec
)
36 throws NullPointerException
39 throw new NullPointerException("NARG");
49 public void classpath(Collection
<Object
> __classPath
)
51 this.spec
.classpath(__classPath
);
59 public Iterable
<String
> getCommandLine()
61 return this.spec
.getCommandLine();
69 public void setMain(String __mainClass
)
71 this.spec
.setMain(__mainClass
);
79 public void setArgs(Collection
<String
> __args
)
81 this.spec
.setArgs(__args
);
89 public void setJvmArgs(Collection
<String
> __args
)
91 this.spec
.setJvmArgs(__args
);
99 public void systemProperties(Map
<String
, String
> __sysProps
)
101 this.spec
.systemProperties(__sysProps
);