[jboss-cvs] JBossAS SVN: r112265 - branches/JBPAPP_5_1/testsuite/src/main/org/jboss/test/scripts/test.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Sep 27 08:15:29 EDT 2011
Author: rsvoboda at redhat.com
Date: 2011-09-27 08:15:29 -0400 (Tue, 27 Sep 2011)
New Revision: 112265
Modified:
branches/JBPAPP_5_1/testsuite/src/main/org/jboss/test/scripts/test/PasswordToolTestCase.java
Log:
JBPAPP-7290 -- PasswordToolTestCase -- using absolute path in startPasswordTool method
Modified: branches/JBPAPP_5_1/testsuite/src/main/org/jboss/test/scripts/test/PasswordToolTestCase.java
===================================================================
--- branches/JBPAPP_5_1/testsuite/src/main/org/jboss/test/scripts/test/PasswordToolTestCase.java 2011-09-26 13:59:08 UTC (rev 112264)
+++ branches/JBPAPP_5_1/testsuite/src/main/org/jboss/test/scripts/test/PasswordToolTestCase.java 2011-09-27 12:15:29 UTC (rev 112265)
@@ -333,6 +333,7 @@
private void encryptKeystorePassword(String password) throws Exception
{
+ System.out.println("encryptKeystorePassword invoked");
Process p = startPasswordTool("0 " + password + " SaltyStringy 208 5");
BufferedReader stdout = new BufferedReader(new InputStreamReader(p.getInputStream()));
String s;
@@ -340,6 +341,8 @@
boolean found = false;
while ((s = stdout.readLine()) != null)
{
+ System.out.println("output -- " + s);
+
if (s.indexOf("Keystore Password encrypted into") != -1)
found = true;
}
@@ -405,7 +408,8 @@
*/
private Process startPasswordTool(String stdin) throws IOException
{
- Process p = Runtime.getRuntime().exec(isWindows() ? new String[] { "cmd", "/c", "password_tool" } : new String[] { "./password_tool.sh" }, null, WORKING_DIR);
+ System.out.println("--------- " + stdin + " --------- ";
+ Process p = Runtime.getRuntime().exec(isWindows() ? new String[] { "cmd", "/c", "password_tool" } : new String[] { WORKING_DIR + "/password_tool.sh" }, null, WORKING_DIR);
OutputStream stdinStream = p.getOutputStream();
stdinStream.write(stdin.getBytes());
stdinStream.close();
More information about the jboss-cvs-commits
mailing list