mirror of
https://github.com/apache/sqoop.git
synced 2025-05-04 05:02:11 +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>
|
||||
<mkdir dir="${project.build.directory}/generated-sources/java"/>
|
||||
<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>
|
||||
</target>
|
||||
</configuration>
|
||||
|
@ -29,7 +29,7 @@ date=`date`
|
||||
cwd=`pwd`
|
||||
|
||||
# Exit if target file already exists
|
||||
if [ -e $outputFile ]; then
|
||||
if [ -e "$outputFile" ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
@ -45,8 +45,8 @@ else
|
||||
revision="Unknown"
|
||||
url="file://$cwd"
|
||||
fi
|
||||
mkdir -p $outputDirectory
|
||||
cat > $outputFile <<EOF
|
||||
mkdir -p "$outputDirectory"
|
||||
cat > "$outputFile" <<EOF
|
||||
/*
|
||||
* Generated by src/saveVersion.sh
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user