How to get a listing of modules contained within a certain repository
"Torsten Michelmann" <[email protected]> Tue, 27 Feb 2007 12:03:50 +0100
| Newsgroups | gmane.comp.java.netbeans.modules.javacvs.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I am not sure if I am addressing the right mailing list. If not it would be very kind if someone could point me to the correct place. I found the mail address on http://javacvs.netbeans.org/library/index.html so I thought it would at least be worth a try.
As mentioned in the subject I try to get a listing of the directories/modules in a given repository.
I tried using the code below but it does not yield any results at all.
It would be very kind if someone could give me a tip on how to get this working.
Client client =null;
try {
client = new Client(getConnection(project), adminHandler);
} catch (Exception e) {
throw new RepositoryException(e.getMessage()+ " while opening the connection");
}
client.setLocalPath(getConf().getCVSLocalRoot());
client.getEventManager().addCVSListener(new ModulListener()); //I thought that I would get all modules using this listener, but the method is never called by ModuleListBuilder
CheckoutCommand cmd= new CheckoutCommand();
cmd.setShowModules(true);
cmd.setBuilder(new ModuleListBuilder(client.getEventManager(),cmd)); //not sure if this is required
try {
client.executeCommand(cmd,gtx);
} catch (Exception e) {
throw new RepositoryException(e.getMessage()+" while executing the Checkout");
}
public class ModulListener extends BasicListener {
public ModulListener()
{
super();
}
public void fileInfoGenerated(FileInfoEvent e) { //never called
System.out.println(e);
}
}
--
Greetings Torsten
Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten
Browser-Versionen downloaden: http://www.gmx.net/de/go/browser