jvanzyl 2004/05/15 21:31:26
Modified: maven-mboot/src/bash deps
Added: maven-mboot/src/bash pluggy
Log:
o adding plugin artifact generation to mboot which will allow plugin
doco generation and plugin descriptor generation in the bootstrap.
these tools can be used as a maven plugin but i don't want to
have to do anything by hand for bootstrap. this will also allow
rapid refactoring of the plugin mechanism because the @tags won't
have to change in the plugins very often but we can generate
a different format by changing the generator.
Revision Changes Path
1.3 +2 -0 maven-components/maven-mboot/src/bash/deps
Index: deps
===================================================================
RCS file: /home/cvs/maven-components/maven-mboot/src/bash/deps,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- deps 8 Mar 2004 00:44:10 -0000 1.2
+++ deps 16 May 2004 04:31:26 -0000 1.3
@@ -4,3 +4,5 @@
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
1.1 maven-components/maven-mboot/src/bash/pluggy
Index: pluggy
===================================================================
#!/bin/sh
VERSION=1.0
usage ()
{
echo "usage: `basename $0` --mode=descriptor|xdoc --source=<source directory>
--destination=<destination directory>" >&2
echo "" >&2
echo " (ex: `basename $0` --mode=descriptor --source=src/main/java
--destination=target)" >&2
exit 1
}
dir="target/src/java"
mode="descriptor"
while [ $# -gt 0 ]; do
case $1 in
--help)
usage
;;
-v)
verbose=-v
;;
--destination*)
if echo $1 | grep -q '=' ; then
destination=`echo $1 | sed 's/^--destination=//'`
else
destination=$2
shift
fi
;;
--source*)
if echo $1 | grep -q '=' ; then
source=`echo $1 | sed 's/^--source=//'`
else
source=$2
shift
fi
;;
--mode*)
if echo $1 | grep -q '=' ; then
mode=`echo $1 | sed 's/^--mode=//'`
else
mode=$2
shift
fi
;;
esac
shift
done
export MBOOT_HOME=`dirname $0`
. ${MBOOT_HOME}/maven.functions
[ ! -d $destination ] && mkdir -p $destination
findAndSetMavenRepoLocal
CP=$repoLocal/maven/jars/maven-plugin-2.0-SNAPSHOT.jar:$repoLocal/qdox/jars/qdox-1.2.jar:$repoLocal/xstream/jars/xstream-1.0-SNAPSHOT.jar:$repoLocal/xpp3/jars/xpp3-1.1.3.3.jar
if $cygwin; then
CP=`cygpath -pw "$CP"`
fi
java -classpath "$CP" org.apache.maven.plugin.generator.Main $mode "$source"
"$destination"
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]