There are still programs and libraries that do not handle legal
filenames. Space is legal but they have not figured out how to parse a
filename properly.
You can avoid this by using the 8.3 equivalent name.
cd to the C:\cc_dev\charbo12_core_CommonIntegration\Ebusiness\EBUS_Common directory and then type dir/x.
This will give you the 8.3 name of CN eBusiness MainMenu Application directory.
Ron
[EMAIL PROTECTED] wrote:
I tried to build an application that has a space in the path and it fails.
- I tried with ant 1.6.5 and 1.7.0.
- Other users of this build script have a path with spaces and are not
having any problems.
- I'm getting this from both the command line and from the IDE (RAD7).
Here's the target that gives me trouble:
<target name="sqljTranslator" description="Precompile SQLJ files"
if="sqlj.source.present">
<copy todir="${sqlj.dir}">
<fileset dir="${source.dir}">
<include name="**/*.sqlj"/>
</fileset>
</copy>
<apply executable="sqlj" failonerror="true"
parallel="true" verbose="true"
skipemptyfilesets="true">
<arg value="-compile=false"/>
<arg
value="-C-sourcepath=${source.dir}${path.separator}${sqlj.dir}"/>
<arg
value="-C-classpath=${sqlj.precompile.classpath}"/>
<fileset dir="${sqlj.dir}">
<include name="**/*.sqlj"/>
</fileset>
</apply>
<move todir="${bin.dir}">
<fileset dir="${sqlj.dir}">
<include name="**/*.ser"/>
</fileset>
</move>
</target>
Running Ant with -debug here's the output I get:
sqljTranslator:
fileset: Setup scanner in dir
C:\cc_dev\charbo12_core_CommonIntegration\Ebusiness\EBUS_Common\CN
eBusiness MainMenu Application\JavaSource with patternSet{ includes:
[**/*.sqlj] excludes: [] }
[copy] ca\cn\common\mainmenu\MainMenuHelperDataMapper.sqlj omitted as
ca/cn/common/mainmenu/MainMenuHelperDataMapper.sqlj is up to date.
[apply] Current OS is Windows XP
fileset: Setup scanner in dir
C:\cc_dev\charbo12_core_CommonIntegration\Ebusiness\EBUS_Common\CN
eBusiness MainMenu Application\SQLJJavaSource with patternSet{ includes:
[**/*.sqlj] excludes: [] }
[apply] Executing 'sqlj' with arguments:
[apply] '-compile=false'
[apply] '-C-sourcepath=JavaSource;SQLJJavaSource'
[apply]
'-C-classpath=../../../Common/COMMON_Framework/Deploy/CN_Services.jar'
[apply]
'C:\cc_dev\charbo12_core_CommonIntegration\Ebusiness\EBUS_Common\CN
eBusiness MainMenu
Application\SQLJJavaSource\ca\cn\common\mainmenu\MainMenuHelperDataMapper.sqlj'
[apply]
[apply] The ' characters around the executable and arguments are
[apply] not part of the command.
Execute:Java13CommandLauncher: Executing 'sqlj' with arguments:
'-compile=false'
'-C-sourcepath=JavaSource;SQLJJavaSource'
'-C-classpath=../../../Common/COMMON_Framework/Deploy/CN_Services.jar'
'C:\cc_dev\charbo12_core_CommonIntegration\Ebusiness\EBUS_Common\CN
eBusiness MainMenu
Application\SQLJJavaSource\ca\cn\common\mainmenu\MainMenuHelperDataMapper.sqlj'
The ' characters around the executable and arguments are
not part of the command.
[apply]
C:\cc_dev\charbo12_core_CommonIntegration\Ebusiness\EBUS_Common\CN: Error:
C:\cc_dev\charbo12_core_CommonIntegration\Ebusiness\EBUS_Common\CN is not
a valid input filename
[apply] Total 1 error.
[ant] Exiting
C:\cc_dev\charbo12_core_CommonIntegration\Ebusiness\EBUS_Common\CN
eBusiness MainMenu Application\build.xml.
[antcall] Exiting
C:\cc_dev\charbo12_core_CommonIntegration\Ebusiness\EBUS_Common\Build\build.xml.
BUILD FAILED
Any help would be greatly appreciated.
LPC
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]