Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 845781
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T06:30:32+00:00 2026-05-15T06:30:32+00:00

I want my ant script to execute the command java -cp libs/a.jar:libs/b.jar org.stack.class1 –package

  • 0

I want my ant script to execute the command

java -cp libs/a.jar:libs/b.jar org.stack.class1 –package pName –out classes new.wsdl

How can I do it with an Ant script? The following does not work

<?xml version="1.0" encoding="UTF-8"?>
<project name="class" default="compile">
<target name="compile">
    <java classname="org.stack.class1" fork="true">
    <classpath>
        <pathelement location="libs/a.jar"/>
        <pathelement location="libs/b.jar"/>

    </classpath>
    <arg value="--package pName --out classes new.wsdl"/>

    </java>
</target>

It complains that –package pName –out classes new.wsdl is an argument for java. However I want –package pName –out classes new.wsdl to be arguments to org.stack.class1

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T06:30:33+00:00Added an answer on May 15, 2026 at 6:30 am

    I think the issue is with your arg value. According to the documentation here, you are not specifying two separate command line arguments with

    <arg value="--package pName --out classes new.wsdl"/>
    

    I would try changing it to

    <arg line="--package pName --out classes new.wsdl"/>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 490k
  • Answers 490k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer I'm not using a web service, but a windows service… May 16, 2026 at 9:56 am
  • Editorial Team
    Editorial Team added an answer You can probably re-use any modular logic. The MonoTouch UI… May 16, 2026 at 9:56 am
  • Editorial Team
    Editorial Team added an answer The line number in an evaled script starts from the… May 16, 2026 at 9:56 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I want to execute a command from an Ant buildfile, for each file in
I need to create an RPM package from an ANT script that runs on
I have a script that takes a command and executes it on a remote
I'm having trouble getting my cruisecontrol script to do something. I want to call
I inherited an existing Ant build script. It invokes javac three times on three
I have switched to JUnit4.4 from JUnit3.8. I run my tests using ant, all
I want to run my unit tests automatically when I save my Eclipse project.
At our company, we use a base ant file that is included by everyone
My goal is pretty simple: to use ant to build an EAR which contains
We build software using Hudson and Maven. We have C#, java and last, but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.