Fix lack of URL decoding when deploying #437

Merged
merged 1 commit into from Jan 26, 2016

Projects

None yet

2 participants

@ThomasJClark
Contributor

This was causing problems when the full path of the local GRIP jar has spaces in it.

Closes #435

@ThomasJClark ThomasJClark Fix lack of URL decoding when deploying
This was causing problems when the full path of the local GRIP jar has
spaces in it.

Closes #435
02c4a21
@JLLeitschuh JLLeitschuh commented on the diff Jan 26, 2016
ui/src/main/java/edu/wpi/grip/ui/DeployController.java
@@ -160,7 +162,8 @@ private void deploy(String address, String user, String password, String javaHom
setStatusAsync("Running GRIP", false);
Session session = ssh.startSession();
session.allocateDefaultPTY();
- Session.Command cmd = session.exec(javaHome + "/bin/java -jar " + deployDir + "/" + GRIP_JAR + " " + deployDir + "/" + PROJECT_FILE);
+ Session.Command cmd = session.exec(javaHome + "/bin/java -jar " + deployDir + "/" + GRIP_JAR + "' '"
+ + deployDir + "/" + PROJECT_FILE + "'");
@JLLeitschuh
JLLeitschuh Jan 26, 2016 Member

Shouldn't we support uploading multiple project files and allowing the user to pick which one that they want to use?

@JLLeitschuh JLLeitschuh merged commit 172a4e5 into WPIRoboticsProjects:master Jan 26, 2016

2 of 5 checks passed

codecov/patch CI failed: coverage not measured fully.
Details
codecov/project CI failed: coverage not measured fully.
Details
continuous-integration/appveyor/pr AppVeyor build cancelled
Details
codacy/pr Good work! The project quality is stable.
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment