Changeset 7509


Ignore:
Timestamp:
11/24/06 16:42:34 (5 years ago)
Author:
sam
Message:

En JRE 1.5 (win et lin) xalan.jar n'a plus besoin d'être dans lib/endorced - passage dans destlibext, en JRE 1.4 (mac) xalan.jar doit être dans destlibendorsed

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Bui_Core/xBuildServer.xml

    r7453 r7509  
    218218         **-->   
    219219        <target name="xCopyLib" description="Copie les librairies java nécessaires."> 
    220                 <!-- @param : destlibext, destlibendorsed 
     220                <!-- @param : destlibext, destlibendorsed, app.os 
    221221                        --> 
    222222                <echo message="Copy Java Librairies..."/> 
     
    237237                <copy file="${piccolo.res.jar}" tofile="${destlibext}/piccolo.jar" preservelastmodified="true" failonerror="true"/> 
    238238                <copy file="${bsf.res.jar}" tofile="${destlibext}/bsf.jar" preservelastmodified="true" failonerror="true"/> 
    239                 <!--# endorsed --> 
    240                 <mkdir dir="${destlibendorsed}"/> 
    241                 <copy file="${xalan.res.jar}" tofile="${destlibendorsed}/xalan.jar" preservelastmodified="true" failonerror="true"/> 
     239                <if> 
     240                        <equals arg1="${app.os}" arg2="mac"/> 
     241                        <then> 
     242                                <!-- En JRE 1.4 (mac) xalan.jar doit être dans destlibendorsed  --> 
     243                                <mkdir dir="${destlibendorsed}"/> 
     244                                <copy file="${xalan.res.jar}" tofile="${destlibendorsed}/xalan.jar" preservelastmodified="true" failonerror="true"/> 
     245                        </then> 
     246                        <else> 
     247                                <!-- En JRE 1.5 (win et lin) xalan.jar n'a plus besoin d'être dans lib/endorced - passage dans destlibext --> 
     248                                <copy file="${xalan.res.jar}" tofile="${destlibext}/xalan.jar" preservelastmodified="true" failonerror="true"/> 
     249                        </else> 
     250                </if> 
    242251        </target> 
    243252         
  • trunk/Xul_Cms/components/scHttpDataServer.js

    r7464 r7509  
    127127                                var vFile = vFolderService.get("ARes", Components.interfaces.nsIFile).parent.parent;//répertoire bin 
    128128                                var vAppDirPath = vFile.path; 
    129                                 //debug("vAppDirPath:: "+vAppDirPath); 
    130129                                var vOpts = []; 
    131130                                var vIdxOpt = 0; 
     
    136135                                        var vSeparator = gOS=="Win" ? "\\" : "/"; 
    137136                                        var vClassPathSeparator = gOS=="Win" ? ";" : ":"; 
    138 //                                      debug("vSeparator:: "+vSeparator); 
    139 //                                      debug("vClassPathSeparator:: "+vClassPathSeparator); 
    140137                                         
    141138                                        var vScLibPath          = vAppDirPath + vSeparator + "scServer" + vSeparator + "sclib"; 
    142139                                        var vJavaLibPath        = vAppDirPath + vSeparator + "scServer" + vSeparator + "javalib"; 
    143140                                        var httpPublicPath      = vAppDirPath + vSeparator + "scServer" + vSeparator + "httppublic"; 
    144  
     141                                         
     142                                        // Utilisé pour Mac car encore en jre 1.4 
    145143                                        var vJavaEndorsedPath   = vAppDirPath + vSeparator + "scServer" + vSeparator + "jre" + vSeparator + "lib" + vSeparator + "endorsed"; 
     144                                         
    146145                                        var vScConfPath                 = vAppDirPath + vSeparator + "scServer" + vSeparator + "conf"; 
    147 //                                      debug("vScLibPath:: "+vScLibPath); 
    148 //                                      debug("vJavaLibPath:: "+vJavaLibPath); 
    149 //                                      debug("httpPublicPath:: "+httpPublicPath); 
    150 //                                      debug("vJavaEndorsedPath:: "+vJavaEndorsedPath); 
    151 //                                      debug("vScConfPath:: "+vScConfPath); 
    152146 
    153147                                        if (gOS == "Mac"){ 
     
    191185                                        vOpts[vIdxOpt] += vJavaLibPath + vSeparator + "xerces.jar" + vClassPathSeparator; 
    192186                                        vOpts[vIdxOpt] += vJavaLibPath + vSeparator + "xmlapi.jar" + vClassPathSeparator; 
     187                                        if (gOS != "Mac"){ // Sous mac xalan.jar doit être dans le dossier endorced car encore en JRE 1.4 
     188                                                vOpts[vIdxOpt] += vJavaLibPath + vSeparator + "xalan.jar" + vClassPathSeparator; 
     189                                        } 
    193190                                        vOpts[vIdxOpt] += httpPublicPath + vSeparator + "applets" + vSeparator + "classes" + vClassPathSeparator; 
    194191                                        vIdxOpt++; 
     
    216213                                        } 
    217214                                        vOpts[vIdxOpt++] = vPort; 
    218                                 } //Fin cas os==Win,Mac,UNIX 
     215                                } //Fin cas os==Win, Mac, Unix 
    219216                                else { 
    220                                         // TODO : traitement si os ni Mac ni Win         
     217                                        // TODO : traitement si os ni Mac ni Win in unix         
    221218                                } 
    222219                                if(!vFile.exists()){ 
Note: See TracChangeset for help on using the changeset viewer.