if (set.getType() == null || !"framework".equals(set.getType().getValue()) ||
if (set.getType() == null && !"framework".equals(set.getType().getValue()) &&
    public String[] addLibrarySets(CCTask task, LibrarySet[] libsets,            Vector preargs, Vector midargs, Vector endargs) {        Vector libnames = new Vector();        super.addLibrarySets(task, libsets, preargs, midargs, endargs);        LibraryTypeEnum previousLibraryType = null;        for (int i = 0; i < libsets.length; i++) {            LibrarySet set = libsets[i];            File libdir = set.getDir(null);            String[] libs = set.getLibs();            if (libdir != null) {                    if (set.getType() != null &&                                    "framework".equals(set.getType().getValue()) &&                                                isDarwin()) {                            endargs.addElement("-F" + libdir.getAbsolutePath());                    } else {                            endargs.addElement("-L" + libdir.getAbsolutePath());                    }            }            //            //  if there has been a change of library type            //            if (set.getType() != previousLibraryType) {                    if (set.getType() != null && "static".equals(set.getType().getValue())) {            	        // FREEHEP                	    if (!isDarwin()) {                            endargs.addElement("-Bstatic");                            previousLibraryType = set.getType();                        }                    } else {                            if (set.getType() == null ||                                            !"framework".equals(set.getType().getValue()) ||                                                        !isDarwin()) {                                    endargs.addElement("-Bdynamic");                                    previousLibraryType = set.getType();                            }                    }            }            StringBuffer buf = new StringBuffer("-l");            if (set.getType() != null &&                            "framework".equals(set.getType().getValue()) &&                                        isDarwin()) {                    buf.setLength(0);                    buf.append("-framework ");            }            int initialLength = buf.length();            for (int j = 0; j < libs.length; j++) {                //                //  reset the buffer to just "-l"                //                buf.setLength(initialLength);                //                //  add the library name                buf.append(libs[j]);                libnames.addElement(libs[j]);                //                //  add the argument to the list                endargs.addElement(buf.toString());            }        }        String rc[] = new String[libnames.size()];        for (int i = 0; i < libnames.size(); i++) {            rc[i] = (String) libnames.elementAt(i);        }        return rc;    }