gump-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject cvs commit: jakarta-gump/java LocalCheck.java
Date Mon, 27 Jan 2003 08:51:11 GMT
bodewig     2003/01/27 00:51:10

  Modified:    java     LocalCheck.java
  Log:
  My workspace has an absolute path in profile's href attribute
  
  Revision  Changes    Path
  1.3       +9 -5      jakarta-gump/java/LocalCheck.java
  
  Index: LocalCheck.java
  ===================================================================
  RCS file: /home/cvs/jakarta-gump/java/LocalCheck.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- LocalCheck.java	27 Jan 2003 08:39:53 -0000	1.2
  +++ LocalCheck.java	27 Jan 2003 08:51:10 -0000	1.3
  @@ -104,7 +104,11 @@
           this.pkgDir+=((pkgDir.endsWith(File.separator))?"":File.separator);
           currentDir = new File(workspaceFile).getAbsoluteFile().getParent()+File.separator;
           String profileFile = doc.getElementsByTagName("profile").item(0).getAttributes().getNamedItem("href").getNodeValue();
  -        this.profile = parse(currentDir+profileFile);
  +        if ((new File(profileFile)).isAbsolute()) {
  +            this.profile = parse(profileFile);
  +        } else {
  +            this.profile = parse(currentDir+profileFile);
  +        }
           parseProfile();
       }
       
  
  
  

Mime
View raw message