HADOOP-7528. Maven build fails in Windows. Contributed by Alejandro Abdelnur.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1155448 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a523fbdb6c
commit
0a2b40fad5
@ -67,9 +67,6 @@
|
|||||||
<requireJavaVersion>
|
<requireJavaVersion>
|
||||||
<version>1.6</version>
|
<version>1.6</version>
|
||||||
</requireJavaVersion>
|
</requireJavaVersion>
|
||||||
<requireOS>
|
|
||||||
<family>unix</family>
|
|
||||||
</requireOS>
|
|
||||||
</rules>
|
</rules>
|
||||||
</configuration>
|
</configuration>
|
||||||
<executions>
|
<executions>
|
||||||
|
@ -464,6 +464,9 @@ Trunk (unreleased changes)
|
|||||||
HADOOP-7523. Test org.apache.hadoop.fs.TestFilterFileSystem fails due to
|
HADOOP-7523. Test org.apache.hadoop.fs.TestFilterFileSystem fails due to
|
||||||
java.lang.NoSuchMethodException. (John Lee via tomwhite)
|
java.lang.NoSuchMethodException. (John Lee via tomwhite)
|
||||||
|
|
||||||
|
HADOOP-7528. Maven build fails in Windows. (Alejandro Abdelnur via
|
||||||
|
tomwhite)
|
||||||
|
|
||||||
Release 0.22.0 - Unreleased
|
Release 0.22.0 - Unreleased
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
@ -853,11 +853,17 @@
|
|||||||
<!-- Using Unix script to preserve symlinks -->
|
<!-- Using Unix script to preserve symlinks -->
|
||||||
<echo file="${project.build.directory}/tar-copynativelibs.sh">
|
<echo file="${project.build.directory}/tar-copynativelibs.sh">
|
||||||
|
|
||||||
|
which cygpath 2> /dev/null
|
||||||
|
if [ $? = 1 ]; then
|
||||||
|
BUILD_DIR="${project.build.directory}"
|
||||||
|
else
|
||||||
|
BUILD_DIR=`cygpath --unix '${project.build.directory}'`
|
||||||
|
fi
|
||||||
TAR='tar cf -'
|
TAR='tar cf -'
|
||||||
UNTAR='tar xfBp -'
|
UNTAR='tar xfBp -'
|
||||||
LIB_DIR="${project.build.directory}/native/target/usr/local/lib"
|
LIB_DIR="${BUILD_DIR}/native/target/usr/local/lib"
|
||||||
if [ -d $${LIB_DIR} ] ; then
|
if [ -d $${LIB_DIR} ] ; then
|
||||||
TARGET_DIR="${project.build.directory}/${project.artifactId}-${project.version}/lib/native/${build.platform}"
|
TARGET_DIR="${BUILD_DIR}/${project.artifactId}-${project.version}/lib/native/${build.platform}"
|
||||||
mkdir -p $${TARGET_DIR}
|
mkdir -p $${TARGET_DIR}
|
||||||
cd $${LIB_DIR}
|
cd $${LIB_DIR}
|
||||||
$$TAR *hadoop* | (cd $${TARGET_DIR}/; $$UNTAR)
|
$$TAR *hadoop* | (cd $${TARGET_DIR}/; $$UNTAR)
|
||||||
@ -881,11 +887,20 @@
|
|||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
<target>
|
<target>
|
||||||
<!-- Using Unix tar to preserve symlinks -->
|
<!-- Using Unix script to preserve symlinks -->
|
||||||
<exec executable="tar" dir="${project.build.directory}" failonerror="yes">
|
<echo file="${project.build.directory}/tar-maketar.sh">
|
||||||
<arg value="czf"/>
|
|
||||||
<arg value="${project.build.directory}/${project.artifactId}-${project.version}.tar.gz"/>
|
which cygpath 2> /dev/null
|
||||||
<arg value="${project.artifactId}-${project.version}"/>
|
if [ $? = 1 ]; then
|
||||||
|
BUILD_DIR="${project.build.directory}"
|
||||||
|
else
|
||||||
|
BUILD_DIR=`cygpath --unix '${project.build.directory}'`
|
||||||
|
fi
|
||||||
|
cd ${BUILD_DIR}
|
||||||
|
tar czf ${project.artifactId}-${project.version}.tar.gz ${project.artifactId}-${project.version}
|
||||||
|
</echo>
|
||||||
|
<exec executable="sh" dir="${project.build.directory}" failonerror="true">
|
||||||
|
<arg line="./tar-maketar.sh"/>
|
||||||
</exec>
|
</exec>
|
||||||
</target>
|
</target>
|
||||||
</configuration>
|
</configuration>
|
||||||
@ -946,11 +961,17 @@
|
|||||||
<!-- Using Unix script to preserve symlinks -->
|
<!-- Using Unix script to preserve symlinks -->
|
||||||
<echo file="${project.build.directory}/bintar-copynativelibs.sh">
|
<echo file="${project.build.directory}/bintar-copynativelibs.sh">
|
||||||
|
|
||||||
|
which cygpath 2> /dev/null
|
||||||
|
if [ $? = 1 ]; then
|
||||||
|
BUILD_DIR="${project.build.directory}"
|
||||||
|
else
|
||||||
|
BUILD_DIR=`cygpath --unix '${project.build.directory}'`
|
||||||
|
fi
|
||||||
TAR='tar cf -'
|
TAR='tar cf -'
|
||||||
UNTAR='tar xfBp -'
|
UNTAR='tar xfBp -'
|
||||||
LIB_DIR="${project.build.directory}/native/target/usr/local/lib"
|
LIB_DIR="${BUILD_DIR}/native/target/usr/local/lib"
|
||||||
if [ -d $${LIB_DIR} ] ; then
|
if [ -d $${LIB_DIR} ] ; then
|
||||||
TARGET_DIR="${project.build.directory}/${project.artifactId}-${project.version}-bin/lib"
|
TARGET_DIR="${BUILD_DIR}/${project.artifactId}-${project.version}-bin/lib"
|
||||||
mkdir -p $${TARGET_DIR}
|
mkdir -p $${TARGET_DIR}
|
||||||
cd $${LIB_DIR}
|
cd $${LIB_DIR}
|
||||||
$$TAR *hadoop* | (cd $${TARGET_DIR}/; $$UNTAR)
|
$$TAR *hadoop* | (cd $${TARGET_DIR}/; $$UNTAR)
|
||||||
@ -974,11 +995,20 @@
|
|||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
<target>
|
<target>
|
||||||
<!-- Using Unix tar to preserve symlinks -->
|
<!-- Using Unix script to preserve symlinks -->
|
||||||
<exec executable="tar" dir="${project.build.directory}" failonerror="yes">
|
<echo file="${project.build.directory}/bintar-maketar.sh">
|
||||||
<arg value="czf"/>
|
|
||||||
<arg value="${project.build.directory}/${project.artifactId}-${project.version}-bin.tar.gz"/>
|
which cygpath 2> /dev/null
|
||||||
<arg value="${project.artifactId}-${project.version}-bin"/>
|
if [ $? = 1 ]; then
|
||||||
|
BUILD_DIR="${project.build.directory}"
|
||||||
|
else
|
||||||
|
BUILD_DIR=`cygpath --unix '${project.build.directory}'`
|
||||||
|
fi
|
||||||
|
cd ${BUILD_DIR}
|
||||||
|
tar czf ${project.artifactId}-${project.version}-bin.tar.gz ${project.artifactId}-${project.version}-bin
|
||||||
|
</echo>
|
||||||
|
<exec executable="sh" dir="${project.build.directory}" failonerror="true">
|
||||||
|
<arg line="./bintar-maketar.sh"/>
|
||||||
</exec>
|
</exec>
|
||||||
</target>
|
</target>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
@ -462,9 +462,6 @@
|
|||||||
<requireJavaVersion>
|
<requireJavaVersion>
|
||||||
<version>1.6</version>
|
<version>1.6</version>
|
||||||
</requireJavaVersion>
|
</requireJavaVersion>
|
||||||
<requireOS>
|
|
||||||
<family>unix</family>
|
|
||||||
</requireOS>
|
|
||||||
</rules>
|
</rules>
|
||||||
</configuration>
|
</configuration>
|
||||||
<executions>
|
<executions>
|
||||||
@ -507,7 +504,7 @@
|
|||||||
<id>os.linux</id>
|
<id>os.linux</id>
|
||||||
<activation>
|
<activation>
|
||||||
<os>
|
<os>
|
||||||
<family>Linux</family>
|
<family>!Mac</family>
|
||||||
</os>
|
</os>
|
||||||
</activation>
|
</activation>
|
||||||
<properties>
|
<properties>
|
||||||
|
Loading…
Reference in New Issue
Block a user