[modules-dev] Review request: 6560281

Dave Bristor David.Bristor at Sun.COM
Wed Jul 25 16:12:41 PDT 2007


I just did a putback for the repository configuration code, with a couple more 
changes, to JRepo and JRepoTest.

The entry for the user repository is commented out for now.

Thanks for all the careful review!
	Dave

Stanley M. Ho wrote:
> Hi Dave,
> 
> Dave Bristor wrote:
>>> If the location doesn't exist, I think it's better to ignore it. It 
>>> would be annoying if the user just mistypes the repository path in 
>>> the launcher and then finds the directory being created as a side 
>>> effect.
>>
>> This presents a conundrum: As we agreed Monday, the standard 
>> repository.properties has
>>     user.source=file:${user.home}/.java/module
>> and that does not exist, then the JVM will exit.  Something needs to 
>> create that directory first.  So along with your mention in earlier 
>> email (attached) about having system properties to define the 
>> locations of repositories, we still need something to create them.
>>
>> One option, for now, is to comment out the user repository entry in 
>> repository.properties, and uncomment it once we know how its directory 
>> will be created.  For now, this is what's at the updated webrev.  What 
>> do you think?
> 
> I think there are repositories (e.g. extension repository) that must 
> exist as a prerequisite for the module system to run, but there are also 
> repositories (e.g. this user level repository) that are optional. Like 
> other user specific files or directories under {user.home}, we should 
> neither expect this user level repository will always exist nor it be 
> created by us. If we can't address this in this putback, let's comment 
> out the entry for now.
> 
> - Stanley



More information about the modules-dev mailing list