o some changes to make things work on windows, shouldn't have bothered

with files at all.


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@162871 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jason van Zyl 2004-07-26 22:02:58 +00:00
parent 65a5fee935
commit 058a53422a
4 changed files with 147 additions and 152 deletions

View File

@ -8,6 +8,4 @@ mkdir ${buildDir}
javac -d ${buildDir} @sources.txt
cp src/main/resources/mboot.deps ${buildDir}/mboot.deps
( cd ${buildDir} ; jar -cf ../mboot.jar -m ../manifest.txt * )

Binary file not shown.

View File

@ -12,7 +12,6 @@
import java.io.IOException;
import java.io.InputStream;
import java.io.Serializable;
import java.io.StringWriter;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Arrays;
@ -38,6 +37,37 @@ public class MBoot
// maven-plugin
// maven-plugins
// ----------------------------------------------------------------------
//
// ----------------------------------------------------------------------
String[] deps = new String[]
{
"junit/jars/junit-3.8.1.jar",
"surefire/jars/surefire-booter-1.1.jar",
"surefire/jars/surefire-1.1.jar",
"modello/jars/modello-1.0-SNAPSHOT.jar",
"xpp3/jars/xpp3-1.1.3.3.jar",
"xstream/jars/xstream-1.0-SNAPSHOT.jar",
"qdox/jars/qdox-1.2.jar",
"maven/jars/maven-plugin-2.0-SNAPSHOT.jar"
};
String[] builds = new String[]
{
"maven-model",
"maven-plugin",
"maven-core",
"maven-plugins/maven-clean-plugin",
"maven-plugins/maven-compiler-plugin",
"maven-plugins/maven-install-plugin",
"maven-plugins/maven-jar-plugin",
"maven-plugins/maven-plugin-plugin",
"maven-plugins/maven-pom-plugin",
"maven-plugins/maven-resources-plugin",
"maven-plugins/maven-surefire-plugin"
};
// ----------------------------------------------------------------------
// Standard locations for resources in Maven projects.
// ----------------------------------------------------------------------
@ -101,21 +131,9 @@ public void run( String[] args )
checkMBootDeps();
File instructions = new File( basedir, "mboot.txt" );
if ( instructions.exists() )
for ( int i = 0; i < builds.length; i++ )
{
FileInputStream is = new FileInputStream( instructions );
StringWriter w = new StringWriter();
IOUtil.copy( is, w );
String[] deps = StringUtils.split( w.toString(), "\n" );
for ( int i = 0; i < deps.length; i++ )
{
String directory = new File( basedir, deps[i] ).getAbsolutePath();
String directory = new File( basedir, builds[i] ).getAbsolutePath();
System.out.println( "Building project in " + directory + " ..." );
@ -246,11 +264,6 @@ public void run( String[] args )
FileUtils.copyFileToDirectory( f.getAbsolutePath(), plugins );
}
}
else
{
buildProject( basedir );
}
}
public void buildProject( String basedir )
throws Exception
@ -442,14 +455,6 @@ private void checkMBootDeps()
{
System.out.println( "Checking for MBoot's dependencies ..." );
InputStream is = MBoot.class.getClassLoader().getResourceAsStream( "mboot.deps" );
StringWriter w = new StringWriter();
IOUtil.copy( is, w );
String[] deps = StringUtils.split( w.toString(), "\n" );
mbootDependencies = Arrays.asList( deps );
downloader.downloadDependencies( mbootDependencies );

View File

@ -1,8 +0,0 @@
junit/jars/junit-3.8.1.jar
surefire/jars/surefire-booter-1.1.jar
surefire/jars/surefire-1.1.jar
modello/jars/modello-1.0-SNAPSHOT.jar
xpp3/jars/xpp3-1.1.3.3.jar
xstream/jars/xstream-1.0-SNAPSHOT.jar
qdox/jars/qdox-1.2.jar
maven/jars/maven-plugin-2.0-SNAPSHOT.jar