buf = new StringBuffer("cd "); buf.append(MiscUtilities.getParentOfPath(buffer.getPath())); buf.toString(); buf = new StringBuffer(gcc); if(wall) buf.append(" -Wall"); if(!link) buf.append(" -c"); if(!addopts.equals("")) { buf.append(" "); buf.append(addopts); } buf.append(" "); buf.append(source); buf.toString();