cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
eagerbeaver
Level 2

Using build properties XML file

Hi

I have modified the BuildProperties.xml file by uncommenting the build output property and setting it to the path I want. I then included the 'propertesfile' attribute in the ANT task and set that to the full path to this file. But when I run the task, the properties file does not appear to be read as the setting gets ignored.

Can anybody help?

Thanks

D
Labels (1)
0 Kudos
(5) Replies
RobertDickau
Flexera Alumni

As a test, does it work if you run the command-line builder outside of the Ant task?
0 Kudos
eagerbeaver
Level 2

Hi

I ran that test you suggested but still no joy. The template syntax looks suspect to me - can't be simply a matter of uncommenting the line for the property you wish to set and changing the value.

Besides, the error I get is:

The reading of build settings properties file failed
Error: Element type "BuildOutputLocation" must be followed by either attribute specifications, ">" or "/>".

All I've done in the properties file is change this section (but this doesn't look syntactically correct to me - so what is correct?):









Thanks for your help,

D
0 Kudos
RobertDickau
Flexera Alumni

Does it work if you just use:

BuildOutputLocation="C:\Temp\testANT\output"

(that is, remove the surrounding angle brackets, BuildOutputLocation being an attribute of the build element)?
0 Kudos
qqqqqq
Level 7

even this is not working.. 😞
how to build ,such that... it will output the install.exe to specified location
0 Kudos
sturge
Level 6

Don't want to bump an old thread, but it was the first item when I searched the Knowledge base. The sample file given is faulty xml. You need to remove the > after build and remove all the comments. You want something like this:



OverrideAllPlatformSettings="true"

BuildLinuxWithVM="false"
BuildLinuxWithoutVM="true"

BuildAIXWithVM="false"
BuildAIXWithoutVM="true"

BuildSolarisWithVM="false"
BuildSolarisWithoutVM="true"

BuildHPUXWithVM="false"
BuildHPUXWithoutVM="false"

BuildNamedUnixWithVM="false"
BuildNamedUnixWithoutVM="false"

BuildUnixAll="false"

BuildMacOSX="false"

BuildWindowsWithVM="false"
BuildWindowsWithoutVM="true"

BuildPureJava="false"

UnixDefaultUI="Console"
WindowsDefaultUI="GUI"

BuildWebInstaller="false"
BuildCDROMInstaller="true"
BuildMergeModule="false"
BuildReadOnlyMergeModule="false"
BuildWorkdirLocation="cdWorkDir"

OptimizeCDROMInstaller="true"

InstallerStdOutRedirect="InstallBuildOut.log"
InstallerStdErrRedirect="InstallBuildErr.log">
0 Kudos