lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steven Rowe (JIRA)" <>
Subject [jira] [Updated] (LUCENE-3337) avoid building jar files unless necessary in build
Date Tue, 26 Jul 2011 15:39:09 GMT


Steven Rowe updated LUCENE-3337:

    Attachment: LUCENE-3337.patch

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.

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:
>             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:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message