Hi everybody,
I am trying to compile a Delphi 32 bits application with nant, calling
dcc32.exe with the exec task. Ive got problems that I cant 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 wont 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 cant 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\PdfCr
eator
Then it wont 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://p.sf.net/sfu/sprint-com-first
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users