blob: 8e6b2ac7e556a0f2110ae905f9cce462958a1c75 [file] [log] [blame]
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
* This is a sample ant script to build a jar file named
* ducc-authenticator.jar comprising the sample class
* AuthenticationManager.
* If one wanted to utilize this class for authentication
* (not recommended as-is since authentication always succeeds!)
* one would build the jar file and then:
* 1. include it and any of its dependency jars
* (see build-site-authenticator-jar) in the directory
* ~ducc/ducc_runtime/lib/authentication
* 2. update to include the property:
* ducc.local.jars authentication/*
<project name="uima-ducc-examples" default="build" basedir=".">
<property name="TGT-LIB" value="${basedir}/lib" />
<property name="TGT-DUCC-AUTH-JAR" value="${TGT-LIB}/ducc-authenticator.jar" />
<target name="build" depends="clean, jar" />
<target name="clean">
<delete file="${TGT-DUCC-AUTH-JAR}" />
<target name="jar">
<mkdir dir="${TGT-LIB}" />
<jar destfile="${TGT-DUCC-AUTH-JAR}" basedir="${basedir}/target/classes/org/apache/uima/ducc/example/authentication/module"/>