

Before build-project executes, it will first run the init target: This target does contain tasks, and some dependent targets. The next target specified is build-project does have code:

However, it depends upon two other targets, so these will be called first: You didn't specify any targets to execute, so Ant should be taking the default build target. This way, you'll capture all of the output from the beginning in the terminal buffer. The -d will print out a lot of output, so you might want to capture it, or set your terminal buffer to something like 99999, and run cls first to clear out the buffer. Since you're executing the build.xml in the directory where it exists, you don't end up with the possibility that your Ant build can't locate a particular directory.It will eliminate the possibility that the problem is with Eclipe's version of Ant.This way, you don't have to put in the whole directory name.Īssuming you did the above, try this: C:\> cd \Silk4J\Automation\iControlSilk4JĬ:\Silk4J\Automation\iControlSilk4J> ant -d build In your System Control Panel, set the Environment Variable ANT_HOME to this directory, then pre-pend to the System PATHvariable, %ANT_HOME%\bin. This way, it doesn't have any spaces in the directory names. I recommend to put it under the C:\ant directory. This way, you have a copy of Ant outside of Eclipse. What is the problem? Here is my build file: Īs the first entry and export the buildfile again. Throw new CliException("Failed web service request for appid " + currentApp.getApplicationId().I have an Ant build file, and I try to execute it in the command line with the following command: $ C:\Program Files (x86)\.>ant -f C:\Silk4J\Automation\iControlSilk4J\build.xmlīut nothing happens, and the result is: BUILD SUCCESSFUL JSONObject response = getResource(uriSpec, currentApp) UriSpec = uriSpec.queryParam("waitTime", waitTime) UriSpec = uriSpec.queryParam("propertyName", propertyName) UriSpec = uriSpec.path(StramWebServices.PATH_PHYSICAL_PLAN_OPERATORS).path(args).path("properties")

StramAgent.StramUriSpec uriSpec = new StramAgent.StramUriSpec() String propertyName = line.getOptionValue(GET_PHYSICAL_PROPERTY_()) String waitTime = line.getOptionValue(GET_PHYSICAL_PROPERTY_()) System.arraycopy(args, 1, newArgs, 0, args.length - 1) ĬommandLine line = parser.parse(GET_PHYSICAL_PROPERTY_OPTIONS.options, newArgs) Throw new CliException("Operator ID must be a number") Throw new CliException("No application selected")

String s = new void execute(String args, ConsoleReader reader) throws Exception SendMessageCommand.execute(commandLine, options, null) Void testCommandLineShortOpts() throws Exception ĬommandLine = ServerUtil.parseCmdLine("mqadmin " + mandName(), subargs, sendMessageCommand.buildCommandlineOptions(options), new PosixParser())
