Page 1 of 1

DialogBox Parameters (Ability to provide seperator)

Posted: 2007-11-13, 15:11 UTC
by tocmd
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

Posted: 2007-11-13, 16:15 UTC
by roentgen
On the same note there should be a standard for using command line parameters (which nobody will follow).

Anyway, looking at that command line it's clear to me that the "java guys" didn't give it much thought when they implemented such awkward syntax.

Posted: 2007-11-13, 16:57 UTC
by m^2
You can make this work with TotalEditor.