mirror of
https://github.com/apache/sqoop.git
synced 2025-05-08 03:40:00 +08:00
SQOOP-958: Fix white space handling when generating version info
(Abraham Elmahrek via Kate Ting)
This commit is contained in:
parent
3d9aaa0d0d
commit
b94c22919e
@ -59,7 +59,7 @@ limitations under the License.
|
|||||||
<target>
|
<target>
|
||||||
<mkdir dir="${project.build.directory}/generated-sources/java"/>
|
<mkdir dir="${project.build.directory}/generated-sources/java"/>
|
||||||
<exec executable="sh">
|
<exec executable="sh">
|
||||||
<arg line="${basedir}/src/saveVersion.sh ${project.version} ${project.build.directory}/generated-sources/java"/>
|
<arg line="'${basedir}/src/saveVersion.sh' ${project.version} '${project.build.directory}/generated-sources/java'"/>
|
||||||
</exec>
|
</exec>
|
||||||
</target>
|
</target>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
@ -29,7 +29,7 @@ date=`date`
|
|||||||
cwd=`pwd`
|
cwd=`pwd`
|
||||||
|
|
||||||
# Exit if target file already exists
|
# Exit if target file already exists
|
||||||
if [ -e $outputFile ]; then
|
if [ -e "$outputFile" ]; then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -45,8 +45,8 @@ else
|
|||||||
revision="Unknown"
|
revision="Unknown"
|
||||||
url="file://$cwd"
|
url="file://$cwd"
|
||||||
fi
|
fi
|
||||||
mkdir -p $outputDirectory
|
mkdir -p "$outputDirectory"
|
||||||
cat > $outputFile <<EOF
|
cat > "$outputFile" <<EOF
|
||||||
/*
|
/*
|
||||||
* Generated by src/saveVersion.sh
|
* Generated by src/saveVersion.sh
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user