Skip to content

Commit

Permalink
Changing location of tmp folder, not assuming we are on a unix system…
Browse files Browse the repository at this point in the history
… -- see #266
  • Loading branch information
enridaga committed Jun 16, 2022
1 parent 711c51d commit 754b58d
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.io.File;
import java.io.IOException;
import java.net.URL;
import java.util.Iterator;
Expand Down Expand Up @@ -161,7 +162,10 @@ public void testWithOnDiskGraph1 () throws IOException, TriplifierHTTPException
public void testWithOnDiskGraph2 () throws IOException, TriplifierHTTPException {
Properties properties = new Properties();
properties.setProperty("namespace", "http://www.example.org#");
properties.setProperty("ondisk", "/tmp");
//properties.setProperty("ondisk", "/tmp");
File tmp = new File(getClass().getClassLoader().getResource(".").getPath(), "/tmp/");
tmp.mkdirs();
properties.setProperty("ondisk", tmp.getAbsolutePath());
URL csv1 = getClass().getClassLoader().getResource("./test1.csv");
properties.setProperty(IRIArgument.LOCATION.toString(), csv1.toString());
FacadeXGraphBuilder b = new BaseFacadeXGraphBuilder(csv1.toString(), properties);
Expand Down

0 comments on commit 754b58d

Please sign in to comment.