ruper2/src/java/core/org/krysalis/ruper2/tool RepositoryTool.java,1.9,1.10

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

Modified Files:
	RepositoryTool.java 
Log Message:
Added 'RepositoryManifest', that lists the types/ids/versions (even resources, but this'll be optional) of a repo.


See using the -m (-manifest) option:

java org.krysalis.ruper2.tool.RepositoryTool  -repo maven -g junit -m

Index: RepositoryTool.java
===================================================================
RCS file: /cvsroot/metamorphosis/ruper2/src/java/core/org/krysalis/ruper2/tool/RepositoryTool.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** RepositoryTool.java	14 Oct 2003 20:48:07 -0000	1.9
--- RepositoryTool.java	24 Oct 2003 21:35:50 -0000	1.10
***************
*** 32,35 ****
--- 32,36 ----
  	private static Option l_groupOption = null;
  	private static Option l_listOption = null;
+ 	private static Option l_manifestOption = null;
  	private static Option l_cleanOption = null;
  
***************
*** 40,43 ****
--- 41,45 ----
  		l_listOption =
  			new Option("l", "list", false, "List resources or groups");
+ 		l_manifestOption = new Option("m", "manifest", false, "Show manifest");
  		l_cleanOption =
  			new Option(
***************
*** 51,59 ****
  		return "Ruper Repository Tool";
  	}
! 	
  	protected void init() {
  		getOptions().addOption(l_repoOption);
  		getOptions().addOption(l_groupOption);
  		getOptions().addOption(l_listOption);
  		getOptions().addOption(l_cleanOption);
  	}
--- 53,62 ----
  		return "Ruper Repository Tool";
  	}
! 
  	protected void init() {
  		getOptions().addOption(l_repoOption);
  		getOptions().addOption(l_groupOption);
  		getOptions().addOption(l_listOption);
+ 		getOptions().addOption(l_manifestOption);
  		getOptions().addOption(l_cleanOption);
  	}
***************
*** 79,83 ****
  			out.println("Repository: " + repo);
  			DebugUtils.dump(repository);
! 			
  			if (cmdline.isSet(l_groupOption)) {
  				ResourceGroup group =
--- 82,86 ----
  			out.println("Repository: " + repo);
  			DebugUtils.dump(repository);
! 
  			if (cmdline.isSet(l_groupOption)) {
  				ResourceGroup group =
***************
*** 87,90 ****
--- 90,98 ----
  				if (cmdline.isSet(l_cleanOption)) {
  					ruper.cleanRepository(repository, group);
+ 				}
+ 				else if (cmdline.isSet(l_manifestOption)) {
+ 					DebugUtils.printSeparator();
+ 					DebugUtils.dump(
+ 						repo.getManifest(group, AllSelector.getInstance()));
  				}
  				else {




-------------------------------------------------------
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community?  Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
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.