LANG-1175: removed additional files
This commit is contained in:
parent
1dbdbfc3fa
commit
8bdfc71491
|
@ -1,90 +0,0 @@
|
|||
#
|
||||
# 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.
|
||||
#
|
||||
|
||||
# $Id$
|
||||
|
||||
# The location of the "junit.jar" JAR file
|
||||
junit.jar = ${junit.home}/junit-4.12.jar
|
||||
|
||||
# The location of the Easymock jar
|
||||
easymock.jar = ${easymock.home}/easymock-3.3.1.jar
|
||||
|
||||
# The location of the Commons-IO jar
|
||||
commons-io.jar = ${commons-io.home}/commons-io-2.4.jar
|
||||
|
||||
# The location of Hamcrest jar
|
||||
hamcrest.jar = ${hamcrest.home}/hamcrest-all-1.3.jar
|
||||
|
||||
# Whether or not to fork tests
|
||||
junit.fork = true
|
||||
|
||||
# The name of this component
|
||||
component.name = commons-lang3
|
||||
|
||||
# The primary package name of this component
|
||||
component.package = org.apache.commons.lang3
|
||||
|
||||
# The title of this component
|
||||
component.title = Core Language Utilities
|
||||
|
||||
# The current version number of this component
|
||||
component.version = 3.5-SNAPSHOT
|
||||
|
||||
# The name that is used to create the jar file
|
||||
final.name = ${component.name}-${component.version}
|
||||
|
||||
# The base directory for compilation targets
|
||||
build.home = target
|
||||
|
||||
# The base directory for component configuration files
|
||||
conf.home = src/conf
|
||||
|
||||
# The base directory for component sources
|
||||
source.home = src/main/java
|
||||
|
||||
# The base directory for unit test sources
|
||||
test.home = src/test/java
|
||||
|
||||
# Should Java compilations set the 'debug' compiler option?
|
||||
compile.debug = true
|
||||
|
||||
# Should Java compilations set the 'deprecation' compiler option?
|
||||
compile.deprecation = true
|
||||
|
||||
# Should Java compilations set the 'optimize' compiler option?
|
||||
compile.optimize = true
|
||||
|
||||
# Generate class files for specific VM version (e.g., 1.1 or 1.2).
|
||||
# Note that the default value depends on the JVM that is running Ant.
|
||||
# In particular, if you use JDK 1.4+ the generated classes will not be usable
|
||||
# for a 1.1 Java VM unless you explicitly set this attribute to the value 1.1
|
||||
# (which is the default value for JDK 1.1 to 1.3).
|
||||
compile.target = 1.6
|
||||
|
||||
# Specifies the source version for the Java compiler.
|
||||
# Corresponds to the source attribute for the ant javac task.
|
||||
# Valid values are 1.3, 1.4, 1.5.
|
||||
compile.source = 1.6
|
||||
|
||||
# Specifies the source encoding.
|
||||
compile.encoding = ISO-8859-1
|
||||
|
||||
# Should all tests fail if one does?
|
||||
test.failonerror = true
|
||||
|
||||
# The test runner to execute
|
||||
test.runner = junit.textui.TestRunner
|
|
@ -1,25 +0,0 @@
|
|||
# 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.
|
||||
##########################################################################
|
||||
# Sample Ant build.properties file for creating RCs and releasing
|
||||
##########################################################################
|
||||
|
||||
# Your apache ID - it is used for the Build-By MANIFEST header, when
|
||||
# creating the RC jars and when uploading the website
|
||||
apache.id=luckyRM
|
||||
# checkout directory for the release distribution repo
|
||||
release.path=${user.home}/lang-rc
|
||||
# SSH keyfile holding the private key
|
||||
ssh.keyfile=${user.home}/.ssh/id_rsa
|
|
@ -1,161 +0,0 @@
|
|||
<!--
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
-->
|
||||
<!--
|
||||
Build file for creating release candidates and releasing lang.
|
||||
$Id$
|
||||
-->
|
||||
<project name="release-lang" basedir="../../">
|
||||
|
||||
<target name="-init">
|
||||
<property file="src/release-tools/build.properties" />
|
||||
<property file="default.properties" />
|
||||
<!-- provide some defaults -->
|
||||
<property name="release.path" value="${user.home}/lang-rc" />
|
||||
<property name="apache.id" value="dev@commons.apache.org" />
|
||||
<property name="ssh.keyfile" value="${user.home}/.ssh/id_rsa"/>
|
||||
<property name="release.url" value="https://dist.apache.org/repos/dist/dev/commons/lang" />
|
||||
|
||||
<macrodef name="mvn">
|
||||
<attribute name="goal"/>
|
||||
<element name="more-args" implicit="true" optional="true"/>
|
||||
<sequential>
|
||||
<exec executable="mvn">
|
||||
<arg value="@{goal}" />
|
||||
<more-args/>
|
||||
</exec>
|
||||
</sequential>
|
||||
</macrodef>
|
||||
|
||||
<available property="dist-dir-exists?"
|
||||
file="${release.path}"
|
||||
type="dir"/>
|
||||
</target>
|
||||
|
||||
<target name="pre-rc" depends="-init"
|
||||
description="Prepares the download page and the release notes for rolling out a RC">
|
||||
<mvn goal="changes:announcement-generate">
|
||||
<arg value="-Prelease-notes"/>
|
||||
</mvn>
|
||||
<mvn goal="commons:download-page">
|
||||
<arg value="-Dcommons.componentid=lang"/>
|
||||
</mvn>
|
||||
</target>
|
||||
|
||||
<target name="-clear-local-repo" depends="-init">
|
||||
<property name="repo.path" value="${user.home}/.m2/repository/org/apache/commons/${component.name}/${component.version}" />
|
||||
<delete dir="${repo.path}" />
|
||||
</target>
|
||||
|
||||
<target name="-build-maven-artifacts" depends="-clear-local-repo">
|
||||
<input message="Please enter gpg passphrase..." addproperty="gpg.pass">
|
||||
<handler type="secure" />
|
||||
</input>
|
||||
|
||||
<mvn goal="deploy">
|
||||
<arg value="-Prelease" />
|
||||
<arg value="-Ptest-deploy" />
|
||||
<arg value="-Duser.name=${apache.id}" />
|
||||
<arg value="-Dgpg.passphrase=${gpg.pass}" />
|
||||
</mvn>
|
||||
</target>
|
||||
|
||||
<target name="-populate-dist-repo"
|
||||
depends="-build-maven-artifacts, -prepare-dist-area">
|
||||
<copy todir="${release.path}/binaries">
|
||||
<fileset dir="${repo.path}">
|
||||
<include name="*bin.zip*" />
|
||||
<include name="*bin.tar.gz*"/>
|
||||
</fileset>
|
||||
</copy>
|
||||
|
||||
<copy todir="${release.path}/source">
|
||||
<fileset dir="${repo.path}">
|
||||
<include name="*src.zip*" />
|
||||
<include name="*src.tar.gz*"/>
|
||||
</fileset>
|
||||
</copy>
|
||||
|
||||
<copy file="RELEASE-NOTES.txt" todir="${release.path}" />
|
||||
</target>
|
||||
|
||||
<target name="rc" description="Create the RC"
|
||||
depends="-populate-dist-repo, -create-site"/>
|
||||
|
||||
<target name="-create-site" depends="-init">
|
||||
<echo message="Creating site" />
|
||||
<mvn goal="site"/>
|
||||
</target>
|
||||
|
||||
<target name="upload-site" depends="-init"
|
||||
description="Uploads and publishes the site to the RM's apache webspace">
|
||||
<zip destfile="target/site.zip">
|
||||
<zipfileset dir="target/site" prefix="${final.name}"/>
|
||||
</zip>
|
||||
|
||||
<input message="Please enter ssh passphrase..." addproperty="ssh.pass">
|
||||
<handler type="secure" />
|
||||
</input>
|
||||
|
||||
<scp localFile="target/site.zip"
|
||||
remoteToDir="${apache.id}@people.apache.org:."
|
||||
keyfile="${ssh.keyfile}"
|
||||
passphrase="${ssh.pass}"/>
|
||||
<sshexec username="${apache.id}" host="people.apache.org"
|
||||
command="unzip -d public_html site.zip"
|
||||
keyfile="${ssh.keyfile}"
|
||||
passphrase="${ssh.pass}"/>
|
||||
<sshexec username="${apache.id}" host="people.apache.org"
|
||||
command="rm site.zip"
|
||||
keyfile="${ssh.keyfile}"
|
||||
passphrase="${ssh.pass}"/>
|
||||
</target>
|
||||
|
||||
<target name="nexus-bundle" depends="-build-maven-artifacts"
|
||||
description="Creates an upload bundle suitable for Nexus Snapshot Upload">
|
||||
<jar destfile="target/upload-bundle.jar">
|
||||
<fileset dir="${repo.path}">
|
||||
<include name="*.jar"/>
|
||||
<include name="*.jar.asc"/>
|
||||
<include name="*.pom"/>
|
||||
<include name="*.pom.asc"/>
|
||||
</fileset>
|
||||
</jar>
|
||||
</target>
|
||||
|
||||
<target name="-prepare-dist-area" depends="-checkout-dist, -update-dist"/>
|
||||
|
||||
<target name="-checkout-dist" depends="-init" unless="dist-dir-exists?">
|
||||
<echo message="Checking out ${release.url} -> ${release.path}"/>
|
||||
<exec executable="svn">
|
||||
<arg value="co" />
|
||||
<arg value="${release.url}" />
|
||||
<arg value="${release.path}" />
|
||||
</exec>
|
||||
</target>
|
||||
|
||||
<target name="-update-dist" depends="-init" if="dist-dir-exists?">
|
||||
<echo message="Updating ${release.path}"/>
|
||||
<exec executable="svn" dir="${release.path}">
|
||||
<arg value="up" />
|
||||
</exec>
|
||||
</target>
|
||||
|
||||
</project>
|
Loading…
Reference in New Issue