The Artima Developer Community
Sponsored Link

Java Answers Forum
how to pass argument with the classname in build.xml

1 reply on 1 page. Most recent reply: May 15, 2002 3:33 PM by Thomas SMETS

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
Binod Pokharel

Posts: 9
Nickname: binod
Registered: Mar, 2002

how to pass argument with the classname in build.xml Posted: May 6, 2002 3:22 PM
Reply to this message Reply
Advertisement
In the build.xml file for the Ant tool , I am trying to run a class with the command line argument. I mean the purpose is like:
java Client create where Client is the class name and create is just an argument

How can I modify for this in the following portion of my build.xml

I want to add the argument "create" after the class name
--------------------------

<target name="run_client" depends="init">
<java classname="com.mvcsoft.samples.dynamic_query.Client" fork="yes" >
<classpath path="${jboss.classpath}:${mvcsoft.classpath}:$ ynamic_query.client.ejbjar " />
<arg line="-Xint -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,address=12999,suspend=n "/>
</java>
</target>

--------------------------


Thomas SMETS

Posts: 307
Nickname: tsmets
Registered: Apr, 2002

Re: how to pass argument with the classname in build.xml Posted: May 15, 2002 3:33 PM
Reply to this message Reply
You may use the java -D flag ?
ant <target> -DKey=Value

Hope this helps ?

Thomas SMETS,
SCJP2 - Brussels

Flat View: This topic has 1 reply on 1 page
Topic: Printing excel file Previous Topic   Next Topic Topic: applet connectivity

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use