ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Callaghan, Tom" <TomCallag...@roberthalf.co.uk>
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
source 
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"/>
OR
<arg value="-port 7002"/>
Are both methods right?
Cheers,
Tom

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message