<!-- Copyright (c) Perforce Software, Inc., 2011-2012. All rights reserved Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL PERFORCE SOFTWARE, INC. BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. User contributed content on the Perforce Public Depot is not supported by Perforce, although it may be supported by its author. This applies to all contributions even those submitted by Perforce employees. --> <project name="Single Sign On" default="package" basedir="."> <description> Single Sign On build file </description> <!-- Set directory properties for this build. Note that paths should be relative to the directory that this file lives in. --> <property name="src-client" location="KerbClient/src"/> <property name="src-server" location="KerbServer/src"/> <property name="bin-client" location="KerbClient/bin"/> <property name="bin-server" location="KerbServer/bin"/> <property name="dist-client" location="KerbClient/dist"/> <property name="dist-server" location="KerbServer/dist"/> <property name="log4j" location="../../../3rd_party/log4j/log4j-1.2.15.jar"/> <property name="commons-codec" location="../../../3rd_party/commons-codec/commons-codec-1.5.jar"/> <target name="init"> <!-- Create the directory structure used by compile --> <mkdir dir="${bin-client}"/> <mkdir dir="${bin-server}"/> <mkdir dir="${dist-client}"/> <mkdir dir="${dist-server}"/> </target> <target name="compile" depends="init" description="compile the source" > <!-- Compile the java code --> <javac srcdir="${src-client}" destdir="${bin-client}"> <classpath> <pathelement location="${log4j}"/> <pathelement location="${commons-codec}"/> </classpath> </javac> <javac srcdir="${src-server}" destdir="${bin-server}"> <classpath> <pathelement location="${log4j}"/> <pathelement location="${commons-codec}"/> </classpath> </javac> </target> <target name="package" depends="clean,compile" description="build jar files"> <jar destfile="${dist-client}/sso-client.jar"> <fileset dir="${bin-client}"/> <zipfileset includes="**/*.class" src="${log4j}"/> <zipfileset includes="**/*.class" src="${commons-codec}"/> <manifest> <attribute name="Main-Class" value="com.perforce.sso.client.KerbClient" /> </manifest> </jar> <jar destfile="${dist-server}/sso-server.jar"> <fileset dir="${bin-server}"/> <zipfileset includes="**/*.class" src="${log4j}"/> <zipfileset includes="**/*.class" src="${commons-codec}"/> <manifest> <attribute name="Main-Class" value="com.perforce.sso.server.KerbServer" /> </manifest> </jar> </target> <target name="clean" description="clean up" > <!-- Delete the ${bin} and ${dist} directory trees --> <delete dir="${bin-client}" failonerror="false"/> <delete dir="${dist-client}" failonerror="false"/> <delete dir="${bin-server}" failonerror="false"/> <delete dir="${dist-server}" failonerror="false"/> </target> <target name="run" description="Run a closed loop authentication" depends="package"> <delete file="ticket.txt" failonerror="false"/> <java jar="${dist-client}/sso-client.jar" failonerror="true" maxmemory="128m" fork="true" output="ticket.txt"> <arg value="c:/p4/sso-client.log"/> <arg value="false"/> <arg value="DEV.LOCAL"/> <arg value="qa-win-vm76.dev.local"/> <arg value="c:/login.conf"/> <arg value="p4/qa-win-vm76.dev.local@DEV.LOCAL"/> </java> <java jar="${dist-server}/sso-server.jar" failonerror="true" maxmemory="128m" fork="true" input="ticket.txt"> <arg value="c:/p4/sso-server.log"/> <arg value="false"/> <arg value="perforce"/> <arg value="DEV.LOCAL"/> <arg value="qa-win-vm76.dev.local"/> <arg value="c:/login.conf"/> <arg value="p4/qa-win-vm76.dev.local@DEV.LOCAL"/> </java> </target> </project>
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 22152 | Randall Fong |
copying files from //guest/perforce_software/sso-p4/java/... to //guest/perforce_software/sso-p4/main/... |
||
//guest/perforce_software/sso-p4/java/build.xml | |||||
#1 | 12125 | alan_petersen | initial submit of sso-p4 |