[
https://issues.apache.org/jira/browse/LUCENE-3337?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Steven Rowe updated LUCENE-3337:
--------------------------------
Attachment: LUCENE-3337.patch
{quote}
I plan on looking next at the utility of the *.compiled & *.uptodate property
passing scheme - you mentioned on #lucene IRC that it didn't seem to be having
any effect on the build.
{quote}
The properties were being passed in as intended, but the {{<uptodate>}} tasks
were still running, since their execution was not dependent on the
already-defined values of {{\*.uptodate}} output properties.
The attached version of the patch, which includes Robert's latest patch, wraps
the {{<uptodate>}} tasks in {{check-\*\-uptodate}} targets, and makes the
{{compile-\*}} targets depend on them, so that the {{<uptodate>}} tasks only
run when the corresponding {{\*.update}} property value has not previously been
set.
The only problem with this approach is that the {{\*.jar}} properties aren't
constructed properly, since the property passing scheme only works one-way
(properties are passed into {{<ant>}} invocations, but not back out of them).
I worked around this problem by defining the {{\*.jar}} properties statically.
My build times now:
||task||trunk||patch||patch w/property passing optimizations||
|ant example (clean checkout)|180s|119s|93s|
|ant example (already compiled)|132s|61s|55s|
This shaves a few more seconds off my build time.
> avoid building jar files unless necessary in build
> --------------------------------------------------
>
> Key: LUCENE-3337
> URL: https://issues.apache.org/jira/browse/LUCENE-3337
> Project: Lucene - Java
> Issue Type: Bug
> Components: general/build
> Affects Versions: 3.4, 4.0
> Reporter: Robert Muir
> Attachments: LUCENE-3337.patch, LUCENE-3337.patch, LUCENE-3337.patch,
> LUCENE-3337.patch
>
>
> This causes the build to be slow, we can avoid it in lots of cases (e.g. ant
> test)
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]