5
0
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:
Kate Ting 2013-03-09 09:17:47 -05:00 committed by Kate
parent 3d9aaa0d0d
commit b94c22919e
2 changed files with 4 additions and 4 deletions

View File

@ -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>

View File

@ -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
*/