@DefaultCommand public void exit() { shutdown.fire(new Shutdown(Shutdown.Status.NORMAL)); } }
@DefaultCommand public void run(PipeOut out) { forge.about(out); } }
@DefaultCommand public void reset() { reinitializeEvent.fire(new ReinitializeEnvironment()); } }
@DefaultCommand(help = "Add many custom field to an existing @Entity class") public void newExpressionField( @Option(required = true, description = "The field descriptor") final String... fields) { System.out.println(Arrays.asList(fields)); }
@DefaultCommand public void waitCommand() { shell.prompt("Press <ENTER> to continue..."); } }
@DefaultCommand public void run() { shell.clear(); } }
@DefaultCommand(help = "Prints all Java system property information.") public void info(final PipeOut out) { for (Entry<Object, Object> entry : System.getProperties().entrySet()) { if (entry.getKey().toString().startsWith("java")) { out.print(ShellColor.BOLD, entry.getKey().toString() + ": "); out.println(entry.getValue().toString()); } } }
@DefaultCommand public void run(@PipeIn InputStream pipeIn, final Resource<?> file, final PipeOut pipeOut) throws IOException { morePlugin.run(pipeIn, file, true, pipeOut); } }
@DefaultCommand public void show(final PipeOut out) { String version = environment.getRuntimeVersion(); out.println("JBoss Forge, version [ " + version + " ] - JBoss, by Red Hat, Inc. [ http://jboss.org/forge ]"); } }
@DefaultCommand public void run(final PipeOut out, final String... parms) throws IOException { NativeSystemCall.execFromPath("git", parms, out, shell.getCurrentDirectory()); }
@DefaultCommand public void run( @Option(description = "The starting resource to be listed", defaultValue = ".") final Resource<?> r, PipeOut out) throws IOException { listResources(out, r); }
@DefaultCommand public void run(final PipeOut out, final String... parms) { project.getFacet(MavenCoreFacet.class).executeMaven(out, parms); } }
@DefaultCommand public void status(final PipeOut out) { if (project.hasFacet(ServletFacet.class)) { ShellMessages.success(out, "Servlet is installed."); } else { ShellMessages.warn(out, "Servlet is NOT installed."); } }
@DefaultCommand public void run() { shell.println(shell.getCurrentResource().getFullyQualifiedName()); } }
@DefaultCommand public void run() { shell.println(shell.getCurrentDirectory().getFullyQualifiedName()); } }
@DefaultCommand public void rm( @Option(name = "recursive", shortName = "r", help = "recursively delete resources", flagOnly = true) final boolean recursive, @Option(name = "force", shortName = "f", help = "do not prompt to confirm operations", flagOnly = true) final boolean force, @Option(description = "path", required = true) final Resource<?>[] paths) { for (Resource<?> resource : paths) { deleteResource(recursive, force, resource); } }
@DefaultCommand public void setEnabled(@Option(name = "enabled", required = true) Boolean enabled) { configuration.setProperty(ANALYTICS_ENABLED, enabled); getAnalyticsTracker().setEnabled(enabled); }
@DefaultCommand public void rename( @Option(description = "source", required = true) final Resource<?> source, @Option(description = "target", required = true) final String target, @Option(name = "force", shortName = "f", description = "force operation", flagOnly = true) final boolean force, final PipeOut out) { Resource<?> directory = this.directory; rename(source, directory, target, force, out); }
@DefaultCommand public void run( @Option(help = "The text to be echoed") final String[] tokens, final PipeOut out) { if (tokens == null || tokens.length == 0) { return; } out.println(echo(shell, promptExpressionParser(shell, tokensToString(tokens)))); }
@DefaultCommand public void list(@Option(required = false) String filter) { ServletFacet web = project.getFacet(ServletFacet.class); List<Resource<?>> resources = web.getResources(); for (Resource<?> file : resources) { shell.println(file.getFullyQualifiedName()); } } }