bundle-ant.xml.svn-base

来自「portal越来越流行了」· SVN-BASE 代码 · 共 127 行

SVN-BASE
127
字号
<!--  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      http://www.apache.org/licenses/LICENSE-2.0  Unless required by applicable law or agreed to in writing, software  distributed under the License is distributed on an "AS IS" BASIS,  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the License for the specific language governing permissions and  limitations under the License.--><!--	Used by the maven assembly plugin to assemble the Tomcat-bundled distribution of Pluto 1.1. In	doing so it:	1. Downloads Tomcat from Apache and unzips it into a working directory. 	2. Adds emptySessionPath="true" to Tomcat's server.xml.	3. Uncomments SingleSignOn Valve in server.xml so that Tomcat manager app can be used without additional login.	4. Adds a pluto user with pluto and manager role to tomcat-users.xml.	5. Adds a pluto and manager role to the tomcat user in tomcat-users.xml.--><project name="PlutoDistributions" default="package">	<xmlproperty file="pom.xml"/>    <property name="base.tomcat.project"              value="apache"              description="Base project name for tomcat"/>    <property name="tomcat.version"              value="5.5.23"              description="Version of Tomcat to deploy Pluto"/>    <property name="base.name"              value="${base.tomcat.project}-tomcat-${tomcat.version}"/>    <property name="project.build.directory"              value="target"              description="Build directory"/>    <property name="package.dir"              value="${project.build.directory}/pluto-tomcat"/>    <target name="package"            depends="download-tomcat,update-tomcat-config"            description="Package pluto into a tomcat distribution"/>    <target name="download-tomcat"            description="Download tomcat">		<get src="http://archive.apache.org/dist/tomcat/tomcat-5/v${tomcat.version}/bin/${base.name}.tar.gz"		     dest="${package.dir}.tar.gz" verbose="true"		/>        <gunzip src="${package.dir}.tar.gz"			dest="${package.dir}.tar"			description="Creates tar from tar.gz tomcat dist"		/>		<untar src="${package.dir}.tar"			dest="${package.dir}-unzip"			description="Untars tomcat dist"		/>        <move todir="${package.dir}">            <fileset dir="${package.dir}-unzip/${base.tomcat.project}-tomcat-${tomcat.version}">                <include name="*"/>                <include name="**/*"/>            </fileset>        </move>    </target>    <target name="update-tomcat-config">		<copy file="${basedir}/../README" todir="${package.dir}"/>		<!-- Add emptySessionPath="true" to Connector element in server.xml -->		<replace file="${package.dir}/conf/server.xml"			token="connectionTimeout=&quot;20000&quot; disableUploadTimeout=&quot;true&quot; /&gt;"			value="connectionTimeout=&quot;20000&quot; disableUploadTimeout=&quot;true&quot; emptySessionPath=&quot;true&quot; /&gt;"			summary="true"		/>		<!-- Uncomment Single Sign On so Tomcat manager can be used without additional login -->		<replace file="${package.dir}/conf/server.xml"			token="&lt;Valve className=&quot;org.apache.catalina.authenticator.SingleSignOn&quot; /&gt;"			value="--&gt;${line.separator}        &lt;Valve className=&quot;org.apache.catalina.authenticator.SingleSignOn&quot; /&gt;${line.separator}        &lt;!--"			summary="true"		/>		<!-- Put tomcat user in 'pluto' and 'manager' roles in tomcat-users.xml -->		<replace file="${package.dir}/conf/tomcat-users.xml"			token="roles=&quot;tomcat&quot;"			value="roles=&quot;tomcat,pluto,manager&quot;"			summary="true"		/>		<!-- Add 'pluto' user to tomcat-users.xml and put user in pluto and manager roles -->		<replace file="${package.dir}/conf/tomcat-users.xml"			token="&lt;/tomcat-users&gt;"			value="&lt;user name=&quot;pluto&quot; password=&quot;pluto&quot; roles=&quot;pluto,tomcat,manager&quot; /&gt;${line.separator}&lt;/tomcat-users&gt;"			summary="true"		/>    </target>	<target name="run-maven" description="Runs maven2 goals">		<exec executable="mvn" vmlauncher="false" dir="${basedir}">			<arg line="install"/>		</exec>		<exec executable="mvn" vmlauncher="false" dir="${basedir}">			<arg line="pluto:install -DinstallDir=${package.dir}"/>		</exec>	</target></project>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?