ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-ant/proposal/myrmidon/src/java/org/apache/antlib/security SignJar.java
Date Sun, 27 Jan 2002 00:17:51 GMT
donaldp     02/01/26 16:17:51

  Modified:    proposal/myrmidon/src/java/org/apache/antlib/security
                        SignJar.java
  Log:
  Made sure signjar was actually executing command
  
  Fixing a audit violation
  
  Revision  Changes    Path
  1.3       +3 -3      jakarta-ant/proposal/myrmidon/src/java/org/apache/antlib/security/SignJar.java
  
  Index: SignJar.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/myrmidon/src/java/org/apache/antlib/security/SignJar.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- SignJar.java	26 Jan 2002 02:08:45 -0000	1.2
  +++ SignJar.java	27 Jan 2002 00:17:51 -0000	1.3
  @@ -150,7 +150,8 @@
               //Assume null != filesets
   
               // deal with the filesets
  -            for( int i = 0; i < m_filesets.size(); i++ )
  +            final int size = m_filesets.size();
  +            for( int i = 0; i < size; i++ )
               {
                   final FileSet fileSet = (FileSet)m_filesets.get( i );
                   final DirectoryScanner scanner = ScannerUtil.getDirectoryScanner( fileSet
);
  @@ -288,14 +289,13 @@
               return;
           }
   
  -        final StringBuffer sb = new StringBuffer();
  -
           final String message = "Signing Jar : " + jarSource.getAbsolutePath();
           getLogger().info( message );
   
           final Commandline cmd = buildCommand( jarTarget, jarSource );
           final Execute2 exe = new Execute2();
           setupLogger( exe );
  +        exe.setCommandline( cmd.getCommandline() );
           try
           {
               exe.execute();
  
  
  

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message