*******************************************************************/
package org.aspectj.ajde.core;
+import java.io.File;
import java.util.List;
import java.util.Map;
import java.util.Set;
/**
* @return a list of those files to include in the build
*/
- public List /* String */getProjectSourceFiles();
+ public List<String> getProjectSourceFiles();
/**
* @return a list of those files that should be used to configure a build
*/
- public List /* String */getProjectXmlConfigFiles();
+ public List<String> getProjectXmlConfigFiles();
/**
* Return a subset of those files we'd get on getProjectSourceFiles() - the subset that have changed since the last build. If
* @return the set of input path elements for this compilation. Set members should be of the type java.io.File. An empty set or
* null is acceptable for this option. From -inpath
*/
- public Set /* java.io.File */getInpath();
+ public Set<File> getInpath();
/**
* @return the output jar file for the compilation results. Return null to leave classfiles unjar'd in output directory From
* @return the set of aspect jar files to be used for the compilation. Returning null or an empty set disables this option. Set
* members should be of type java.io.File. From -aspectpath
*/
- public Set /* java.io.File */getAspectPath();
+ public Set<File> getAspectPath();
/**
* Get the set of non-Java resources for this compilation. Set members should be of type java.io.File. An empty set or null is
+ compilerConfig.getNonStandardOptions() + "\n-> javaoptions:" + formatMap(compilerConfig.getJavaOptionsMap());
}
- private String formatCollection(Collection options) {
+ private String formatCollection(Collection<?> options) {
if (options == null) {
return "<default>";
}
}
StringBuffer formattedOptions = new StringBuffer();
- Iterator it = options.iterator();
+ Iterator<?> it = options.iterator();
while (it.hasNext()) {
String o = it.next().toString();
if (formattedOptions.length() > 0) {
if (configFile.exists() && configFile.isFile()) {
args = new String[] { "@" + configFile.getAbsolutePath() };
} else {
- List l = compilerConfig.getProjectSourceFiles();
+ List<String> l = compilerConfig.getProjectSourceFiles();
if (l == null) {
return null;
}
- List xmlfiles = compilerConfig.getProjectXmlConfigFiles();
+ List<String> xmlfiles = compilerConfig.getProjectXmlConfigFiles();
if (xmlfiles != null && !xmlfiles.isEmpty()) {
args = new String[l.size() + xmlfiles.size() + 1];
// TODO speedup
String propcp = compilerConfig.getClasspath();
if (propcp != null && propcp.length() != 0) {
StringTokenizer st = new StringTokenizer(propcp, File.pathSeparator);
- List configClasspath = config.getClasspath();
- ArrayList toAdd = new ArrayList();
+ List<String> configClasspath = config.getClasspath();
+ ArrayList<String> toAdd = new ArrayList<String>();
while (st.hasMoreTokens()) {
String entry = st.nextToken();
if (!configClasspath.contains(entry)) {
}
}
if (0 < toAdd.size()) {
- ArrayList both = new ArrayList(configClasspath.size() + toAdd.size());
+ ArrayList<String> both = new ArrayList<String>(configClasspath.size() + toAdd.size());
both.addAll(configClasspath);
both.addAll(toAdd);
config.setClasspath(both);
// Break a string into a string array of non-standard options.
// Allows for one option to include a ' '. i.e. assuming it has been quoted, it
// won't accidentally get treated as a pair of options (can be needed for xlint props file option)
- List tokens = new ArrayList();
+ List<String> tokens = new ArrayList<String>();
int ind = nonStdOptions.indexOf('\"');
int ind2 = nonStdOptions.indexOf('\"', ind + 1);
if ((ind > -1) && (ind2 > -1)) { // dont tokenize within double quotes
}
/** Local helper method for splitting option strings */
- private List tokenizeString(String str) {
- List tokens = new ArrayList();
+ private List<String> tokenizeString(String str) {
+ List<String> tokens = new ArrayList<String>();
StringTokenizer tok = new StringTokenizer(str);
while (tok.hasMoreTokens()) {
tokens.add(tok.nextToken());