Wednesday, October 3, 2012

Calling a java class as ant target

Here is the way to do it

classname: is filename of java :Ex: AutomationFileSequence
 arg: Any arguments if required to run the class needs to be mentioned here.

<target name="run_PostData" >
  <java fork="false" failonerror="yes" classname="com.qa.automation.main.AutomationFileSequence" classpathref="classpath"> 
            <arg line="${basedir}/Automation_PostData.properties"/>
    <arg line="PostData"/>
            </java>
            </target>

5 comments:

  1. Thanks for sharing this information.It was very nice blog to learn about Selenium

    ReplyDelete
  2. Thanks for sharing this information.It was very nice blog to learn about Selenium

    ReplyDelete
  3. Great work on this article. The practical details make the content more useful and engaging.online business analyst course

    ReplyDelete
  4. This was a refreshing read. The information feels practical and relevant for people who are trying to understand the topic better.training boomi

    ReplyDelete
  5. A mulesoft developer course focuses on API development, integration flows, connectors, and MuleSoft application development. Learners can strengthen their development knowledge through hands-on examples and exercises.

    ReplyDelete