ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Callaghan, Tom" <>
Subject Switches in Java
Date Tue, 22 Jan 2002 16:29:54 GMT
Hi All,

I`m currently trying to get my script to call a .class file.  This file
accepts switches, followed by the arguments:- 

Usage: java weblogic.deploy [options]
[list|deploy|undeploy|update|delete|refresh] password {name} {source}

So, I want to say something like this: -

java weblogic.deploy -port port_number -host host_name deploy password name
My question is: Is a switch followed by an argument counted as one, or are
they both separate?  Which is right? : -
<arg value="-port"/>  <-- This is what I`ve been trying at the moment
<arg value="7002"/>
<arg value="-port 7002"/>
Are both methods right?

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message