View Javadoc
1   package org.codehaus.mojo.natives.linker;
2   
3   import java.io.File;
4   
5   import org.codehaus.mojo.natives.NativeBuildException;
6   import org.codehaus.mojo.natives.util.CommandLineUtil;
7   import org.codehaus.plexus.logging.AbstractLogEnabled;
8   import org.codehaus.plexus.util.cli.Commandline;
9   
10  public class DefaultRanlib
11      extends AbstractLogEnabled
12      implements Ranlib
13  {
14      public void run( File file )
15          throws NativeBuildException
16      {
17          Commandline cl = new Commandline();
18  
19          cl.setExecutable( "ranlib" );
20  
21          cl.createArg().setValue( file.getAbsolutePath() );
22  
23          CommandLineUtil.execute( cl, this.getLogger() );
24      }
25  }