[jboss-cvs] jbossbuild/src/main/org/jboss/ant/util/graph ...

Ruel Loehr ruel.loehr at jboss.com
Wed Aug 16 10:53:13 EDT 2006


  User: rloehr  
  Date: 06/08/16 10:53:13

  Modified:    src/main/org/jboss/ant/util/graph  Tag: BRANCH_JBBUILD_DEV
                        ComponentRefGraphClasspathVisitor.java
  Log:
  bugfix:  classpath was generated incorrectly if component id had a '/' then a '-'
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.6.2.1   +8 -5      jbossbuild/src/main/org/jboss/ant/util/graph/ComponentRefGraphClasspathVisitor.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: ComponentRefGraphClasspathVisitor.java
  ===================================================================
  RCS file: /cvsroot/jboss/jbossbuild/src/main/org/jboss/ant/util/graph/ComponentRefGraphClasspathVisitor.java,v
  retrieving revision 1.6
  retrieving revision 1.6.2.1
  diff -u -b -r1.6 -r1.6.2.1
  --- ComponentRefGraphClasspathVisitor.java	12 Sep 2005 13:43:32 -0000	1.6
  +++ ComponentRefGraphClasspathVisitor.java	16 Aug 2006 14:53:13 -0000	1.6.2.1
  @@ -21,7 +21,7 @@
    *  to a file
    * 
    * @author <a href="ruel.loehr at jboss.com">Ruel Loehr</a>
  - * @version $Revision: 1.6 $
  + * @version $Revision: 1.6.2.1 $
    */
   public class ComponentRefGraphClasspathVisitor implements Visitor
   {
  @@ -75,10 +75,13 @@
               //perform replacement operation on the pathname to try and match
               //the existing libraries.ent as closely as possible
                             
  +            if ((pathName.indexOf('-') != -1) || (pathName.indexOf('/') != -1))
  +            {  
               if (pathName.indexOf('-') != -1)
                  pathName = pathName.replace('-', '.');
  -            else if (pathName.indexOf('/') != -1)
  +               if (pathName.indexOf('/') != -1)
                  pathName = pathName.replace('/', '.');
  +            }
               else
                  pathName = pathName + '.' + pathName;
   
  
  
  



More information about the jboss-cvs-commits mailing list