Remote Access To Tool API Samples
Export Sample
-
Description:
-
Exports a type from VisualAge for Java to the file system.
-
Usage:
-
http://localhost:<port>/servlet/com.ibm.ivj.toolserver.samples.ExportFileServlet?exportdir=<export
directory>&project=<project name>&type=<type name>&exportjava=<true|false>&exportclass=<true|false>
-
Parameters:
-
exportdir: the directory on the file system to export to
-
project: the project to export from
-
type: the fully-qualified (including package name) name of the type to
export
-
exportjava: (true or false) whether the source code should be exported
-
exportclass (true or false) whether the compiled code should be exported
- Note:
- If you set the exportjava parameter to true, but in the workspace there is no source for the type, then there will be an error message saying that the export failed. This is correct, because the .java file was not exported. However, if you also set the exportclass parameter to true, then the export of the .class will have succeeded, despite the error message.
Import Sample
-
Description:
-
Imports java files into VisualAge for Java from the file system.
All .java files in the specified directory are imported.
-
Usage:
-
http://localhost:<port>/servlet/com.ibm.ivj.toolserver.samples.ImportFilesServlet?importdir=<import
directory>&project=<project name>
-
Parameters:
-
importdir: the directory to import from
-
project: the project to import to
Launch Browser Sample
-
Description:
-
Launches a type browser in VisualAge for Java
-
Usage:
-
http://localhost:<port>/servlet/com.ibm.ivj.toolserver.samples.LaunchBrowserServlet?project=<project>&type=<type>
-
Parameters:
-
project: the project that the type is located in
-
type: the type to launch the browser on
Running the samples
-
Modify the fields below, if necessary
-
Press "Send the request". The servlet URL will be constructed automatically
and it will be invoked.
-
The samples can also be run by entering the URL manually in the Location
field in your web browser. To see what the constructed URL looks
like, submit one using the forms, then look in the Location field after
the response is generated.
Export Sample
Import Sample
Launch Browser Sample