Use

<arg line="-I{Import}" />

instead. Value will quote the argument while line will pass it as is.

BOb


From: Pavan Vadavalli [mailto:pavan.vadava...@gmail.com]
Sent: Friday, July 16, 2010 6:07 PM
To: NAnt-users@lists.sourceforge.net
Subject: [NAnt-users] unsubscribe


2010/7/17 Andréys Guillaume 
<guillaume.andr...@omt.fr<mailto:guillaume.andr...@omt.fr>>

Hi everybody,

I am trying to compile a Delphi 32 bits application with nant, calling 
dcc32.exe with the exec task. I've got problems that I can't solve, maybe 
someone can help me :
I want to launch the application with more or less this command line :
dcc32.exe -$O- -$D- -I"..\composants\src\Abrevia..\composants\src\JLabel";" 
..\composants\src\PdfCreator";  ... (I won't put all the long command ...)

My problem is with the -Ipath1;path2 ...

If I am trying to do :
    <property name="composant-src-dir" value="..\composants\src"/>
    <path id="import">
     <pathelement dir="${composant-src-dir}/Abrevia" />
<pathelement dir="${composant-src-dir}/JLabel" />
     <pathelement dir="${composant-src-dir}/PdfCreator" />
    </path>

<exec program="dcc32.exe" basedir="${codegear-dir}/bin/" verbose="true">
<arg value="-$O-"/>
     <arg value="-$D-"/>
<arg value="-I"/>
      <arg>
        <path>
               <path refid="import" />
        </path>
      </arg>
</exec>

I can't call the -I with path without an space between the -I and the path list 
...

I have tried this :
<property name="composant-src-dir" value="..\composants\src"/>
<property name="import" 
value="${composant-src-dir}\Abrevia;${composant-src-dir}\JLabel"/>
<exec program="dcc32.exe" basedir="${codegear-dir}/bin/" verbose="true">
<arg value="-$O-"/>
     <arg value="-$D-"/>
<arg value="-I${import}"/>
</exec>

But with this I have a " before the -I that is coming and something like this
dcc32.exe O- -$D- 
"-I..\composants\src\Abrevia..\composants\src\JLabel;..\composants\src\PdfCreator"

Then it won't work ... and I am loosing the benefice of the path element 
(adding " automatically, converting / to \ in windows ...)

Does someone have an idea to get out of those directory problems.

Think you for your help

Guillaume


------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first<http://sprint.com/first> -- 
http://p.sf.net/sfu/sprint-com-first
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net<mailto:NAnt-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/nant-users

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to