Subversion Repositories DevTools

Rev

Rev 4123 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4123 Rev 4280
Line 98... Line 98...
98
    mRippleEngine = rippleEngine;
98
    mRippleEngine = rippleEngine;
99
  }
99
  }
100
 
100
 
101
  /**constructor
101
  /**constructor
102
   */
102
   */
103
  BuildStandard(RippleEngine rippleEngine, String buildMachine, String buildStandardAddendum)
103
  BuildStandard(RippleEngine rippleEngine, String buildMachineFamily, String buildStandardAddendum)
104
  {
104
  {
105
    mLogger.debug("BuildStandard");
105
    mLogger.debug("BuildStandard");
106
    mRippleEngine = rippleEngine;
106
    mRippleEngine = rippleEngine;
107
 
107
 
108
    if ( buildMachine.compareTo("Solaris") == 0 )
108
    if ( buildMachineFamily.compareTo("Solaris") == 0 )
109
    {
109
    {
110
      setSolaris();
110
      setSolaris();
111
    }
111
    }
112
    else if ( buildMachine.compareTo("Win32") == 0 )
112
    else if ( buildMachineFamily.compareTo("Win32") == 0 )
113
    {
113
    {
114
      setWin32();
114
      setWin32();
115
    }
115
    }
116
    else if ( buildMachine.compareTo("Linux") == 0 )
116
    else if ( buildMachineFamily.compareTo("Linux") == 0 )
117
    {
117
    {
118
      setLinux();
118
      setLinux();
119
    }
119
    }
120
    else if ( buildMachine.compareTo("Generic") == 0 )
120
    else if ( buildMachineFamily.compareTo("Generic") == 0 )
121
    {
121
    {
122
      setGeneric();
122
      setGeneric();
123
    }
123
    }
124
    else
124
    else
125
    {
125
    {
Line 183... Line 183...
183
     {
183
     {
184
       mLogger.info("getPlatform mGeneric && mRippleEngine.mDaemon");
184
       mLogger.info("getPlatform mGeneric && mRippleEngine.mDaemon");
185
       
185
       
186
       if ( xml )
186
       if ( xml )
187
       {
187
       {
188
         retVal = "  <platform gbe_machtype=\"";
188
         retVal = "    <platform gbe_machtype=\"";
189
       }
189
       }
190
       
190
       
191
       if ( utf )
191
       if ( utf )
192
       {
192
       {
193
         mLogger.info("getPlatform utf");
193
         mLogger.info("getPlatform utf");
Line 230... Line 230...
230
             retVal += System.getProperty("line.separator");
230
             retVal += System.getProperty("line.separator");
231
           }
231
           }
232
           
232
           
233
           if ( xml )
233
           if ( xml )
234
           {
234
           {
235
             retVal += "  <platform gbe_machtype=\"";
235
             retVal += "    <platform gbe_machtype=\"";
236
           }
236
           }
237
           
237
           
238
           retVal += gbemachtype;
238
           retVal += gbemachtype;
239
           
239
           
240
           if ( xml )
240
           if ( xml )
Line 253... Line 253...
253
 
253
 
254
         if ( gbemachtype.compareTo("win32") == 0 )
254
         if ( gbemachtype.compareTo("win32") == 0 )
255
         {
255
         {
256
           if ( xml )
256
           if ( xml )
257
           {
257
           {
258
             retVal = "  <platform gbe_machtype=\"win32\"/>";
258
             retVal = "    <platform gbe_machtype=\"win32\"/>";
259
           }
259
           }
260
           else
260
           else
261
           {
261
           {
262
             retVal = "win32";
262
             retVal = "win32";
263
           }
263
           }
Line 286... Line 286...
286
             }
286
             }
287
           }
287
           }
288
           
288
           
289
           if ( xml )
289
           if ( xml )
290
           {
290
           {
291
             retVal += "  <platform gbe_machtype=\"";
291
             retVal += "    <platform gbe_machtype=\"";
292
           }
292
           }
293
           
293
           
294
           retVal += gbemachtype;
294
           retVal += gbemachtype;
295
           
295
           
296
           if ( xml )
296
           if ( xml )
Line 309... Line 309...
309
 
309
 
310
         if ( gbemachtype.compareTo("linux_i386") == 0 )
310
         if ( gbemachtype.compareTo("linux_i386") == 0 )
311
         {
311
         {
312
           if ( xml )
312
           if ( xml )
313
           {
313
           {
314
             retVal = "  <platform gbe_machtype=\"linux_i386\"/>";
314
             retVal = "    <platform gbe_machtype=\"linux_i386\"/>";
315
           }
315
           }
316
           else
316
           else
317
           {
317
           {
318
             retVal = "linux_i386";
318
             retVal = "linux_i386";
319
           }
319
           }
Line 447... Line 447...
447
     
447
     
448
      if (mJava1_4)
448
      if (mJava1_4)
449
      {
449
      {
450
        if ( xml )
450
        if ( xml )
451
        {
451
        {
452
          retVal = "  <ant java=\"1.4\"/>";
452
          retVal = "    <ant java=\"1.4\"/>";
453
        }
453
        }
454
        else
454
        else
455
        {
455
        {
456
          retVal = "ant java 1.4";
456
          retVal = "ant java 1.4";
457
        }
457
        }
458
      }
458
      }
459
      else if (mJava1_5)
459
      else if (mJava1_5)
460
      {
460
      {
461
        if ( xml )
461
        if ( xml )
462
        {
462
        {
463
          retVal = "  <ant java=\"1.5\"/>";
463
          retVal = "    <ant java=\"1.5\"/>";
464
        }
464
        }
465
        else
465
        else
466
        {
466
        {
467
          retVal = "ant java 1.5";
467
          retVal = "ant java 1.5";
468
        }
468
        }
469
      }
469
      }
470
      else if (mJava1_6)
470
      else if (mJava1_6)
471
      {
471
      {
472
        if ( xml )
472
        if ( xml )
473
        {
473
        {
474
          retVal = "  <ant java=\"1.6\"/>";
474
          retVal = "    <ant java=\"1.6\"/>";
475
        }
475
        }
476
        else
476
        else
477
        {
477
        {
478
          retVal = "ant java 1.6";
478
          retVal = "ant java 1.6";
479
        }
479
        }
480
      }
480
      }
481
      else if (mJava1_7)
481
      else if (mJava1_7)
482
      {
482
      {
483
        if ( xml )
483
        if ( xml )
484
        {
484
        {
485
          retVal = "  <ant java=\"1.7\"/>";
485
          retVal = "    <ant java=\"1.7\"/>";
486
        }
486
        }
487
        else
487
        else
488
        {
488
        {
489
          retVal = "ant java 1.7";
489
          retVal = "ant java 1.7";
490
        }
490
        }
491
      }
491
      }
492
      else if (mAntNone)
492
      else if (mAntNone)
493
      {
493
      {
494
        if ( xml )
494
        if ( xml )
495
        {
495
        {
496
          retVal = "  <ant java=\"none\"/>";
496
          retVal = "    <ant java=\"none\"/>";
497
        }
497
        }
498
        else
498
        else
499
        {
499
        {
500
          retVal = "ant none";
500
          retVal = "ant none";
501
        }
501
        }
502
      }
502
      }
503
      else if (mJatsNone)
503
      else if (mJatsNone)
504
      {
504
      {
505
        if ( xml )
505
        if ( xml )
506
        {
506
        {
507
          retVal = "  <jats target=\"none\"/>";
507
          retVal = "    <jats target=\"none\"/>";
508
        }
508
        }
509
        else
509
        else
510
        {
510
        {
511
          retVal = "jats none";
511
          retVal = "jats none";
512
        }
512
        }
Line 517... Line 517...
517
        {
517
        {
518
          if (mDebug)
518
          if (mDebug)
519
          {
519
          {
520
            if ( xml )
520
            if ( xml )
521
            {
521
            {
522
              retVal = "  <jats target=\"all\"/>";
522
              retVal = "    <jats target=\"all\"/>";
523
            }
523
            }
524
            else
524
            else
525
            {
525
            {
526
              retVal = "jats all";
526
              retVal = "jats all";
527
            }
527
            }
528
          }
528
          }
529
          else
529
          else
530
          {
530
          {
531
            if ( xml )
531
            if ( xml )
532
            {
532
            {
533
              retVal = "  <jats target=\"production\"/>";
533
              retVal = "    <jats target=\"production\"/>";
534
            }
534
            }
535
            else
535
            else
536
            {
536
            {
537
              retVal = "jats production";
537
              retVal = "jats production";
538
            }
538
            }
Line 540... Line 540...
540
        }
540
        }
541
        else
541
        else
542
        {
542
        {
543
          if ( xml )
543
          if ( xml )
544
          {
544
          {
545
            retVal = "  <jats target=\"debug\"/>";
545
            retVal = "    <jats target=\"debug\"/>";
546
          }
546
          }
547
          else
547
          else
548
          {
548
          {
549
            retVal = "jats debug";
549
            retVal = "jats debug";
550
          }
550
          }
Line 665... Line 665...
665
    mJatsNone = true;
665
    mJatsNone = true;
666
  }
666
  }
667
  
667
  
668
  /** reset parameters associated with config of the build machine
668
  /** reset parameters associated with config of the build machine
669
  */
669
  */
670
  void resetBuildMachine()
670
  void resetBuildMachineFamily()
671
  {
671
  {
672
      mLinux = false;
672
      mLinux = false;
673
      mSolaris = false;
673
      mSolaris = false;
674
      mWin32 = false;
674
      mWin32 = false;
675
      mGeneric = false;
675
      mGeneric = false;
Line 678... Line 678...
678
  /**sets mGeneric true
678
  /**sets mGeneric true
679
   */
679
   */
680
  void setGeneric()
680
  void setGeneric()
681
  {
681
  {
682
    mLogger.debug("setGeneric");
682
    mLogger.debug("setGeneric");
683
    resetBuildMachine();
683
    resetBuildMachineFamily();
684
    mGeneric = true;
684
    mGeneric = true;
685
  }
685
  }
686
 
686
 
687
  /**sets mLinux true, mSolaris false, mWin32 false
687
  /**sets mLinux true, mSolaris false, mWin32 false
688
   */
688
   */
689
  void setLinux()
689
  void setLinux()
690
  {
690
  {
691
    mLogger.debug("setLinux");
691
    mLogger.debug("setLinux");
692
    resetBuildMachine();
692
    resetBuildMachineFamily();
693
    mLinux = true;
693
    mLinux = true;
694
  }
694
  }
695
 
695
 
696
  /**sets mLinux false, mSolaris true, mWin32 false
696
  /**sets mLinux false, mSolaris true, mWin32 false
697
   */
697
   */
698
  void setSolaris()
698
  void setSolaris()
699
  {
699
  {
700
    mLogger.debug("setSolaris");
700
    mLogger.debug("setSolaris");
701
    resetBuildMachine();
701
    resetBuildMachineFamily();
702
    mSolaris = true;
702
    mSolaris = true;
703
  }
703
  }
704
 
704
 
705
  /**sets mLinux false, mSolaris false, mWin32 true
705
  /**sets mLinux false, mSolaris false, mWin32 true
706
   */
706
   */
707
  void setWin32()
707
  void setWin32()
708
  {
708
  {
709
    mLogger.debug("setWin32");
709
    mLogger.debug("setWin32");
710
    resetBuildMachine();
710
    resetBuildMachineFamily();
711
    mWin32 = true;
711
    mWin32 = true;
712
  }
712
  }
713
 
713
 
714
  /**sets mGeneric false
714
  /**sets mGeneric false
715
   */
715
   */