Author: olamy
Date: Wed Jan 2 15:16:20 2008
New Revision: 608281
URL: http://svn.apache.org/viewvc?rev=608281&view=rev
Log:
fix it which failed after a clean
Modified:
maven/plugins/trunk/maven-jar-plugin/src/it/MJAR-82/verify.bsh
Modified: maven/plugins/trunk/maven-jar-plugin/src/it/MJAR-82/verify.bsh
URL:
http://svn.apache.org/viewvc/maven/plugins/trunk/maven-jar-plugin/src/it/MJAR-82/verify.bsh?rev=608281&r1=608280&r2=608281&view=diff
==============================================================================
--- maven/plugins/trunk/maven-jar-plugin/src/it/MJAR-82/verify.bsh (original)
+++ maven/plugins/trunk/maven-jar-plugin/src/it/MJAR-82/verify.bsh Wed Jan 2
15:16:20 2008
@@ -23,6 +23,7 @@
import java.util.jar.*;
import org.codehaus.plexus.util.*;
import org.codehaus.plexus.util.cli.*;
+import org.codehaus.plexus.util.FileUtils;
boolean result = true;
@@ -43,9 +44,11 @@
}
String localRepoPath =
basedir.getParentFile().getParentFile().getParentFile().getPath() +
"/target/local-repo";
+ FileUtils.copyFile( artifact, new File( localRepoPath,
"MJAR-82-1.0-SNAPSHOT.jar" ) );
Commandline commandline = new Commandline();
commandline.setExecutable( "java" );
commandline.setWorkingDirectory( localRepoPath );
+ System.out.println(" localRepoPath " + localRepoPath );
commandline.createArg().setLine( "-jar MJAR-82-1.0-SNAPSHOT.jar" );
CommandLineUtils.StringStreamConsumer consumer = new
CommandLineUtils.StringStreamConsumer();
int res = CommandLineUtils.executeCommandLine( commandline, consumer,
consumer );