cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
jerome_IA
Level 9

How to use build time variable with ant?

Hi,

I tried setting build time variable properties file using ant. So following (missing) documentation, I tried this:


IALocation="${ia_home_dir}"
IAProjectFile="/home/myproject.iap_xml"
propertiesfile="${installer_output_dir}/iabuild.properties">




But this is not working as the parameter is given before the project name resulting in:
[buildinstaller] 0: -b
[buildinstaller] 1: -btv
[buildinstaller] 2: /home/build/iabuild_time_variables.properties
[buildinstaller] 3: /home/myproject.iap_xml
[buildinstaller] 4: -p
[buildinstaller] 5: /home/build/iabuild.properties

....
[buildinstaller] The project /home/InstallAnywhere_2011_Enterprise/-btv does not exist.
==> here, it should be: [buildinstaller] 0,[buildinstaller] 3,[buildinstaller] 1,[buildinstaller] 2, then 4 & 5 for the correct order!!!!


I also tried setting properties file exactly like explain in documentation (below), this is not working either!


Documentation extract:
------------------------------
Building Multiple Build Configurations
You can build multiple Build Configurations that have been defined in the project by using an external
BuildProperties.xml / buildproperties.properties file and the -p command line argument. For example:

IALocation="InstallAnywhere Home Location"
IAProjectFile="C:\Projects\myproject.iap_xml"
additionalparameter=value
>



------------------------------

As anyone been able to configure build time variable with ant?

--Jerome
Labels (1)
0 Kudos
(2) Replies
jmishra
Level 2 Flexeran
Level 2 Flexeran

Hi,

Kindly try this below format :


IAProjectFile="/home/myproject.iap_xml"
propertiesfile="${installer_output_dir}/iabuild.properties"
buildtimevarpropfile="${installer_output_dir}/iabuild_time_variables.properties"\>


Hope it helps.

Thanks,
Jayashree
0 Kudos
jerome_IA
Level 9

jmishra wrote:
Hi,

Kindly try this below format :


IAProjectFile="/home/myproject.iap_xml"
propertiesfile="${installer_output_dir}/iabuild.properties"
buildtimevarpropfile="${installer_output_dir}/iabuild_time_variables.properties"\>


Hope it helps.

Thanks,
Jayashree





Hi,

YES, many thanks, this is working well with "buildtimevarpropfile" parameter.
Please update documentation/help so that other developers can find it easily.

Thanks again for your quick help.

--Jerome
0 Kudos