This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallAnywhere
- :
- InstallAnywhere Forum
- :
- Re: Help with "Execute ANT Script" Action
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 19, 2010
11:28 AM
Help with "Execute ANT Script" Action
Hi,
I have built an installer using IA EE. The installer uses the "Execute ANT Script" action to create/upgrade a schema in an Oracle DB. I have a situation where the script fails to complete. I would like IA to provide more detail about the error than it does now. At this point I have to drop the schema and rerun the ANT script by hand from the command line to get the full error message provided by ANT. Is there a way to get the full error message from ANT into the IA install log?
My second question relates to a non-fatal error message in the IA build log regarding the "Execute ANT Script" action. What does the follwoing message mean and is it possible to correct or suppress the error?
Thanks
I have built an installer using IA EE. The installer uses the "Execute ANT Script" action to create/upgrade a schema in an Oracle DB. I have a situation where the script fails to complete. I would like IA to provide more detail about the error than it does now. At this point I have to drop the schema and rerun the ANT script by hand from the command line to get the full error message provided by ANT. Is there a way to get the full error message from ANT into the IA install log?
My second question relates to a non-fatal error message in the IA build log regarding the "Execute ANT Script" action. What does the follwoing message mean and is it possible to correct or suppress the error?
Thanks
(4) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 19, 2010
12:48 PM
Well, the error basically means that IA is not capable of catching and displaying the exception thrown by ANT. It's a pity, by the way, that the Execute ANT action hasn't been enhanced in order to store it's output in an IA variable, for instance. What you could do as a workaround is to install an IA that will use the installed JRE (if any) and instead of using the Execute ANT, you would use the Execute Command action, where you would execute the ANT command with the .xml file as a parameter (and maybe the -v or -debug parameters). This way you've got the output stored in an IA variable (which is allowed for instance with this action).
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 23, 2010
11:21 AM
Thanks for the reply.
I was able to resolve the issue involving ANT logging during the Install phase. I enabled logging for ANT by adding the following line to the Build.xml file:
My attempts to define where the log file was written were unsuccessful so I had to add an action to move the file from $prop.user.dir$ to $USER_INSTALL_DIR$.
The second issue regarding the non-fatal errors during the IA build process (this is not related to the first issue at all) is still puzzling but not a show stopper. However I would like to eliminate all warnings and non-fatal build errors from the IA build log.
Thanks again.
I was able to resolve the issue involving ANT logging during the Install phase. I enabled logging for ANT by adding the following line to the Build.xml file:
My attempts to define where the log file was written were unsuccessful so I had to add an action to move the file from $prop.user.dir$ to $USER_INSTALL_DIR$.
The second issue regarding the non-fatal errors during the IA build process (this is not related to the first issue at all) is still puzzling but not a show stopper. However I would like to eliminate all warnings and non-fatal build errors from the IA build log.
Thanks again.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 19, 2012
07:02 PM
I take it this is still not possible. I am executing an ANT script that essentially just runs GetMac.exe (windows) which responds with a mac address. I strip out the stuff I don't need with the propertyregex task and echo out just the mac address.
Wish there was a way to pick this up in IA and display it to the user.
@Vlad: I'd like to try your suggestion of using Execute command, but I'm not sure how to do it.
Our product is not Java based, so the machine on which it is to be installed may not even have the JRE. My installer needs to be completely self sufficient.
Thanks in advance for your help
Wish there was a way to pick this up in IA and display it to the user.
@Vlad: I'd like to try your suggestion of using Execute command, but I'm not sure how to do it.
Our product is not Java based, so the machine on which it is to be installed may not even have the JRE. My installer needs to be completely self sufficient.
Thanks in advance for your help
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 28, 2012
02:23 AM
If you use ANT just to run an .exe command, you don't need this extra layer: IA has a couple of built-in action: Execute Command or Execute Batch/Script where you can use platform-related code.
![](/skins/images/D60DF682EA37BF37032955CE10F3F0BB/responsive_peak/images/icon_anonymous_message.png)