Skip to content
This repository has been archived by the owner on May 4, 2023. It is now read-only.

Commit

Permalink
make Welcome request report actual version number from manifest.
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Newson committed Jun 29, 2010
1 parent fad4eb1 commit d957e64
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
12 changes: 12 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,18 @@
</additionalResources>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifest>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
</manifest>
</archive>
</configuration>
</plugin>
</plugins>
</build>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,10 @@ private DatabaseIndexer getIndexer(final HttpServletRequest req)
private void handleWelcomeReq(final HttpServletRequest req,
final HttpServletResponse resp) throws ServletException,
IOException {
final Package p = this.getClass().getPackage();
final JSONObject welcome = new JSONObject();
welcome.put("couchdb-lucene", "Welcome");
welcome.put("version", "0.5.0");
welcome.put("version", p.getImplementationVersion());
ServletUtils.writeJSON(resp, welcome);
}

Expand Down

0 comments on commit d957e64

Please sign in to comment.