DialogBox Parameters (Ability to provide seperator)

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
tocmd
Junior Member
Junior Member
Posts: 3
Joined: 2007-11-13, 14:09 UTC

DialogBox Parameters (Ability to provide seperator)

Post 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
User avatar
roentgen
Power Member
Power Member
Posts: 757
Joined: 2005-12-03, 19:58 UTC

Post 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.
TC for Linux please!
User avatar
m^2
Power Member
Power Member
Posts: 1413
Joined: 2006-07-12, 10:02 UTC
Location: Poland
Contact:

Post by *m^2 »

You can make this work with TotalEditor.
Post Reply