Hi, I want to call a
java method from
ant task I have to pass three argument to that method, though I am able to call a method with single argument but I don't know how to pass three arguments bewlo is the java file and ant file that I made and able to run method with one argument from ant.
java file:
==========================================================
package com.mydomain;
import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.Task;
public class MyVeryOwnTask extends Task {
private
String msg;
// The method executing the task
public void execute() throws BuildException {
System.out.println(msg);
}
// The setter for the "message" attribute
public void setMessage(String msg) {
this.msg = msg;
}
}
=========================================================
and it's ant file
<?xml version="1.0"?>
<project name="Build-example" default="main" basedir=".">
<taskdef name="mytask" classname="com.mydomain.MyVeryOwnTask" classpath="bin" />
<target name="main">
<mytask message="Hello World! MyVeryOwnTask works!" />
</target>
</project>
====================================================================
here I am passing only one argument but I need to pass multiple argument how can I do that please help.