This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
public void setModules(String s) {
StringTokenizer st = new StringTokenizer(s,",");
HashSet<String> modSet = new HashSet<String>(); //This will guarantee that there will be no duplications
String fullMod = null;
while (st.hasMoreTokens()) {
fullMod=st.nextToken().trim();;
modSet.add( st.nextToken().trim() );
// if (DEBUG) System.out.println("ITEM IN MODLIST: "+fullMod);
int index = fullMod.indexOf(File.separator);
if (index >= 0) {
//Check that the mod doesn't have a slash
// (if it does, keep only what is to the left of the slash)
fullMod=fullMod.substring(0,index);
// if (DEBUG) System.out.println("CHANGED FULLMOD & it's NOW "+fullMod);
}
modSet.add( fullMod );
this.modules = new String[ modSet.size() ];
Iterator<String> it = modSet.iterator();