Changeset 07fbac9b5b453c0bcbce8ab4722a04c3afa56b78

Show
Ignore:
Timestamp:
08/18/07 15:52:10 (1 year ago)
Author:
Christopher Jung <bktheg@web.de>
git-committer:
Christopher Jung <bktheg@web.de> 1187445130 +0200
git-parent:

[cb92c060511c66472e9f839dfa6879afa914f0dc]

git-author:
Christopher Jung <bktheg@web.de> 1187445130 +0200
Message:

install-check: Bestehende Tests gefixt sowie zwei neue Tests ergaenzt

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/net/driftingsouls/ds2/server/install/CheckInstallation.java

    r70d49ee r07fbac9  
    2929import net.driftingsouls.ds2.server.install.checks.ConfigXmlValidXmlCheck; 
    3030import net.driftingsouls.ds2.server.install.checks.DatabaseConnectionCheck; 
     31import net.driftingsouls.ds2.server.install.checks.LoxPathCheck; 
     32import net.driftingsouls.ds2.server.install.checks.WebXmlConfigDirCheck; 
    3133import net.driftingsouls.ds2.server.install.checks.WebXmlExistsCheck; 
    3234import net.driftingsouls.ds2.server.install.checks.WebXmlValidXmlCheck; 
     
    4547                checks.add(new WebXmlExistsCheck()); 
    4648                checks.add(new WebXmlValidXmlCheck()); 
     49                checks.add(new WebXmlConfigDirCheck()); 
    4750                checks.add(new ConfigXmlValidCheck()); 
    4851                 
     
    5053                checks.add(new DatabaseConnectionCheck()); 
    5154                checks.add(new AbsolutePathCheck()); 
     55                checks.add(new LoxPathCheck()); 
    5256        } 
    5357         
  • src/net/driftingsouls/ds2/server/install/checks/AbsolutePathCheck.java

    r70d49ee r07fbac9  
    5050 
    5151        public String getDescription() { 
    52                 return "config:ABSOLUTE_PATH pruefen"; 
     52                return "config.xml:ABSOLUTE_PATH pruefen"; 
    5353        } 
    5454 
  • src/net/driftingsouls/ds2/server/install/checks/ConfigXmlValidCheck.java

    r70d49ee r07fbac9  
    1818 */ 
    1919package net.driftingsouls.ds2.server.install.checks; 
    20  
    21 import java.io.File; 
    2220 
    2321import net.driftingsouls.ds2.server.framework.Configuration; 
  • src/net/driftingsouls/ds2/server/install/checks/WebXmlExistsCheck.java

    r70d49ee r07fbac9  
    3232 
    3333        public void doCheck() throws CheckFailedException { 
    34                 try { 
    35                         DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder(); 
    36                         builder.parse(new File("WEB-INF/web.xml")); 
    37                 } 
    38                 catch( Exception e ) { 
    39                         throw new CheckFailedException("WEB-INF/web.xml ist kein xml", e); 
     34                if( !new File("WEB-INF/web.xml").isFile() ) { 
     35                        throw new CheckFailedException("WEB-INF/web.xml nicht gefunden"); 
    4036                } 
    4137        } 
    4238 
    4339        public String getDescription() { 
    44                 return "web.xml XML pruefen"; 
     40                return "web.xml existiert"; 
    4541        } 
    46  
    4742} 
  • src/net/driftingsouls/ds2/server/install/checks/WebXmlValidXmlCheck.java

    r70d49ee r07fbac9  
    3434                try { 
    3535                        DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder(); 
    36                         builder.parse(new File("WEB-INF/cfg/config.xml")); 
     36                        builder.parse(new File("WEB-INF/web.xml")); 
    3737                } 
    3838                catch( Exception e ) { 
    39                         throw new CheckFailedException("WEB-INF/cfg/config.xml ist kein xml", e); 
     39                        throw new CheckFailedException("WEB-INF/web.xml ist kein xml", e); 
    4040                } 
    4141        } 
    4242 
    4343        public String getDescription() { 
    44                 return "config.xml XML pruefen"; 
     44                return "web.xml XML pruefen"; 
    4545        } 
    4646