I didn't try it out, but maybe your problem might be solved if you add 
inheritRefs="true" to your < antcall target="do_eval" /> element.

regards,
Maarten

----- Original Message ----
From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
To: xmltask-users@lists.sourceforge.net
Sent: Thursday, February 15, 2007 5:19:25 PM
Subject: [Xmltask-users] help: sourcebuffer no visible in another target



Hi,

I have installed the latest version of xmltask, and I got a problem of
compatibility with my existing script : the result of an xpath expression stored
in a buffer is lost in another target !

Note: Your tutorial said :
" Buffers exist for the duration of the Ant process and consequently can be used
across multiple invocations of <xmltask>"
.../...
"so the buffer storedXml is maintained across multiple targets."

Configuration :
- JVM : 1.5.0 rel 7
- Ant : 1.6.5
- OS : Windows XP

Example of ant script :

      <target name="pre.eval"
          description="evaluation: extraction des parametres">
          <xmltask source="${build_chaine}/${ficonfig_chaine}">
              <print path="/chaine/[EMAIL PROTECTED]'${pevalcible}']" 
comment="debog
source"/>
              <copy path="/chaine/[EMAIL PROTECTED]'${pevalcible}']" 
buffer="x_eval"/>
          </xmltask>

        <xmltask sourcebuffer="x_eval">
            <print path="." comment="all x_eval, same target"/>
        </xmltask>

      <antcall target="do_eval"/>

      </target>

      <target name="do_eval"
          description="evaluation: execution de la chaine, etape par etape">

            <xmltask sourcebuffer="x_eval">
                <print path="." comment="all x_eval"/>
            </xmltask>

      </target>

Result of print :

    pre.eval:
      [xmltask] { node output - debog source
      [xmltask] <eval id="dat_1" note="">
      [xmltask]     <application path="profil/DAT"
task="base_profil">defaut</application>
      [xmltask]   </eval>
      [xmltask] } node output

      [xmltask] { node output - all x_eval, same target
      [xmltask] <eval id="dat_1" note="">
      [xmltask]     <application path="profil/DAT"
task="base_profil">defaut</application>
      [xmltask]   </eval>
      [xmltask] } node output

    do_eval:
      [xmltask] { node output - all x_eval
      [xmltask] } node output


Where is the problem ? How can I store an XML fragment to use in another target
?

Thank you in advance for any ideas.

--
Adrien KMIECIK

CNAMTS Ingénierie des Systèmes d'Echanges
35 rue Mazelle 57000 METZ FRANCE
Tel : +33 (0) 387 211 620
Fax : +33 (0) 387 211 601


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Xmltask-users mailing list
Xmltask-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xmltask-users





 
____________________________________________________________________________________
8:00? 8:25? 8:40? Find a flick in no time 
with the Yahoo! Search movie showtime shortcut.
http://tools.search.yahoo.com/shortcuts/#news

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Xmltask-users mailing list
Xmltask-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xmltask-users

Reply via email to