facebook

Eclipse Ant Problem

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #230554 Reply

    tmonteit
    Member

    I’m trying to build an ant script with an argument that references a strong containing html. The html string is supposed to be enclosed in quotes.
    The script will be the targed of a wsdl deployment.

    ie. “html:\something”
    <java … >
    <arg value=”\”html:/Something”\” />
    <java>

    The problem is that eclipse doesn’t like the string. Error says:
    white space required before attributes.

    Here’s the The code…
    and a screen shot of the error:

    <target name=”s1_java2wsdl”>
    <java classpath=”lib.cp” classname=”org.apache.axis.wsdl.Java2WSDL” fork=”true”>
    <args>
    <arg value=”-y DOCUMENT” />
    <arg value=”-o mywsdl.wsdl” />
    <arg value=”-l\”http:\localhost:8080\axis\services\ABCDDoc\”” />
    <arg value=”-n\”urn:IBCDSDoc\”” />
    <arg value=”-p\”com.company.webservice.sa\”” />
    <arg value=”\”urn:ABCD\”” />
    <arg value=”com.company.webservice.sa.IBCDSServiceAdapter” />
    </args>
    </java>
    </target>

    What’s going on here? how do I fix?

    #230557 Reply

    tmonteit
    Member
    #230559 Reply

    tmonteit
    Member

    Also says…. What does this mean?
    BUILD FAILED: C:\ibc_env\eclipse_working\ibc_hs\build.xml:36: Element type “arg” must be followed by either attribute specifications, “>” or “/>”.

    #230571 Reply

    support-michael
    Keymaster

    IFollowing are the attribute quoting rules:

    All attribute values must be in quotes. The single-quote character (the apostrophe) may be used if the value contains a double-quote character, and vice versa. If you need isolated quotes as data as well, you can use ' or ".

    Try this:

    <arg value='-l"http:\localhost:8080\axis\services\ABCDDoc"' />
    #230572 Reply

    support-michael
    Keymaster

    One more observation is the backslashes in the -l option. I don’t believe ‘\’ is a valid character in a URL. If you experience errors try converting the ‘\’ to ‘/’.

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Eclipse Ant Problem

You must be logged in to post in the forum log in