Cherry pick the banglets and such from wip-l1summercoat, this will be the basis for...
[SquirrelJME.git] / buildSrc / src / main / java / cc / squirreljme / plugin / tasks / __Output__.java
blob09a02694953d56337f5b2f9d108c03f62da2ffa7
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.tasks;
12 import cc.squirreljme.plugin.util.FileLocation;
13 import java.nio.file.Path;
15 /**
16 * The output for a task.
18 * @since 2020/02/28
20 final class __Output__
22 /** The input file. */
23 public final FileLocation input;
25 /** The output path. */
26 public final Path output;
28 /**
29 * Initializes the output path.
31 * @param __input The input path.
32 * @param __output The output path.
33 * @throws NullPointerException On null arguments.
34 * @since 2020/02/28
36 public __Output__(FileLocation __input, Path __output)
37 throws NullPointerException
39 if (__input == null || __output == null)
40 throw new NullPointerException();
42 this.input = __input;
43 this.output = __output;
46 /**
47 * {@inheritDoc}
48 * @since 2020/02/28
50 @Override
51 public final String toString()
53 return String.format("{input=%s, output=%s}",
54 this.input, this.output);