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

Commit

Permalink
LIB Make AdaptorTemplate.jar with manifest for testing service
Browse files Browse the repository at this point in the history
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
  • Loading branch information
BrettMichaelJohnson committed Mar 11, 2014
1 parent 9308073 commit 66d43d2
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down

0 comments on commit 66d43d2

Please sign in to comment.