External Tools
A command-line tool can be started in the Oxygen XML Developer user interface as if from the command line of the operating system shell. Oxygen XML Developer offers you the option of integrating such a tool by specifying just the command line for starting the executable file and its working directory. To integrate such a tool, open the Preferences dialog box and go to External Tools (or select Configure from the menu).
The External Tools preferences page presents a list of the external tools that have been configured. Once a tool has been configured, you can open it by selecting it from the menu or from the External Tools drop-down menu on the toolbar (the Tools toolbar needs to be selected in the Configure Toolbars dialog box). You can also assign a keyboard shortcut to be used to launch the tool.
If the external tool is applied on one of the files opened in Oxygen XML Developer, the Save all files before calling external tools option (in the Save preference page) should be selected so that all edited files are automatically saved when an external tool is applied.
Example: Integrating the Ant Tool
- Download and install Apache Ant on your computer.
- Test your Ant installation from the command-line interface in the directory where
you want to use Ant from. For example, run the
clean
target of your build.xml file C:\projects\XMLproject\build.xml:ant clean
- Open the Preferences dialog box and go to External Tools (or select Configure from the menu).
- Click the New button to create a new external tool entry and
enter the following information:
- Name - For example, Ant tool.
- Working directory - For example, C:\projects\XMLproject.
- Command line - For example, "C:\projects\XMLproject\ant.bat" clean.
- Click OK to add the new tool to the list of external tools.
- Run the tool from
Started: "C:\projects\XMLproject\ant.bat" clean Buildfile: build.xml clean: [echo] Delete output files. [delete] Deleting 5 files from C:\projects\XMLproject BUILD SUCCESSFUL Total time: 1 second
. You can see the output in the system
console: