ruper2/src/java/core/org/krysalis/ruper2/resource ResourceSpecifier.java,1.1,1.2

[email protected]
Newsgroups gmane.comp.krysalis.metamorphosis.cvs
Message-ID <[email protected]>
Update of /cvsroot/metamorphosis/ruper2/src/java/core/org/krysalis/ruper2/resource
In directory sc8-pr-cvs1:/tmp/cvs-serv3016/src/java/core/org/krysalis/ruper2/resource

Modified Files:
	ResourceSpecifier.java 
Log Message:
Repository.listGroups works better now.
Note: This does not work on flat repos.

Index: ResourceSpecifier.java
===================================================================
RCS file: /cvsroot/metamorphosis/ruper2/src/java/core/org/krysalis/ruper2/resource/ResourceSpecifier.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** ResourceSpecifier.java	29 Sep 2003 18:09:19 -0000	1.1
--- ResourceSpecifier.java	3 Oct 2003 15:07:16 -0000	1.2
***************
*** 37,41 ****
  		m_version = version;
  	}
! 	
  	/**
  	 * @return
--- 37,41 ----
  		m_version = version;
  	}
! 
  	/**
  	 * @return
***************
*** 72,76 ****
  		return m_version;
  	}
! 	
  	/**
  	 * @return
--- 72,76 ----
  		return m_version;
  	}
! 
  	/**
  	 * @return
***************
*** 79,83 ****
  		return m_group;
  	}
! 	
  	public void dump(PrintWriter out, int depth, boolean verbose) {
  		String indent = DebugUtils.getIndent(depth);
--- 79,104 ----
  		return m_group;
  	}
! 
! 	public String toString() {
! 		StringBuffer buffer = new StringBuffer();
! 
! 		if (!m_group.getGroup().equals(m_identifier.getId())) {
! 			buffer.append("{");
! 			buffer.append(m_group.toString());
! 			buffer.append("}: ");
! 		}
! 
! 		buffer.append(m_identifier.getId());
! 		buffer.append(" (");
! 		buffer.append(m_type.getPrefix());
! 		buffer.append(") ");
! 		
! 		if (null != m_version) {
! 			buffer.append(m_version.toString());
! 		}
! 
! 		return buffer.toString();
! 	}
! 
  	public void dump(PrintWriter out, int depth, boolean verbose) {
  		String indent = DebugUtils.getIndent(depth);




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.