RE: [SourceJammer-devel] CommandCentral.getChecker()
Brought to you by:
robertmacgrogan
From: Robert M. <rob...@ya...> - 2006-04-21 16:25:47
|
Excellent, Karan. Glad you figured this out on your own. I was just about to dig in and help you out, but you beat me to it. --Rob --- "Gupta, Karan" <kar...@tr...> wrote: > I got it! > I updated the getChecker() method in CommandCentral.java with the following code and rebuilt the > jars (the ant script is really slick, btw :-). > > String strPath = new String(); > if (moCurrentTreeNode != null) > { > strPath = moCurrentTreeNode.getPathAsString(); > } > else > { > System.out.println("moCurrentTreeNode is NULL."); > } > > The moCurrentTreeNode variable was null and generating a NullPointerException. > > Cheers, > Karan > > > > -----Original Message----- > From: sou...@li... > [mailto:sou...@li...]On Behalf Of Gupta, Karan > Sent: Wednesday, April 19, 2006 5:00 PM > To: ML SJ Devel (E-mail) > Cc: ML SJ Users (E-mail) > Subject: [SourceJammer-devel] CommandCentral.getChecker() > > > Hi, > > I'm trying to figure out the use of the function: > CommandCentral.getChecker.. > > public SourceVersionChecker getChecker(java.io.File flDirectory) > throws IOException{ > > String strPath = moCurrentTreeNode.getPathAsString(); > > File flExternalProject = null; > > if (true == SourceJammerClient.getInstance().isExternalProjectInfoPathUsed()){ > flExternalProject = new > File(System.getProperty("user.home")+"/.sourcejammer.projectinfo/"+msUserName+strPath); > } > > return new SourceVersionChecker(flDirectory, msURL, msArchiveName, flExternalProject); > } > > In my case, the function SourceJammerClient.getInstance().isExternalProjectInfoPathUsed() > returns false, so the value of the flExternalProject going to the SourceVersionChecker > constructor is null. Whats the primary purpose of this parameter? > > I still have not been able to dig through all the code -- hoping someone here will be able to > help me out. > I'm developing a plugin for sourcejammer and I keep getting stuck here :-( > Please let me know if you need some more info. > > Thanks, > Karan > > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |