 Anforderung
Anforderung
   Konfigurationen und Quellcode der Entwickler sollen in einem Versionsverwaltungsprogramm abgelegt werden. Die Lösung muss in den Oracle JDeveloper und Continuous Integration Service  integrier bar sein. Es muss eine Kommando-, Windows- und Web – Client vorhanden sein. 
  Lösung
     - Installation Subversion , WebSVN und TortoiseSVN 
Komponenten
    Umsetzung
              | Bereich | Gegenstand | 
               |  |  | 
             | Putty | Action: Start Putty | 
             |  | Action: Open Save Session telde.local als Root | 
             |  |  | 
             | Shell |            login as: root              root@192.168.234.140's password:
 Last login: Thu Jul 30 23:45:02 2009 from 192.168.234.1
 | 
             |  |  | 
             | Install SVN
 |            [root@telde ~]# yum -y install subversion subversion-devel mod_dav_svn              Loaded plugins: security
 Setting up Install Process
 : Installed: mod_dav_svn.i386 0:1.4.2-4.0.1.el5 subversion.i386 0:1.4.2-4.0.1.el5 subversion-devel.i386 0:1.4.2-4.0.1.el5              Dependency Installed: apr-devel.i386 0:1.2.7-11 apr-util-devel.i386 0:1.2.7-7.el5 db4-devel.i386 0:4.3.29-9.fc6 expat-devel.i386 0:1.95.8-8.2.1 gcc.i386 0:4.1.2-44.el5 glibc-devel.i386 0:2.5-34 glibc-headers.i386 0:2.5-34 kernel-headers.i386 0:2.6.18-128.el5 libgomp.i386 0:4.3.2-7.el5
 Complete!
 | 
             |  |  | 
             |  |            [root@telde ~]# mkdir -p /u01/repository/svn              [root@telde ~]# cd /u01/repository/svn
 [root@telde svn]# svnadmin create internal-telde
 [root@telde svn]# cd ..
 [root@telde repository]# chown -R apache.apache svn
 [root@telde repository]# ls -ltr
 total 4
 drwxr-xr-x 3 apache apache 4096 Jul 31 04:20 svn
 [root@telde repository]#
 | 
             | Download | Action: subversion.conf und mit WinSCP nach /etc/httpd/conf.d auf die telde.local kopieren. | 
             |  |  | 
             | Restart HTTPD |            [root@telde conf.d]# service httpd restart              Stopping httpd:                                            [  OK  ]
 Starting httpd:                                             [  OK  ]
 | 
             |  |  | 
             | Test | Action: Browser mit der URL http://192.168.234.140/svn/internal-telde/ öffnen | 
             |  |  | 
             | Download | WebSVN 2.2.1 und mit WinSCP nach /usr/share auf die telde.local kopieren. | 
             |  |  | 
             | Install WebSVN
 |            [root@telde share]# cd /usr/share/              [root@telde share]# gunzip websvn-2.2.1.tar.gz
 [root@telde share]# tar xvpf websvn-2.2.1.tar
 [root@telde share]# mv websvn-2.2.1 websvn              [root@telde share]# vi /etc/httpd/conf.d/subversion.conf
 [root@telde share]# rm websvn-2.2.1.tar
 rm: remove regular file `websvn-2.2.1.tar'? y
 | 
             |  |            [root@telde include]# cp distconfig.php config.php              [root@telde include]# vi config.php
              $config->parentPath('/u01/repository/svn');
 // $config->parentPath('Path/to/parent (e.g. c:\\svn)', 'group');
 | 
             | Test | Action: Browser mit der URL http://192.168.234.140/websvn öffnen | 
             |  |  | 
             |  |  | 
             | Download | TortoiseSVN-1.6.3.16613-win32-svn-1.6.3.msi | 
             |  |  | 
             | Install Tortoise
 | Action: Installation Wizard ausführen als Typische Installation | 
             |  |  | 
             | Konfiguration | Action: Rechte Maustaste auf dem Desktop | 
             |  | Select: TortoiseSVN / Settings | 
             |  | 
 | 
             |  |  | 
             |  | Select: General | 
             |  | Choose: Subversion configuration file / Edit | 
             |  |  | 
             |  | Action: Einfügen des unten aufgeführten Textes in den geöffneten Editor | 
             |  |  | 
             |  |            #TELDE props  #unix shell              *.sh = svn:keywords=LastChangedBy LastChangedRevision LastChangedDate Id Rev Author Date
 #java              *.java = svn:keywords=LastChangedBy LastChangedRevision LastChangedDate Id Rev Author Date
 *.properties = = svn:keywords=LastChangedBy LastChangedRevision LastChangedDate Id Rev Author Date
 #velocity template              *.java = svn:keywords=LastChangedBy LastChangedRevision LastChangedDate Id Rev Author Date
 *.vm = svn:keywords=LastChangedBy LastChangedRevision LastChangedDate Id Rev Author Date
 #sql              *.sql = svn:keywords=LastChangedBy LastChangedRevision LastChangedDate Id Rev Author Date
 #pl/sql              *.fnc = svn:keywords=LastChangedBy LastChangedRevision LastChangedDate Id Rev Author Date
 *.prc = svn:keywords=LastChangedBy LastChangedRevision LastChangedDate Id Rev Author Date
 *.trg = svn:keywords=LastChangedBy LastChangedRevision LastChangedDate Id Rev Author Date
 *.spc = svn:keywords=LastChangedBy LastChangedRevision LastChangedDate Id Rev Author Date
 *.bdy = svn:keywords=LastChangedBy LastChangedRevision LastChangedDate Id Rev Author Date
 *.tspc = svn:keywords=LastChangedBy LastChangedRevision LastChangedDate Id Rev Author Date
 *.tbdy = svn:keywords=LastChangedBy LastChangedRevision LastChangedDate Id Rev Author Date
 *.typ = svn:keywords=LastChangedBy LastChangedRevision LastChangedDate Id Rev Author Date
 #wslt scripts              *.py = svn:keywords=LastChangedBy LastChangedRevision LastChangedDate Id Rev Author Date
 | 
             |  |  | 
             |  | Choose: Datei /Speichern | 
             |  | Choose: Datei / Beenden | 
             |  | Choose: Ok | 
             |  |  | 
             | Erläuterung | Durch die oben durchgeführte Konfiguration kann man mit den entsprechend angegeben Keywords von SVN, die entsprechenden Informationen wie zum Beispiel LastChangeDate in die Source Datei nach einem Commit eintragen lassen. | 
             |  |  | 
             | Beispiel |            #!/bin/sh              # Env-Script der Application fuer Build,Test,Release,Deploy,Patch
 #
 # $Rev: 1925 $:
 # $Author: ugb $:
 # $Date: 2009-08-04 10:48:17 +0200 (Di, 04 Aug 2009) $:
 #NLS              export NLS_LANG=GERMAN_GERMANY.AL32UTF8
 | 
             | Connect Remote SVN Repository | Action: Rechte Maustaste auf dem Desktop Select: TortoiseSVN / Repro-browser
 | 
             |  |  | 
             |  | Input URL: http://192.168.234.140/svn/internal-telde | 
             |  |  | 
             | Erläuterung | Das sich öffnende Fenster zeigt den Inhalt des angelegten SVN Repository. | 
             |  |  | 
             | SVN Checkout | Action: Rechte Maustaste auf dem Desktop Select: TortoiseSVN / SVN Checkout
 | 
             |  |  | 
             |  |  | 
             | Erläuterung | Die Projektdateien werden auf dem jeweiligen Entwicklungsrechner in der folgenden Struktur abgelegt: | 
             |  |            \<base>\project\<customer>\<customer>-<codename> | 
             |  | In unserem Beispiel werden folgende Parameter verwendet: | 
             |  |                             | <base> | /u01 |                 |  | \www |                 | <customer> | internal |                 | <codename> | telde |  | 
             |  |  | 
   
        Anmerkung
  Status nach dem 8. Teil ist der folgende:
     - Lauffähiges Betriebsystem innerhalb einer VMware 
- Web Server 
- LDAP Server mit Administrationsoberfläche 
- Versionsverwaltung mit WebDAV, Web Interface  und Windows Client zugriffsgesteuert über LDAP 
 
Keine Kommentare:
Kommentar veröffentlichen