package Makeshift.example.top; // Changes to this file immediately affect the next build. Treat it as a build script. /** The software builder proper to this example project. */ public final class Builder extends Makeshift.BuilderDefault { public Builder() { super( Target.class, "Makeshift.example.top" ); } // ━━━ B u i l d e r ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ public @Override void build( final String targ ) throws Makeshift.Project.UserError { final String target = Makeshift.Builder.matchingTargetName( targ, Target.class ); switch( target ) { case "custom" -> buildTo_custom(); default -> super.buildTo( target ); }} //// P r i v a t e //////////////////////////////////////////////////////////////////////////////////// /** Pretends to build target `custom`. */ private void buildTo_custom() { Makeshift.Project.printProgressLeader( projectPackage(), "topB" ); System.out.println( 1 ); }} // Copyright © 2020 Michael Allan. Licence MIT.