Project

General

Profile

« Previous | Next » 

Revision 348

Updated build process to now use a copy of the source files so that keyword
substitution can ocur before the build. This allows for substitution of
hardcoded values into the source before the compile. Currently, I am
using this feature to do the following:

1) Substitute a "Release" number into the code
2) Substitute a hardcoded servlet path into the code and html files

By changing the value of "servlet-path" and "installdir" properties in
build.xml, one can now easily install a new version of the servlet in a
different location by simply using "ant install".

View differences:

contents.html
22 22
<b>MetaCat Query</b> -- a simple database query against MetaCat
23 23
</td></tr>
24 24
<tr><td width="40%" valign="top">
25
<form action="/xmltodb/servlet/metacat" target="right" method="POST">
25
<form action="@servlet-path@" target="right" method="POST">
26 26
  <input type="hidden" name="action" value="query">
27 27
  <input type="text" name="query" value="NCEAS%" size="15">
28 28
  <input type="submit" value="Run query"><br />
......
36 36
  <option value="any">Any
37 37
  </select>
38 38
</form>
39
<a href="/xmltodb/servlet/metacat?action=Logout" target="_top">Logout</a>
39
<a href="@servlet-path@?action=Logout" target="_top">Logout</a>
40 40
<br /><a href="loadxml.html" target="right">Load an XML Document</a>
41 41
<br /><a href="validate.html" target="right">Validate an XML Document</a>
42 42
<br /><a href="../docs/" target="top">Browse the API for the Servlet</a>

Also available in: Unified diff