4.0.0
flume-ng-sources
org.apache.flume
1.8.0-mapr-1803
org.apache.flume.flume-ng-sources
flume-scribe-source
Flume Scribe Source
compileThrift
false
org.apache.maven.plugins
maven-antrun-plugin
compileThrift
generate-sources
run
LICENSE=src/main/thrift/aslv2
THRIFT_DIR=src/main/thrift
JAVA_DIR=target/generated-sources/thrift
mkdir -p $JAVA_DIR 2> /dev/null
JSTATUS=$?
if [ $JSTATUS -ne 0 ] ; then
echo "Could not create $JAVA_DIR. Will not generate thrift files."
exit $JSTATUS
fi
for THRIFT_FILE in `ls $THRIFT_DIR/*.thrift 2> /dev/null`
do
thrift --gen java:hashcode -o $JAVA_DIR $THRIFT_FILE
done
SRC_DIR=$JAVA_DIR/gen-java/org/apache/flume/source/scribe
DEST_DIR=src/main/java/org/apache/flume/source/scribe
if [ ! -d $DEST_DIR ] ; then
mkdir $DEST_DIR 2> /dev/null
STATUS=$?
if [ $STATUS -ne 0 ] ; then
echo "Could not create $DEST_DIR. Will not generate thrift files."
exit $STATUS
fi
fi
for JAVA_FILE in `ls $SRC_DIR/*.java 2> /dev/null`
do
echo $JAVA_FILE
cat $LICENSE > $JAVA_FILE.tmp
cat $JAVA_FILE >> $JAVA_FILE.tmp
mv $JAVA_FILE.tmp $JAVA_FILE
cp $JAVA_FILE $DEST_DIR
done
rm -rf $JAVA_DIR
nonThrift
true
org.apache.maven.plugins
maven-compiler-plugin
${mvn-compiler-plugin.version}
1.6
**/generated-sources/**
org.apache.flume
flume-ng-sdk
org.apache.flume
flume-ng-configuration
org.apache.flume
flume-ng-core
org.slf4j
slf4j-api
junit
junit
test
org.slf4j
slf4j-log4j12
test
org.apache.thrift
libthrift
org.mortbay.jetty
servlet-api