diff options
author | Shawn Pearce <spearce@spearce.org> | 2013-05-08 17:34:47 -0700 |
---|---|---|
committer | Shawn Pearce <spearce@spearce.org> | 2013-05-08 17:59:34 -0700 |
commit | 36144e12d80c97c64840e0d744c7f64f7ca624c1 (patch) | |
tree | dd5eb71871d84fc16d56961d1af3bb96c73696ad /org.eclipse.jgit.ant.test | |
parent | e27993f1f881a0a4aad66679dc10fe0d749f6c83 (diff) | |
download | jgit-36144e12d80c97c64840e0d744c7f64f7ca624c1.tar.gz jgit-36144e12d80c97c64840e0d744c7f64f7ca624c1.zip |
Fix hardcoded use of target/trash in LocalDiskRepositoryTestCase
`pwd`/target is only valid in Maven Reactor builds where Maven
has moved into the project directory and created a target for
the build output. Most other build systems do not use "target"
and may not even perform a directory change between test suites.
Rewrite LocalDiskRepositoryTestCase's temporary directory code
to use the system specified location and create new unique names.
This prevents fixes between concurrently running tests and allows
the caller to specify the root using java.io.tmpdir.
Update the surefire command lines to use target within each project as
the system temporary directory during unit testing, preventing JGit's
own test suite from writing to /tmp or somewhere like C:\tmp.
Change-Id: I9e8431f6ddfc16fee89f677bcce67c99cfb56782
Diffstat (limited to 'org.eclipse.jgit.ant.test')
-rw-r--r-- | org.eclipse.jgit.ant.test/pom.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.jgit.ant.test/pom.xml b/org.eclipse.jgit.ant.test/pom.xml index ee51ec0432..f9204d9036 100644 --- a/org.eclipse.jgit.ant.test/pom.xml +++ b/org.eclipse.jgit.ant.test/pom.xml @@ -94,7 +94,7 @@ <plugin> <artifactId>maven-surefire-plugin</artifactId> <configuration> - <argLine>-Xmx256m -Dfile.encoding=UTF-8</argLine> + <argLine>-Xmx256m -Dfile.encoding=UTF-8 -Djava.io.tmpdir=${project.build.directory}</argLine> </configuration> </plugin> </plugins> |