×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Ant 1.7 issues

Ant 1.7 issues

Ant 1.7 issues

(OP)
Hi guys,

There is a weired thing happening in Ant 1.7, when I am using “ant -p" command to look up the available targets from the build script. By that command the Ant should display a bunch of available targets in the script. In Ant 1.6.5, the targets are displayed properly. However, in ant 1.7, it displays the targets in the parent script twice.

For example, the parent script is called "parent" as project name for the script and the script I execute is called "child" as project name for the script. The "child" calls "parent" for shared targets, "build", "compile". The "child" consists of "extension", "test".

When I type "ant -p" to the "child" script, it prints out the following:
parent.build
parent.compile
build
compile
extension
test

But the "build" and "compile" are the same as "parent.build" and "parent.compile". Can I do anything on my script to get rid of the redundant targets?

If I do not set project name on the two scripts, the redundancy does go away. But I want to keep the project name to identify the scripts.

Do you guys know how do I fix that?

Thanks in advance

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close