juneau-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jamesbog...@apache.org
Subject [juneau] branch master updated: Fix build failure.
Date Mon, 05 Mar 2018 14:26:38 GMT
This is an automated email from the ASF dual-hosted git repository.

jamesbognar pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/juneau.git


The following commit(s) were added to refs/heads/master by this push:
     new 2feaeb7  Fix build failure.
2feaeb7 is described below

commit 2feaeb70afb0138d048d77359be69a9fbf25b408
Author: JamesBognar <jamesbognar@apache.org>
AuthorDate: Mon Mar 5 09:26:30 2018 -0500

    Fix build failure.
---
 juneau-examples/juneau-examples-rest/examples.cfg                       | 2 +-
 .../org/apache/juneau/examples/rest/TestMultiPartFormPostsTest.java     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/juneau-examples/juneau-examples-rest/examples.cfg b/juneau-examples/juneau-examples-rest/examples.cfg
index 53bc085..62eaa8f 100755
--- a/juneau-examples/juneau-examples-rest/examples.cfg
+++ b/juneau-examples/juneau-examples-rest/examples.cfg
@@ -189,5 +189,5 @@ gitHub = https://github.com/apache/juneau/blob/master/juneau-examples/juneau-exa
 # TempDirResource properties
 #=======================================================================================================================
 [TempDirResource]
-dir = tmp
+dir = $S{java.io.tmpdir}
 
diff --git a/juneau-examples/juneau-examples-rest/src/test/java/org/apache/juneau/examples/rest/TestMultiPartFormPostsTest.java
b/juneau-examples/juneau-examples-rest/src/test/java/org/apache/juneau/examples/rest/TestMultiPartFormPostsTest.java
index a75c94e..55dc99b 100644
--- a/juneau-examples/juneau-examples-rest/src/test/java/org/apache/juneau/examples/rest/TestMultiPartFormPostsTest.java
+++ b/juneau-examples/juneau-examples-rest/src/test/java/org/apache/juneau/examples/rest/TestMultiPartFormPostsTest.java
@@ -33,7 +33,7 @@ public class TestMultiPartFormPostsTest extends RestTestcase {
 	@Test
 	public void testUpload() throws Exception {
 		RestClient client = SamplesMicroservice.DEFAULT_CLIENT;
-		File f = new File("tmp/testMultiPartFormPosts.txt");
+		File f = new File(new File(System.getProperty("java.io.tmpdir")), "testMultiPartFormPosts.txt");
 		f.deleteOnExit();
 		try (FileWriter fw = new FileWriter(f)) {
 			IOPipe.create(new StringReader("test!"), fw).run();

-- 
To stop receiving notification emails like this one, please contact
jamesbognar@apache.org.

Mime
View raw message