Issue Details (XML | Word | Printable)

Key: BAM-1053
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Mark Chaimungkalanont [Atlassian]
Reporter: Doug South
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Bamboo

ANT_HOME is used for ant

Created: 21/Mar/07 09:45 PM   Updated: 03/May/07 06:15 AM
Component/s: Builders (Other)
Affects Version/s: 1.0.1
Fix Version/s: 1.1

Time Tracking:
Not Specified

File Attachments: 1. XML File buildresults1.xml (3 kB)

Environment: war distribution running on Windows in Tomcat 5.5.23
Issue Links:
Reference
 

Participants: Ajay Sridhar [Atlassian], Doug South and Mark Chaimungkalanont [Atlassian]
Since last comment: 1 year, 23 weeks, 1 day ago
Number of comments: 5
Internal Work Bucket: Investigating
Labels:


 Description  « Hide
ANT_HOME environment variable appears to take precedence over which version of Ant is configured as the builder.

ANT_HOME pointed to a 1.6.2 version. I was getting a Class org.apache.tools.ant.taskdefs.ConditionTask doesn't support the "else" attribute error, even though the builder was version 1.6.5. Once I reset the variable and restarted tomcat, everything worked properly.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Doug South added a comment - 21/Mar/07 10:21 PM
By reset, I mean I've removed the ANT_HOME environment variable

Ajay Sridhar [Atlassian] added a comment - 22/Mar/07 01:11 AM
Hi Doug,

I have tried to replicate your problem by using an custom ant builder and the $ANT_HOME does not precede the ant build path specified.

If you could give me a copy of your version build log from /bamboo-home/xml-data/builds/PROJECT_NAME/results/buildresults_VERSION.xml to investigate further.

It should look something like this

<log>Starting to build 'Teat - Default'
<br /> ... running command line: /home/asridhar/Desktop/apache-ant-1.7.0/bin/ant -buildfile build.xml
<br /> ... in : /home/asridhar/Bamboo/data/bamboo-home/xml-data/build-dir/TST-DEF
<br /> ... using java: null
<br /> ... using environment variables: </log>

Cheers,
Ajay


Doug South added a comment - 22/Mar/07 04:06 PM
Hi Ajay

Attached is the build result file for my first failure as described in
the support case.

Regards,
Doug


Ajay Sridhar [Atlassian] added a comment - 23/Mar/07 12:51 AM
Hi Doug,

That is indeed very strange. I tried testing this on an windows machine today and Bamboo used the custom builder specified in build configuration.

The builder specified in $ANT_HOME did not take precedence over the custom builder version. But i can see from your logs that the build did fail due to an mismatch

I noticed that you use the older Bamboo 1.0.1 version, perhaps upgrading to the latest 1.0.2 release might fix this problem

Cheers,
Ajay


Mark Chaimungkalanont [Atlassian] added a comment - 03/May/07 06:15 AM
Doug,

This issue should now be fixed for 1.1. It looks as though Bamboo was using the right executable, but the underlying Ant libs still looked for the ANT_HOME system variable.

The ANT_HOME should now be over-ridden appropriately.

Cheers,

Mark C