Karr, David | 5 Nov 2007 17:56

Possible to use xmltask in a Maven1 maven.xml script?

I'm using Maven 1, and I'm trying to script some xmltask processing in a
maven.xml script.  Is there any way to iterate through a set of xpath
results without using the "call" tag?  This seems to require an Ant
target, but it doesn't work if I just define the target in the maven.xml
script, as it seems to want to find it in a build.xml file.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
Brian Agnew | 5 Nov 2007 18:42
Favicon
Gravatar

Re: Possible to use xmltask in a Maven1 maven.xml script?

You can specify actions directly thus:

<call path="a/b/c">
  <actions>
    <echo>Found a node under a/b/c</echo>
  </actions>
</call>

That is Ant 1.6 (and above) specific. I confess I'm not Maven-savvy enough
to know whether that will work with Maven, however.

Brian

On Mon, November 5, 2007 16:56, Karr, David wrote:
> I'm using Maven 1, and I'm trying to script some xmltask processing in a
> maven.xml script.  Is there any way to iterate through a set of xpath
> results without using the "call" tag?  This seems to require an Ant
> target, but it doesn't work if I just define the target in the maven.xml
> script, as it seems to want to find it in a build.xml file.
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> Xmltask-users mailing list
> Xmltask-users@...
> https://lists.sourceforge.net/lists/listinfo/xmltask-users
>
(Continue reading)

Holger Rauch | 21 Nov 2007 13:09
Picon
Favicon

Question related to <param path="..." /> inside <call path="..." />

Hi,

the examples related to <call path="..." /> with nested <param path="..." />
elements given in the XMLTask documentation imply that one may only use the
<param path="..." to specify attributes contained in the element selected by
<call path="..." />. Is that true?

The following example works:

==============================

<xmltask source="web.xml">
      <call path="web/servlet"/>
        <param name="id" path=" <at> id" default="NO ID"/>
        <actions>
          <echo>Found a servlet  <at> {id}</echo>
          <!-- perform deployment actions -->
          ....
        </actions>
      </call>  
</xmltask>

==============================

In this example, the id attribute is contained in the web/servlet element
selected by <call path="web/servlet"/>.

My example, however, doesn't work. The error message I get from ant is

xmltest-read.xml:148: required attribute eararchs not set
(Continue reading)

j b | 23 Nov 2007 13:38
Picon
Favicon

Is XMLTask still Java 1.3 compatible?

The xmltask site doesn't state that xmlTask is no longer java 1.3 compatible.  Is it?  If not it should state that upfront.

ant -p
java home is \java\jdk1.3.1_08
Buildfile: build.xml
java.lang.UnsupportedClassVersionError: com/oopsconsultancy/xmltask/ant/XmlTask (Unsupported major.minor version 48.0)

Get easy, one-click access to your favorites. Make Yahoo! your homepage.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Xmltask-users mailing list
Xmltask-users@...
https://lists.sourceforge.net/lists/listinfo/xmltask-users
Brian Agnew | 23 Nov 2007 13:47
Favicon
Gravatar

Re: Is XMLTask still Java 1.3 compatible?

I believe it should be 1.4+ compatible.

Brian

On Fri, November 23, 2007 12:38, j b wrote:
> The xmltask site doesn't state that xmlTask is no longer java 1.3
> compatible.  Is it?  If not it should state that upfront.
>
> ant -p
> java home is \java\jdk1.3.1_08
> Buildfile: build.xml
> java.lang.UnsupportedClassVersionError:
> com/oopsconsultancy/xmltask/ant/XmlTask (Unsupported major.minor version
> 48.0)
>
>
>
>       ____________________________________________________________________________________
> Never miss a thing.  Make Yahoo your home page.
> http://www.yahoo.com/r/hs-------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________
> Xmltask-users mailing list
> Xmltask-users@...
> https://lists.sourceforge.net/lists/listinfo/xmltask-users
>

--

-- 
Brian Agnew                  http://www.oopsconsultancy.com
OOPS Consultancy Ltd
Tel: +44 (0)7720 397526
Fax: +44 (0)20 8682 0012

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
j b | 23 Nov 2007 14:11
Picon
Favicon

Why not in Ant project?

I just used XMLTask to solve a problem, that was a pain to do using other methods.  Its great. 

Why is it not a part of the Ant project?  I'm assuming being part of the Ant project would put more developers and resources on it, but I could be wrong.

Was it ever submitted to be part of the optional task list?   Is it because the style task (http://ant.apache.org/manual/CoreTasks/style.html) can be used for XML transforms?



Be a better sports nut! Let your teams follow you with Yahoo Mobile. Try it now.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Xmltask-users mailing list
Xmltask-users@...
https://lists.sourceforge.net/lists/listinfo/xmltask-users

Gmane