📄 makefile.sample
字号:
# -*-Makefile-*-# $RCSFile$ $Revision: 1.39 $ $Date: 2006/01/25 22:04:17 $## Makefile for XPASearch Sample files## Customize the following variables for your environment:# PATHSEP, JAVA_HOME, JAVA_LIB,# XPA_SEARCH, LDAP_JDK, JCL_LIB,# SAXimpl, PROPERTIES, # SERVLET, APPSERVER_HOME, APPSERVER_DEPLOY# If using JDK 1.3 - also customize the following variables:# JSSE, SAXapi## See ../RELNOTES to locate third-party libraries.## Usage:# make help# Set PATHSEP to : for Unix, ; for WindowsPATHSEP = ;# Set JAVA_HOME here if it isn't in your environment #JAVA_HOME = JAVAC = $(JAVA_HOME)/bin/javacJAVA = $(JAVA_HOME)/bin/javaJAR = $(JAVA_HOME)/bin/jar## Jar files which should be deployed with the Servlet samples## Location of XPASearch file: xpasearch.jarXPA_SEARCH = ../lib/xpasearch.jar# Location of other Third-party librariesJAVA_LIB = ../lib# Jakarta Commons Logging - for XPA Diagnostic loggingJCL_LIB = $(JAVA_LIB)/commons-logging.jar# Location of LDAP JDK: file ldapjdk.jar# This is needed for the SearchLDAP and LDAPServlet examples.LDAP_JDK = $(JAVA_LIB)/ldapjdk.jar## Jar files which need not be deployed with the Servlet samples# (They should be in the Web Server container environment)## Location of SAX2 Parser# This is needed for the SearchQuickLinks and SearchServlet examples.# The files can be downloaded via http://xml.apache.org/xerces-j/# SAX API - needed for JDK 1.3 onlySAXapi = $(JAVA_LIB)/xml-apis.jar# SAX ImplementationSAXimpl = $(JAVA_LIB)/xercesImpl.jar# Define the name of the class to use for parsing XML files.# This is needed for the SearchQuickLinks example.SAX_PARSER_PROPERTY = -Dorg.xml.sax.driver=org.apache.xerces.parsers.SAXParserPROPERTIES = $(SAX_PARSER_PROPERTY)# Define needed for JDK 1.3 only (used for HTTPS support, not needed for any sample)JSSE = $(JAVA_LIB)/jsse.jar$(PATHSEP)$(JAVA_LIB)/jnet.jar$(PATHSEP)$(JAVA_LIB)/jcert.jar# Location of Java Servlet 2.2 specification: file servlet.jar # Needed for the Servlet examples.SERVLET = $(JAVA_LIB)/servlet.jar# Location of your AppServer - used for deployment of SearchExamples.warAPPSERVER_HOME = $(CATALINA_HOME)APPSERVER_DEPLOY = ${APPSERVER_HOME}/webapps## End of configurable Makefile variables#REQUIRED_PACKAGES=.$(PATHSEP)$(XPA_SEARCH)$(PATHSEP)$(JCL_LIB)OPTIONAL_PACKAGES=$(SERVLET)$(PATHSEP)$(LDAP_JDK)$(PATHSEP)$(SAXapi)$(PATHSEP)$(SAXimpl)$(PATHSEP)$(JSSE)KLASSPATH=$(REQUIRED_PACKAGES)$(PATHSEP)$(CLASSPATH)$(PATHSEP)$(OPTIONAL_PACKAGES)%.class: %.java # compile Java source $(JAVAC) -classpath "${KLASSPATH}" $<%: %.class # run Java class $(JAVA) -classpath "${KLASSPATH}" $(PROPERTIES) $@RM = rm -fSAMPLE_CLASSES = \ AddDocument.class \ AddURLToCollection.class \ AddURLToServer.class \ BlendedDateSorting.class \ CommonsQueryLog.class \ CommonsQueryLogging.class \ DateSorting.class \ DedupSearchOneCollection.class \ DiagnosticLogging.class \ EditorialSearchOneCollection.class \ FileScanner.class \ GetURLStatusFromCollection.class \ GetURLStatusFromServer.class \ Grouping.class \ Highlight.class \ PollExchangeCollection.class \ PollNetnewsCollection.class \ QueryLogging.class \ QueryTransform.class \ ReloadTopics.class \ RescanScannerCollection.class \ RestartServer.class \ RevisitSpiderCollection.class \ RevisitURLInCollection.class \ RevisitURLInServer.class \ SearchAndCheckAccess.class \ SearchKeywords.class \ SearchLDAP.class \ SearchLocale.class \ SearchMirroringServers.class \ SearchOneCollection.class \ SearchOneServer.class \ SearchQuickLinks.class \ SearchTwoCollections.class \ SearchTwoServers.class \ ShowServerInfo.class \ ShowXPAVersion.class \ ShutdownServer.class \ Spelling.class \ Thesaurus.class \ UsePerformanceCounter.class SERVLET_SAMPLES = \ CounterServlet.class \ ProxyServlet.class \ LDAPServlet.class \ LoginServlet.class \ MyServlet.class \ DebugServlet.class \ SSOSearchServlet.class \ SearchServlet.classSERVLET_UTIL_CLASSES = \ CommonsQueryLog.class \ PragmaticHTTPAccessGuard.class \ SecureFilterSearchable.class \ DebugAccessGuard.class# Note: use *Servlet*.class to catch all internal classesSERVLET_DEPLOY_CLASSES = \ *Servlet*.class \ CommonsQueryLog*.class \ PragmaticHTTPAccessGuard*.class \ SecureFilterSearchable*.class \ DebugAccessGuard*.class.PHONY: help check all servlets clean love war SearchLDAP LDAPServlet deploy httpshelp: @echo @echo "Use the following targets to make XPA sample files:" @echo @echo " check Check for required libraries" @echo " all Build all sample files." @echo " clean Clean up temporary files." @echo " war Build the Servlet sample .war file." @echo " deploy Build and deploy the Servlet sample .war file." @echo " <appname> Build and run the sample application <appname>" @echo " from the command line." @echo " For example: make ShowXPAVersion" @echo @echo " PATHSEP is '$(PATHSEP)'" @echo @echo "CLASSPATH is '$(KLASSPATH)'" @echo check: @echo " PATHSEP is '$(PATHSEP)'" @echo @echo "CLASSPATH is '$(KLASSPATH)'" @echo @echo Java Version: $(JAVA) -version -classpath "$(KLASSPATH)" @echo @echo Checking for xpasearch.jar ls -l $(XPA_SEARCH) @echo @echo Checking for commons-logging.jar ls -l $(JCL_LIB) @echoall: $(SAMPLE_CLASSES) SearchExamples.warservlets: $(XPA_SEARCH) $(JCL_LIB) $(SERVLET_SAMPLES) $(SERVLET_UTIL_CLASSES)SearchLDAP: $(LDAP_JDK)LDAPServlet: $(LDAP_JDK)clean: -$(RM) *.class -$(RM) -rf WEB-INF SearchExamples.warlove: @echo @echo "make war, not love"war: SearchExamples.warSearchExamples.war: web.xml context.xml $(SERVLET_SAMPLES) index.html \ $(XPA_SEARCH) $(LDAP_JDK) $(JCL_LIB) \ $(SERVLET_SAMPLES) $(SERVLET_UTIL_CLASSES) -$(RM) -rf WEB-INF SearchExamples.war mkdir WEB-INF mkdir WEB-INF/lib mkdir WEB-INF/classes cp -p web.xml context.xml WEB-INF/ cp -p $(XPA_SEARCH) $(LDAP_JDK) $(JCL_LIB) WEB-INF/lib/ cp -p $(SERVLET_DEPLOY_CLASSES) WEB-INF/classes/ $(JAR) -cf SearchExamples.war index.html WEB-INF/ -C .. docsdeploy: SearchExamples.war cp SearchExamples.war "${APPSERVER_DEPLOY}/" -cd "${APPSERVER_DEPLOY}/SearchExamples" || mkdir "${APPSERVER_DEPLOY}/SearchExamples" cd "${APPSERVER_DEPLOY}/SearchExamples" && $(JAR) -xf ../SearchExamples.war$(XPA_SEARCH): @echo @echo Unable to locate $@ - edit the makefile to fix @echo @exit 1$(JCL_LIB): @echo @echo Unable to locate $@ - edit the makefile to fix @echo commons-logging.jar is available from http://jakarta.apache.org/commons/logging @echo 1$(LDAP_JDK): @echo @echo Unable to locate $@ - edit the makefile to fix @echo ldapjdk.jar is available from http://www.mozilla.org/directory/javasdk.html @echo 1https: -@mkdir com -@mkdir com/ultraseek -@mkdir com/ultraseek/HTTPClient cp HTTPSConnection.java.sun com/ultraseek/HTTPClient/HTTPSConnection.java ${JAVAC} -classpath "${KLASSPATH}" com/ultraseek/HTTPClient/HTTPSConnection.java
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -