/** * Gets the current settings of this object. * * @return an array of strings suitable for passing to setOptions */ @Override public String[] getOptions() { Vector<String> result; result = new Vector<String>(); result.add("-W"); result.add(getClassname()); if (!getUseStars()) { result.add("-nostars"); } if (getDir().length() != 0) { result.add("-dir"); result.add(getDir()); } if (getSilent()) { result.add("-silent"); } return result.toArray(new String[result.size()]); }
/** * Gets the current settings of this object. * * @return an array of strings suitable for passing to setOptions */ @Override public String[] getOptions() { Vector<String> result; result = new Vector<String>(); result.add("-W"); result.add(getClassname()); if (!getUseStars()) { result.add("-nostars"); } if (getDir().length() != 0) { result.add("-dir"); result.add(getDir()); } if (getSilent()) { result.add("-silent"); } return result.toArray(new String[result.size()]); }
/** * generates either the plain Javadoc (if no filename specified) or the * updated file (if a filename is specified). The start and end tag for the * global info have to be specified in the file in the latter case. * * @return either the plain Javadoc or the modified file * @throws Exception in case the generation fails */ public String generate() throws Exception { if (getDir().length() == 0) { return generateJavadoc(); } else { return updateJavadoc(); } }
/** * generates either the plain Javadoc (if no filename specified) or the * updated file (if a filename is specified). The start and end tag for the * global info have to be specified in the file in the latter case. * * @return either the plain Javadoc or the modified file * @throws Exception in case the generation fails */ public String generate() throws Exception { if (getDir().length() == 0) { return generateJavadoc(); } else { return updateJavadoc(); } }
file = new File(getDir() + "/" + getClassname().replaceAll("\\.", "/") + ".java"); if (!file.exists()) {
file = new File(getDir() + "/" + getClassname().replaceAll("\\.", "/") + ".java"); if (!file.exists()) {
if (javadoc.getDir().length() == 0) { throw new Exception("No directory provided!");
if (javadoc.getDir().length() == 0) { throw new Exception("No directory provided!");