Hi guys, The java class that I wan't to run (with java task) requires a commandline parameter : a single String character. I know that in the build.xml I can specify attributes...but It's not possible to let the user choose... How do I let the user insert a command line parameter??? Thanks a lot!!!
You didn't actually say that you want the user to run Ant and have Ant run a java app, but your sample makes it look that way. You can define environment variables going to Ant in the same way that you can for any Java application, using the -Dname=value command-line construct. To make it prettier (and safer), wrap the Ant command line with a shell script/batch command file.
To get the command value to the actual java app, just define a param stanza on the Ant <java> command where the value would be substituted in the usual way:
Please check your ant manual on how to pass in parameters. I'm working from my so-called memory. But I hope you get the idea.
Customer surveys are for companies who didn't pay proper attention to begin with.