Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor ajustments for gerrit-gitblit plugin #78

Closed
wants to merge 10 commits into from
Closed

Minor ajustments for gerrit-gitblit plugin #78

wants to merge 10 commits into from

Conversation

davido
Copy link
Contributor

@davido davido commented Apr 6, 2013

No description provided.

@@ -3016,7 +3016,7 @@ private ServerSettings loadSettingModels() {
// Read bundled Gitblit properties to extract setting descriptions.
// This copy is pristine and only used for populating the setting
// models map.
InputStream is = getClass().getResourceAsStream("/reference.properties");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The reason for this is the "static" prefix, right? If so, I would prefer to stub out a protected method for getResourcePath(String file) or something like that which returned "/" + file for Gitblit GO/WAR/Express and in your Gitblit subclass it returned "/static/" + file. I'm not a fan of the inputstream parameter passing approach.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess yes, i am going to revisit it.

gitblit added a commit that referenced this pull request Apr 13, 2013
<property name="project.jar"
value="${project.outputDirectory}/gitblit.jar" />
<property name="resourceFolderPrefix" value=""/>
<mx:jar destfile="${project.jar}" includeresources="true" resourceFolderPrefix="${resourceFolderPrefix}"/>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just integrated this specific change. I think the only thing I skipped is the InputStream parameter, which I think needs to be revisited. I have changed the location of "reference.properties" from WEB-INF to a classpath resource (like Wicket html templates) - not a web resource like css files, etc. You may not have need to reintroduce the inputstream parameter. Reference.properties is only used to determine default settings (and SINCE, RESTART REQUIRED, etc) for the Gitblit Manager to display - or I suppose anything else that may take advantage of RPC setting controls.

@davido davido closed this Apr 14, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants