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: problems getting ant output when running installer
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
‎Feb 15, 2008
01:52 PM
problems getting ant output when running installer
Hi,
I have a couple problems with our InstallAnywhere installer.
Our install paradigm works like this:
* Installer collects a lot of info from the user and puts it in a property file
* Installer runs ant (via 'ant.bat' or 'ant.sh' depending on the OS). Ant actually does the 'heavy lifting'
Here's one of the problems:
* Ant fails
* User does not know why.
To "workaround" this problem, I tried capturing the output of ant. I've tried the following, unsuccessfully:
* in the "Execute Command" action, I've specified values for 'store processes stdout in:' by specifying a file name'
* tried appending '1>deploy.log 2>deploy.err' to the 'command line'.
To summarize the question:
How do I capture the script output?
I
I have a couple problems with our InstallAnywhere installer.
Our install paradigm works like this:
* Installer collects a lot of info from the user and puts it in a property file
* Installer runs ant (via 'ant.bat' or 'ant.sh' depending on the OS). Ant actually does the 'heavy lifting'
Here's one of the problems:
* Ant fails
* User does not know why.
To "workaround" this problem, I tried capturing the output of ant. I've tried the following, unsuccessfully:
* in the "Execute Command" action, I've specified values for 'store processes stdout in:' by specifying a file name'
* tried appending '1>deploy.log 2>deploy.err' to the 'command line'.
To summarize the question:
How do I capture the script output?
I
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 16, 2008
04:58 AM
I'm sorry that it might not be the answer you would expect, I mean it's not even an answer, it's more like a question: is there any reason for which you have to use ANT instead of using the IA built-in capabilities of installing files (and maybe doing any other operations). It has even the ability of running ANT scripts for you.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 16, 2008
11:29 PM
>is there any reason for which you have to use ANT instead of using the IA >built-in capabilities of installing files (and maybe doing any other operations).
We have a pretty complex build system. We can maintain it easier in ant for several reasons. Our 'production' build is a subset of our 'development build. It's easier to enforce the relationship/keep consistency if they both use the same tool: ant.
>It has even the ability of running ANT scripts for you.
Which action will run an ant script?
thanks in advance.
We have a pretty complex build system. We can maintain it easier in ant for several reasons. Our 'production' build is a subset of our 'development build. It's easier to enforce the relationship/keep consistency if they both use the same tool: ant.
>It has even the ability of running ANT scripts for you.
Which action will run an ant script?
thanks in advance.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 17, 2008
04:37 AM
When you're in the Install task, click on Add Action then in the General tab you have the Execute ANT Script action.