Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.12
-
Component/s: Infrastructure
-
Labels:None
Description
email from John Klingler on the Sonar mailing list :
Removing the ANT_HOME environment variable did the trick. I didn't even think about it since build-war.bat is calling ant in the internal ant 1.7 distribution. The ant.bat however looks for the ANT_HOME environment variable, which was pointing my 1.6.5 distribution. So the bundled ant 1.7 is only used if you don't have ANT_HOME defined (or it's already pointing at 1.7+ distribution). I modified the build-war script to force use of the bundled ant and it seems to work:
set ORIG_ANT_HOME=%ANT_HOME% set ANT_HOME=%CD%\apache-ant-1.7.0 call apache-ant-1.7.0\bin\ant set ANT_HOME=%ORIG_ANT_HOME% set ORIG_ANT_HOME=
Issue Links
- relates to
-
SONAR-1609
In the build.xml script used to package the war file, the property "webxml" should be defined on the "war" task
-
Here are the two scripts to modify :
http://svn.codehaus.org/sonar/trunk/sonar-application/src/main/assembly/war/build-war.bat
http://svn.codehaus.org/sonar/trunk/sonar-application/src/main/assembly/war/build-war.sh