blob: 8c1bc5ce1fb195cba9a7cdb8d7aad2775c572e57 [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
* site-authenticator.jar comprising the sample class
* SiteSecurity.
* 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-SITE-AUTH-JAR" value="${TGT-LIB}/site-authenticator.jar" />
<target name="build" depends="clean, jar" />
<target name="clean">
<delete file="${TGT-SITE-AUTH-JAR}" />
<target name="jar">
<mkdir dir="${TGT-LIB}" />
<jar destfile="${TGT-SITE-AUTH-JAR}" basedir="${basedir}/target/classes/org/apache/uima/ducc/example/authentication/site"/>