[JIRA] Commented: (CC-976) dashboard build.xml needs a fix to run on Snow Leopard

"Dan Rollo (JIRA)" <[email protected]> Thu, 10 Mar 2011 08:22:43 -0600 (CST)
Newsgroups gmane.comp.java.cruise-control.devel
Message-ID <1829689366.1299766963509.JavaMail.root@chidmzhosting02.thoughtworks.com>
    [ http://jira.public.thoughtworks.org/browse/CC-976?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_19111 ] 

Dan Rollo commented on CC-976:
------------------------------

This same "Mac Java temp dir/Spring" bug appears to affect the "-start.jetty.server.with.sys" target.
Adding the same fix appears to that target fix it on Mac OS.
I also saw this error on Mac OS version: 10.5.8 with java 1.5.0_26, so I changed the condition logic to include 10.*.


Index: reporting/dashboard/build.xml
===================================================================
--- reporting/dashboard/build.xml	(revision 4572)
+++ reporting/dashboard/build.xml	(working copy)
@@ -190,12 +190,12 @@
 
     <!-- the setting of the tmpdir would be required under Mac OS Snow Leopard (see CC-976)
     os.name=Mac OS X
-    os.version=10.6.2
+    os.version=10.6.2 (also occurs on 10.5.8 with java 1.5.0_26)
     -->
     <condition property="tmpdir.jvmarg" value="-Djava.io.tmpdir=/tmp" else="">
         <and>
             <os family="mac"/>
-            <matches pattern="10\.6\.*" string="${os.version}"/>
+            <matches pattern="10\.*" string="${os.version}"/>
         </and>
     </condition>
 
@@ -409,6 +409,7 @@
             <sysproperty key="cc.config.forcebuild" value="enabled" />
             <sysproperty key="dashboard.config" value="test/data/dashboard-config.xml" />
             <classpath refid="test.functional.run.path" />
+            <jvmarg line="${tmpdir.jvmarg}"/> <!-- workaround Mac Java Temp dir/Spring bug, see CC-976 -->
         </java>
     </target>



> dashboard build.xml needs a fix to run on Snow Leopard
> ------------------------------------------------------
>
>                 Key: CC-976
>                 URL: http://jira.public.thoughtworks.org/browse/CC-976
>             Project: CruiseControl
>          Issue Type: Bug
>          Components: Dashboard
>    Affects Versions: 2.8.4
>         Environment: MacOS Snow Leopard
>            Reporter: Antoine Levy Lambert
>             Fix For: 2.8.4
>
>         Attachments: patch.txt
>
>
> MacOS Snow Leopard by default has a java.io.tmpdir with a path with characters which need to be escaped when converted to an URI. 
> This prevents Jetty from starting.
> This link http://development.lombardi.com/?cat=5 is one of several documents in the web mentioning the issu.
> The attached patch forces the tmp directory to be /tmp under MacOS Snow Leopard, otherwise Jetty cannot start.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.public.thoughtworks.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d