Customizing file opening
The Open File launcher has several options which can be used to customize the process of opening files remotely. You may pass these on the command line to the launcher, for example:
C:\jdk1.2.2\jre\bin\javaw -jar "C:\Program Files\forte4j\modules\utilities.jar" -port 2121 "C:\My Development\com\mycom\MyClass.java"Note that you may also pass multiple files at once to the launcher. The available options are:
-host
hostname-or-IP- select an alternate machine to open files on. The specified machine should be the one running the IDE. You may want to also turn on
-nocanon
(below). The Open File server must be configured to accept requests from the machine running the command (below).-port
port-number- Select an alternate port to send the Open File requests to (via UDP). By default, port 7318 is used. The Open File server must be configured to listen on that port (below).
-canon
(default) or-nocanon
- when using-canon
, any relative file names passed to the launcher are first converted to an absolute name. If using-host
to open files remotely, you may want to use-nocanon
and always specify the correct absolute file name for the machine running the IDE.-wait
and-nowait
(default) - by default, the launcher sends a message to the IDE asking it to open a file, and then immediately exits as soon as the IDE has opened it. (The command will return a success code (zero on Unix) normally, or an error code (nonzero on Unix) if there was a problem opening the file.)- Some applications demand that an editor be used to make a specific set of changes to a file and then finish with it. If this is the case, specify
-wait
to the launcher. For example, many version control systems on Unix provide the option to edit a change log message with an external editor, or to clean up the results of a merge before continuing with a check-in. If you use such a system, and set the Open File launcher with-wait
as your external editor, then the file will open in the IDE as usual, but the launcher will wait to exit. The launcher will not exit until you have made some changes to the file and saved them. Currently it is not sufficient to just close the Editor window - you must actually save changes. If you decide you do not want to make any changes, simply type any character, delete it, and then ask to save (to let the launcher know you are finished with the file).-help
- display a brief usage message.-line
- open the file at the specified line number. Line numbers start at one.
Contents | Prev | Next | Index |