diff --git a/COMPILING.txt b/COMPILING.txt index 800b87e1..4ce9498a 100644 --- a/COMPILING.txt +++ b/COMPILING.txt @@ -47,8 +47,10 @@ Furthermore, Sqoop's build can be instrumented with the following: Sqoop is compiled with ant. Type +ant -p+ to see the list of available targets. -Type +ant jar+ to compile java sources into jar files. Type +ant package+ to -produce a fully self-hosted build. This will appear in the +Type +ant+ to compile all java sources. You can then run Sqoop with +bin/sqoop+. + +If you want to build everything (including the documentation), type ++ant package+. This will appear in the +build/sqoop-(version)/+ directory. == Testing Sqoop diff --git a/bin/configure-sqoop b/bin/configure-sqoop index 6bb300d6..47e5d877 100755 --- a/bin/configure-sqoop +++ b/bin/configure-sqoop @@ -110,10 +110,11 @@ if [ -d "$SQOOP_HOME/build/ivy/lib/sqoop" ]; then done fi +add_to_classpath ${SQOOP_JAR_DIR} + export SQOOP_CLASSPATH export SQOOP_JAR_DIR export SQOOP_SHIM_DIR -export SQOOP_JAR=`ls -1 ${SQOOP_JAR_DIR}/sqoop-*.jar | head -n 1` export HADOOP_CLASSPATH="${SQOOP_CLASSPATH}:${HADOOP_CLASSPATH}" export HADOOP_HOME export HBASE_HOME diff --git a/bin/sqoop b/bin/sqoop index cf8f438d..343105a5 100755 --- a/bin/sqoop +++ b/bin/sqoop @@ -95,5 +95,4 @@ bin=`dirname ${prgm}` bin=`cd ${bin} && pwd` source ${bin}/configure-sqoop "${bin}" -${HADOOP_HOME}/bin/hadoop jar ${SQOOP_JAR} \ - com.cloudera.sqoop.Sqoop "$@" +exec ${HADOOP_HOME}/bin/hadoop com.cloudera.sqoop.Sqoop "$@" diff --git a/build.xml b/build.xml index 9d668ad9..7a1c6ab5 100644 --- a/build.xml +++ b/build.xml @@ -17,7 +17,7 @@ limitations under the License. --> - @@ -33,6 +33,7 @@ + @@ -45,18 +46,40 @@ + + + + + + + + + + + + + + + + + + + + + - + + + + + + + + + + + + + + + + @@ -689,7 +728,7 @@ - + @@ -704,7 +743,12 @@ - + + + + @@ -731,32 +775,97 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + + + + + + + + + + + + + + + + + + + + @@ -826,6 +935,8 @@ + + @@ -903,7 +1014,7 @@ file="${cobertura.home}/cobertura.jar" /> - diff --git a/ivy.xml b/ivy.xml index a7ab7f93..72a4aaf9 100644 --- a/ivy.xml +++ b/ivy.xml @@ -117,7 +117,7 @@ + conf="test->default"/> + + + + + + Sqoop test library + + + + + + + + + + + + + + + + + + + + + + diff --git a/ivy/sqoop.xml b/ivy/sqoop.xml new file mode 100644 index 00000000..7f455fc0 --- /dev/null +++ b/ivy/sqoop.xml @@ -0,0 +1,55 @@ + + + + + + + + Sqoop + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/scripts/write-version-info.sh b/src/scripts/write-version-info.sh index 11988944..a6e3fffe 100755 --- a/src/scripts/write-version-info.sh +++ b/src/scripts/write-version-info.sh @@ -29,7 +29,7 @@ buildroot=$1 version=$2 specifiedgithash=$3 -outputdir=${buildroot}/src/com.cloudera.sqoop +outputdir=${buildroot}/src/com/cloudera/sqoop outputfile=${outputdir}/SqoopVersion.java signature=$specifiedgithash