Think you, it is working but I had to write my property with imports like
this has I cant use pathelement :
<property name="codegear-dir" value="c:\program files\codegear\rad
studio\6.0"/>
<property name="import"
value=;"${codegear-dir}\Imports";"${codegear-dir}\Lib\ "/>
Has windows path need to have if there are spaces
Cordialement,
________________________________
Guillaume Andréys
Service Technique
OMT - River Side - 45 avenue Leclerc - 69007 Lyon
Tel commercial : 04 72 56 27 27
www.omt.fr <http://www.omt.fr/>
Support Nota bene, Molière, UD SMS, StagExpert.net et toutes autres
installations : 04 72 56 27 20
Support UD Planning, UD Elèves, VieScolaire.net et VieScolaire.net Appel :
04 72 56 27 21
Support UD Répartition et UnDeuxTEMPS : 04 72 56 27 22
________________________________
De : Bob Archer [mailto:bob.arc...@amsi.com]
Envoyé : lundi 19 juillet 2010 18:31
À : Pavan Vadavalli; NAnt-users@lists.sourceforge.net
Objet : Re: [NAnt-users] unsubscribe
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>
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
------------------------------------------------------------------------------
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