On Mon, May 3, 2010 at 2:22 PM, Brett Porter <[email protected]> wrote:

> Hi Deng,
>
> On 02/05/2010, at 4:13 PM, [email protected] wrote:
>
> >
> >
> > -            // explicitly update only if metadata-updater consumer is
> not enabled!
> > -            if (
> !config.getRepositoryScanning().getKnownContentConsumers().contains(
> "metadata-updater" ) )
> > +            // explicitly update only if versionMetadata-updater
> consumer is not enabled!
> > +            if (
> !config.getRepositoryScanning().getKnownContentConsumers().contains(
> "versionMetadata-updater" ) )
>
> Looks like your search/replace went rogue :)
>

Oops, I didn't notice that :) Thanks for the catch!


>
> > +        String projectPath = targetPath.substring( 0,
> targetPath.lastIndexOf( File.separatorChar ) );
> > +        File projectMetadataFile = getMetadata( projectPath );
>
> I know that code was already there, but I think you could improve it's
> reliability with:
> File projectDir = new File( targetPath ).getParentFile();
> File projectMetadataFile = new File( projectDir, MAVEN_METADATA );
>
> The "getMetadata" method looks small enough to be inlined.
>

Ok, I'll update this one too.

Thanks,
Deng

Reply via email to