DialogBox Parameters (Ability to provide seperator)
Posted: 2007-11-13, 15:11 UTC
Hello,
I think It would be very useful to be able to provide what seperator you want for the parameters that will be appended to the command line.
This will help to be able to run any prog that needs the params seperated by something else than space.
By providing this functionality you will be able to run a java class from the command line by just selecting the appropriate jars and putting the curson over the mainClass.
right now the following line can run the class under the cursor and have as a classpath the source dir.
java -cp "%P." "%O"
output: java -cp "c:\myprog\src\pckg1\." "MyMain"
note: all the subfolders are automatically added to the classpath by java.
but when it comes to jars you have to provide each one of them seperately.
It would be wonderfull to be able to do something like the following.
java -cp %P%S; "%O"
%P%S; would mean: Take all the selected files and put them to the command line seperated by ;
output:
java -cp "c:\jars\jdom.jar";"c:\jars\ant.jar";"c:\jars\any.jar" "MyMain"
Regards
I think It would be very useful to be able to provide what seperator you want for the parameters that will be appended to the command line.
This will help to be able to run any prog that needs the params seperated by something else than space.
By providing this functionality you will be able to run a java class from the command line by just selecting the appropriate jars and putting the curson over the mainClass.
right now the following line can run the class under the cursor and have as a classpath the source dir.
java -cp "%P." "%O"
output: java -cp "c:\myprog\src\pckg1\." "MyMain"
note: all the subfolders are automatically added to the classpath by java.
but when it comes to jars you have to provide each one of them seperately.
It would be wonderfull to be able to do something like the following.
java -cp %P%S; "%O"
%P%S; would mean: Take all the selected files and put them to the command line seperated by ;
output:
java -cp "c:\jars\jdom.jar";"c:\jars\ant.jar";"c:\jars\any.jar" "MyMain"
Regards