ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "robert rowntree" <rownt...@mindspring.com>
Subject Command Line Arguments - java with quotes around an arg
Date Thu, 16 May 2002 21:55:32 GMT
solved by changing the element  from "arg" to "jvmarg"

when i did this, the entire quote issue became moot. see build.xml and
sysout

from the build.xml *******

  <target depends="core" name="test">
    <java classname="
       services.demos.attachments.client.ServiceBindingExample"
       classpathref="cptest"
       dir="J:\wstk-3.1\services\demos\attachments\client"
       failonerror="true" fork="true">

              <jvmarg
value="-Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParser
FactoryImpl"/>
              <jvmarg
value="-Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.Doc
umentBuilderFactoryImpl"/>
              <jvmarg value="-DxmlFile=rpcServiceProperties.xml"/>

******   from sysout when the "Test" target was run ********

parsing buildfile J:\wstk-3.1\services\demos\attachments\client\build.xml
with URI = file:J:/wstk-3.1/services/demos/attachments/client/build.xml
Project base dir set to: J:\wstk-3.1\services\demos\attachments\client
Build sequence for target `test' is [init, core, test]
Complete build sequence is [init, core, test, test_debug]

Executing 'F:\j2sdk1.4.0\jre\bin\java.exe' with arguments:
'-Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactor
yImpl'
'-Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentB
uilderFactoryImpl'
'-DxmlFile=rpcServiceProperties.xml'
'-classpath'
  ...
'services.demos.attachments.client.ServiceBindingExample'
The ' characters around the executable and arguments are
not part of the command.


--
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