Skip to content

Commit

Permalink
Fix symlink and line endings for Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
khoobks committed Mar 21, 2016
1 parent 640dcb9 commit f8c2681
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions build-java.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@

<jar jarfile="${dist}/Python-Java-testdaemon-${python-version}-b${release}.jar" basedir="${build}/java-testdaemon"/>

<symlink
link="${dist}/python-java-testdaemon.jar"
resource="${dist}/Python-Java-testdaemon-${python-version}-b${release}.jar"
<copy
tofile="${dist}/python-java-testdaemon.jar"
file="${dist}/Python-Java-testdaemon-${python-version}-b${release}.jar"
overwrite="true" />
</target>

Expand Down
2 changes: 1 addition & 1 deletion tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def runAsJava(test_dir, main_code, extra_code=None, run_in_function=False, args=
while True:
try:
line = _jvm.stdout.readline().decode("utf-8")
if line == ".\n":
if line == ".{0}".format(os.linesep):
break
else:
out += line
Expand Down

0 comments on commit f8c2681

Please sign in to comment.