ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From L.Charbonn...@cn.ca
Subject Trouble building application with space in path
Date Tue, 21 Aug 2007 18:01:07 GMT
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
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message