Permalink
Browse files

Modified the path in the Suite and removed the Vector usage.

Signed-off-by: joewalnes <joe@truemesh.com>
  • Loading branch information...
1 parent 66721c9 commit 477bbf3449e14b44e2d8c5159f9b6003a9f76405 @rburton rburton committed with joewalnes Sep 6, 2009
View
@@ -22,7 +22,7 @@
<module>sitemesh-tools-benchmark</module>
<module>sitemesh-examples-hellowebapp</module>
</modules>
-
+
<developers>
<developer>
<id>joewalnes</id>
@@ -14,6 +14,8 @@
import java.io.File;
import java.io.IOException;
import java.util.Vector;
+import java.util.List;
+import java.util.LinkedList;
/**
* @author Richard L. Burton III - SmartCode LLC
@@ -36,13 +38,13 @@
/**
* The files to decorate with SiteMesh.
*/
- private Vector<FileSet> resources = new Vector<FileSet>();
+ private List<FileSet> resources = new LinkedList<FileSet>();
@Override
public void execute() throws BuildException {
verify();
- Vector<FileSet> implicitFileSet = getImplicitAndExplicitFileSet();
+ List<FileSet> implicitFileSet = getImplicitAndExplicitFileSet();
processFileSet(implicitFileSet);
}
@@ -51,7 +53,7 @@ public void execute() throws BuildException {
*
* @return The FileSets to process.
*/
- protected Vector<FileSet> getImplicitAndExplicitFileSet() {
+ protected List<FileSet> getImplicitAndExplicitFileSet() {
Vector<FileSet> vfss = new Vector<FileSet>();
FileSet fs = (FileSet) getImplicitFileSet().clone();
@@ -87,7 +89,7 @@ protected void verify() throws BuildException {
* @param filesets The set of files to be processed.
* @throws BuildException When there's a problem decorating the files.
*/
- protected void processFileSet(Vector<FileSet> filesets) {
+ protected void processFileSet(List<FileSet> filesets) {
for (FileSet fileset : filesets) {
DirectoryScanner directoryScanner = fileset.getDirectoryScanner(getProject());
directoryScanner.setBasedir(fileset.getDir(getProject()));
@@ -35,7 +35,7 @@
public class SiteMeshTaskTestSuite {
public static Test suite() {
- final File baseDir = new File("sitemesh/src/test/java/org/sitemesh/ant/testproject");
+ final File baseDir = new File("src/test/java/org/sitemesh/ant/testproject");
final FileFilter fileFilter = new FileFilter() {
public boolean accept(File file) {

0 comments on commit 477bbf3

Please sign in to comment.