LIB Make AdaptorTemplate.jar with manifest for testing service

This adds a build target for constructing a stand-alone AdaptorTemplate.jar for
use in testing. The jar requires only a matching adaptor-[version]-withlib.jar
and a adaptor-config.properties in the same directory as AdaptorTemplate.jar.

It can be run with the command 'java -jar AdaptorTemplate.jar'

Code Review: http://codereview.appspot.com/73830043
diff --git a/build.xml b/build.xml
index 9b4046c..d58598f 100644
--- a/build.xml
+++ b/build.xml
@@ -366,6 +366,26 @@
       basedir="${build.dir}/dist/adaptor${adaptorlib.suffix}"/>
   </target>
 
+  <!-- Build stand-alone AdaptorTemplate.jar for testing purposes. -->
+  <target name="adaptor-template" description="AdaptorTemplate jar"
+    depends="package">
+    <jar destfile="${build.dir}/dist/adaptor${adaptorlib.suffix}/AdaptorTemplate.jar"
+      basedir="${build-src.dir}"
+      includes="${adaptor.pkg.dir}/**/AdaptorTemplate.class">
+      <manifest>
+        <attribute name="Implementation-Title"
+          value="Google Adaptor Template"/>
+        <attribute name="Implementation-Vendor" value="Google Inc."/>
+        <attribute name="Implementation-Version"
+          value="${adaptorlib.version}"/>
+        <attribute name="Main-Class"
+          value="com.google.enterprise.adaptor.examples.AdaptorTemplate" />
+        <attribute name="Class-Path"
+          value="adaptor${adaptorlib.suffix}-withlib.jar" />
+      </manifest>
+    </jar>
+  </target>
+
   <target name="-javadoc-test-uptodate">
     <uptodate property="javadoc.uptodate"
       targetfile="${javadoc.dir}/index.html">