Read the article regarding the xml task in OOPS Consultancy site. The
examples were very good and self explanatory.
I am stuck on reading the xml file into build.xml and When the build file
runs it copies the entries from the build.xml into another xml file. Can you
please help me on this?
To be more specific , in relating with ex-12 in the examples, if my
build-configuration.xml contains something like this
<buildset>
<builds name="fullname">
<build>development</build>
<build>systemtest</build>
<build>production</build>
</builds>
<builds name="smallname">
<build>DEV</build>
<build>TEST</build>
<build>PROD</build>
</builds>
<buildset>
and in the build.xml i need to read the builds elements in both the
tags- How do i add iteration for reading the builds nodes.
If i have only one builds node ( in the below )
<builds name="smallname">
<build>DEV</build>
<build>TEST</build>
<build>PROD</build>
</builds>
I was able to read this using this ---
<!-- a calling example -->
<target name="testprg">
<xmltask source="build-configuration.xml">
<call path="/builds/build" target="compile-and-release">
<param name="build" path="text()"/>
</call>
</xmltask>
</target>
<!-- the build target for ex12 -->
<target name="compile-and-release">
<echo>Building ${build}</echo>
<xmltask source="${testfile}" dest="${testfile}"
failWithoutMatch="true">
<insert path="/root" position="after">
<![CDATA[
<appender name="${build}" class="ABCC.java">
<param name="File" value="uan.log" />
<param name="Append" value="true" />
<param name="MaxFileSize" value="25000KB"
</appender>
<category name="${building}">
<priority value="debug" />
<appender-ref ref="${build}" />
</category>
]]>
</insert>
</xmltask>
</target>
How should i iterate through builds nodes and also how to get the builds
niode name everytime.
Any ideas or hints will definitely help me out. Thanks in advance. looking
ahead for the reply.
--
Adithya V.S.S
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Xmltask-users mailing list
Xmltask-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xmltask-users