External Tools

Having trouble installing Oxygen? Got a bug to report? Post it all here.
java_the_hutt
Posts: 4
Joined: Sat Dec 04, 2010 1:51 am

External Tools

Post by java_the_hutt »

I have a script that runs from a DOS prompt without issues. For the sake of convenience, my client wants to execute this script, which incidentally runs an external DITA build process, from Oxygen Author. I have set up a toolbar shortcut via Tools>External Tools>Preferences. When I execute the script from within Author on my test XP OS, it runs without issues. When I port the external build to my client's Vista OS, it runs from the DOS prompt; however, it fails when run from the Author application with the following error:

CALL ant -f my-build.xml -Dinput=input/path ….
The system cannot find the path specified.

I have removed all JDKs and JREs from both my test box and my client's box, other than the JRE that ant requires to run the DITA build. I still get the same result: I can run the script from the instance of Author on XP, but I get an error when it run on Vista within Author. In both cases, Author version 13.1 is used.

Do you have any ideas as to why I am seeing this error?

Thank you.
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: External Tools

Post by sorin_ristache »

Hello,
java_the_hutt wrote:When I port the external build to my client's Vista OS, it runs from the DOS prompt; however, it fails when run from the Author application with the following error:

CALL ant -f my-build.xml -Dinput=input/path ….
The system cannot find the path specified.
Please try to run the command in the same folder in Oxygen as from the DOS prompt. For example if you run the command from the DOS prompt in the folder of the external DITA-OT you should set this folder also in the Working directory text box of the dialog box where you configure the external tool.

If that does not work please look at the differences between the values of the PATH variable from the DOS prompt and from the external tool shortcut in Oxygen using the command:

Code: Select all

echo %PATH%

Regards,
Sorin
Post Reply