Good day,

I'm having trouble build a project that has a space in its path.
- 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.

Here's the target that give 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

Reply via email to