You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2008/10/25 16:33:33 UTC
DO NOT REPLY [Bug 46089] New: Build target specification on command
line can be enhanced
https://issues.apache.org/bugzilla/show_bug.cgi?id=46089
Summary: Build target specification on command line can be
enhanced
Product: Ant
Version: 1.7.1
Platform: PC
OS/Version: Windows Vista
Status: NEW
Severity: enhancement
Priority: P2
Component: Core
AssignedTo: notifications@ant.apache.org
ReportedBy: asusnjar@hotmail.com
Consider the following:
<target name="a"/>
<target name="b" depends="a"/>
<target name="c" depends="a"/>
If one runs targets "b" and "c" from the command line, the target "a" will run
twice:
1. a
2. b
3. a
4. c
Granted, target "a" may be "smart" and skip most of its processing if it
discovers that it has already run. However, even that creates some overhead and
additional console or log output and requires it to be made smart. I haven't
found a way around this except by creating my own shell for ant that creates
new targets dynamically and then runs those. In my example, running "b+c"
instead of "b c" would result in "a b c" instead of "a b a c" execution.
I believe something like this may be useful for general public.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 46089] Build target specification on command line
can be enhanced
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46089
Matt Benson <gu...@yahoo.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WORKSFORME
--- Comment #1 from Matt Benson <gu...@yahoo.com> 2008-10-27 07:44:55 PST ---
-Dant.executor.class=org.apache.tools.ant.helper.SingleCheckExecutor
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 46089] Build target specification on command line
can be enhanced
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46089
--- Comment #3 from Matt Benson <gu...@yahoo.com> 2008-10-27 13:22:49 PST ---
I don't really think there should be any ordering issues as the targets are
sorted such that e.g. a shared dependency, here target "a" would be executed
before the common dependents ("b" and "c"). As long as all the dependencies
between targets are properly specified every prerequisite-type target should
run in time for its results to be used by its dependents. Any problems you
detect in this regard should certainly be reported.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 46089] Build target specification on command line
can be enhanced
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46089
Aleksandar Susnjar <as...@hotmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
OS/Version|Windows Vista |All
Platform|PC |All
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 46089] Build target specification on command line
can be enhanced
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46089
--- Comment #2 from Aleksandar Susnjar <as...@hotmail.com> 2008-10-27 09:59:39 PST ---
Hmm... cool. Didn't know about that. However, there is still room for
improvement. This appears awkward and may cause ordering issue without
something like I mentioned in 46090. My current shell allows both "modes" to be
mixed, such as "a+b c+d"...
Nevertheless, I will likely switch to your proposal.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 46089] Build target specification on command line
can be enhanced
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46089
--- Comment #4 from Matt Benson <gu...@yahoo.com> 2008-11-04 07:24:55 PST ---
*** Bug 46090 has been marked as a duplicate of this bug. ***
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.