You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by pr...@apache.org on 2006/03/15 12:13:34 UTC

svn commit: r386046 - /webservices/axis/trunk/c/tools/org/apache/axis/tools/asc4Ant/asc4Ant.java

Author: prestonf
Date: Wed Mar 15 03:13:30 2006
New Revision: 386046

URL: http://svn.apache.org/viewcvs?rev=386046&view=rev
Log:
Modifications to remove debug output.

Modified:
    webservices/axis/trunk/c/tools/org/apache/axis/tools/asc4Ant/asc4Ant.java

Modified: webservices/axis/trunk/c/tools/org/apache/axis/tools/asc4Ant/asc4Ant.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tools/org/apache/axis/tools/asc4Ant/asc4Ant.java?rev=386046&r1=386045&r2=386046&view=diff
==============================================================================
--- webservices/axis/trunk/c/tools/org/apache/axis/tools/asc4Ant/asc4Ant.java (original)
+++ webservices/axis/trunk/c/tools/org/apache/axis/tools/asc4Ant/asc4Ant.java Wed Mar 15 03:13:30 2006
@@ -29,28 +29,31 @@
 	        {
 	            if( new File( filename).exists())
 	            {
-    	                String osName = System.getProperty("os.name");
-	                String gpgCommand = "gpg --no-secmem-warning --yes --armor --passphrase-fd 0 --output " + filename + ".asc --detach-sig " + filename + " < " + passwordFile;
+                    String osName = System.getProperty("os.name");
+	                String gpgCommand = "gpg --no-secmem-warning" +           // No Memory Warnings.
+                                           " --yes --quiet" +                 // Answer 'yes' to questions and keep it quiet!
+                                           " --armor" +                       // Armour required.
+                                           " --passphrase-fd 0" +             // Pick-up an input from the input pipe (option '0').
+                                           " --output " + filename + ".asc" + // Output filename.
+                                           " --detach-sig " + filename +      // Input filename.
+                                           " < " + passwordFile;              // Piped input file.
 	                Runtime rt = Runtime.getRuntime();
-                        Process proc = null;
+                    Process proc = null;
 	
 	                if( osName.startsWith( "Windows"))
 	                {
-                            String cmdLine = "cmd /C " + gpgCommand;
+                        String cmdLine = "cmd /C " + gpgCommand;
 
 	                    proc = rt.exec( cmdLine);
 	                }
-                        else
-                        {
+                    else
+                    {
 	                    String [] cmdLine = {"/bin/sh", "-c", gpgCommand};
 
 	                    proc = rt.exec( cmdLine);
 	                }
-	            
 		            
-                        proc.waitFor();
-
-                        System.out.println( "Done");
+                    proc.waitFor();
 	            }
 	        }
 	        catch( Throwable t)