[ http://jira.jboss.com/jira/browse/JBAS-291?page=history ]

Scott M Stark updated JBAS-291:
-------------------------------

    Comment: was deleted

> multiple execution of "_buildmagic:init"
> ----------------------------------------
>
>          Key: JBAS-291
>          URL: http://jira.jboss.com/jira/browse/JBAS-291
>      Project: JBoss Application Server
>         Type: Bug
>   Components: Build System
>     Reporter: SourceForge User
>     Assignee: Scott M Stark

>
>
> SourceForge Submitter: mcbain4711 .
> <target name="init" unless="init.disable" 
> depends="_buildmagic:init"/>
> Ant always executes the "depends" targets. The unless 
> attribute only prevents the execution of the target "init" 
> (where the unless ist used).
> The idea of property "init.disable" is to prevent the 
> multiple initialization of the buildmagic-system.
> This property is set to "true" at the end 
> of  "_buildmagic:init" target.
> Without using "antcall" Task it is not nessessary to do 
> so, because ant only run the init target once, 
> independently the number of dependencies on "init" in 
> other targets. Maybe ant calculates the graph of target 
> execution order and call every target only once...
> This does not match to the case in which antcall is used.
> With antcall the "only-once" rule is broken and for every 
> single antcall the buildsystem??????????????????s init targets are 
> executed. 
> This makes the "configure" target a lot of times and 
> makes the whole build very slow. Beside the build-
> output is polluted by the "Overriding previous definition of 
> reference to ..." messages.
> Solution: move the unless="init.disable" to the 
> target "_buildmagic:init" (common.xml) !

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.jboss.com/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-Development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to