Browse Source

Spelling, blank lines

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277831 13f79535-47bb-0310-9956-ffa450edef68
master
Matthew Jason Benson 20 years ago
parent
commit
9207c3cd53
1 changed files with 7 additions and 3 deletions
  1. +7
    -3
      src/testcases/org/apache/tools/ant/DirectoryScannerTest.java

+ 7
- 3
src/testcases/org/apache/tools/ant/DirectoryScannerTest.java View File

@@ -221,12 +221,11 @@ public class DirectoryScannerTest extends BuildFileTest {
} }


/** /**
* Test case for setFollowLinks() and associated funtionality.
* Only supports test on linux, at the moment because Java has
* Test case for setFollowLinks() and associated functionality.
* Only supports test on Linux at the moment because Java has
* no real notion of symlinks built in, so an os-specfic call * no real notion of symlinks built in, so an os-specfic call
* to Runtime.exec() must be made to create a link to test against. * to Runtime.exec() must be made to create a link to test against.
*/ */

public void testSetFollowLinks() throws IOException { public void testSetFollowLinks() throws IOException {
if (supportsSymlinks) { if (supportsSymlinks) {
File linkFile = new File(System.getProperty("root"), "src/main/org/apache/tools/ThisIsALink"); File linkFile = new File(System.getProperty("root"), "src/main/org/apache/tools/ThisIsALink");
@@ -316,6 +315,7 @@ public class DirectoryScannerTest extends BuildFileTest {
} }
} }
} }

public void testExcludeOneFile() { public void testExcludeOneFile() {
DirectoryScanner ds = new DirectoryScanner(); DirectoryScanner ds = new DirectoryScanner();
ds.setBasedir(new File(getProject().getBaseDir(), "tmp")); ds.setBasedir(new File(getProject().getBaseDir(), "tmp"));
@@ -329,6 +329,7 @@ public class DirectoryScannerTest extends BuildFileTest {
compareFiles(ds, new String[] {"alpha/beta/gamma/gamma.xml"}, compareFiles(ds, new String[] {"alpha/beta/gamma/gamma.xml"},
new String[] {}); new String[] {});
} }

public void testExcludeHasPrecedence() { public void testExcludeHasPrecedence() {
DirectoryScanner ds = new DirectoryScanner(); DirectoryScanner ds = new DirectoryScanner();
ds.setBasedir(new File(getProject().getBaseDir(), "tmp")); ds.setBasedir(new File(getProject().getBaseDir(), "tmp"));
@@ -343,6 +344,7 @@ public class DirectoryScannerTest extends BuildFileTest {
new String[] {}); new String[] {});


} }

public void testAlternateIncludeExclude() { public void testAlternateIncludeExclude() {
DirectoryScanner ds = new DirectoryScanner(); DirectoryScanner ds = new DirectoryScanner();
ds.setBasedir(new File(getProject().getBaseDir(), "tmp")); ds.setBasedir(new File(getProject().getBaseDir(), "tmp"));
@@ -358,6 +360,7 @@ public class DirectoryScannerTest extends BuildFileTest {
new String[] {"alpha"}); new String[] {"alpha"});


} }

public void testAlternateExcludeInclude() { public void testAlternateExcludeInclude() {
DirectoryScanner ds = new DirectoryScanner(); DirectoryScanner ds = new DirectoryScanner();
ds.setBasedir(new File(getProject().getBaseDir(), "tmp")); ds.setBasedir(new File(getProject().getBaseDir(), "tmp"));
@@ -373,6 +376,7 @@ public class DirectoryScannerTest extends BuildFileTest {
new String[] {}); new String[] {});


} }

/** /**
* Test inspired by Bug#1415. * Test inspired by Bug#1415.
*/ */


Loading…
Cancel
Save