commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chtom...@apache.org
Subject svn commit: r1807463 - in /commons/proper/jelly/branches/1.X: BUILDING.md build.xml
Date Wed, 06 Sep 2017 10:39:04 GMT
Author: chtompki
Date: Wed Sep  6 10:39:04 2017
New Revision: 1807463

URL: http://svn.apache.org/viewvc?rev=1807463&view=rev
Log:
Building all dists with ant script, build documentation

Modified:
    commons/proper/jelly/branches/1.X/BUILDING.md
    commons/proper/jelly/branches/1.X/build.xml

Modified: commons/proper/jelly/branches/1.X/BUILDING.md
URL: http://svn.apache.org/viewvc/commons/proper/jelly/branches/1.X/BUILDING.md?rev=1807463&r1=1807462&r2=1807463&view=diff
==============================================================================
--- commons/proper/jelly/branches/1.X/BUILDING.md (original)
+++ commons/proper/jelly/branches/1.X/BUILDING.md Wed Sep  6 10:39:04 2017
@@ -1,8 +1,73 @@
 Building the 1.X branch.
 ========================
 
+The release build was last run with `java-1_5_0_22` and `ant-1.6.0`. However, the build should
be runnable with any `java-5` and up to `ant-1.9.9`. If you can not find a way to install
these, we have included the mechanics for building a [docker container](#docker), in which
you can run the ant build.
+
+### Ant targets
+
+__Default target:__ jar
+__Test target:__ test
+__Release Target:__ dist
+
+* *clean* - Clean up the generated directories
+* *compile* - Compile the code
+* *dist* - Create a distribution
+* *init* - Initializes some properties
+* *jar* - Create the jar
+* *javadoc* - Generate javadoc
+* *javadoc-jar* - Generate javadoc-jar
+* *sources-jar* - Generate sources-jar
+* *test* - Run the test cases
+* *test-sources-jar* - Generate test-sources-jar
+* *tests-jar* - Generate tests-jar
+
+__Other targets:__
+
+* *get-dep-commons-beanutils.jar* - Download the dependency : commons-beanutils.jar
+* *get-dep-commons-cli.jar* - Download the dependency : commons-cli.jar
+* *get-dep-commons-collections.jar* - Download the dependency : commons-collections.jar
+* *get-dep-commons-discovery.jar* - Download the dependency : commons-discovery.jar
+* *get-dep-commons-jexl.jar* - Download the dependency : commons-jexl.jar
+* *get-dep-commons-lang.jar* - Download the dependency : commons-lang.jar
+* *get-dep-commons-logging.jar* - Download the dependency : commons-logging.jar
+* *get-dep-dom4j.jar* - Download the dependency : dom4j.jar
+* *get-dep-forehead.jar* - Download the dependency : forehead.jar
+* *get-dep-jaxen.jar* - Download the dependency : jaxen.jar
+* *get-dep-jstl.jar* - Download the dependency : jstl.jar
+* *get-dep-junit.jar* - Download the dependency : junit.jar
+* *get-dep-servletapi.jar* - Download the dependency : servletapi.jar
+* *get-dep-xerces.jar* - Download the dependency : xerces.jar
+* *get-dep-xml-apis.jar* - Download the dependency : xml-apis.jar
+
+__Targets with no descriptions:__
+
+* compile-tests
+* get-custom-dep-commons-beanutils.jar
+* get-custom-dep-commons-cli.jar
+* get-custom-dep-commons-collections.jar
+* get-custom-dep-commons-discovery.jar
+* get-custom-dep-commons-jexl.jar
+* get-custom-dep-commons-lang.jar
+* get-custom-dep-commons-logging.jar
+* get-custom-dep-dom4j.jar
+* get-custom-dep-forehead.jar
+* get-custom-dep-jaxen.jar
+* get-custom-dep-jstl.jar
+* get-custom-dep-junit.jar
+* get-custom-dep-servletapi.jar
+* get-custom-dep-xerces.jar
+* get-custom-dep-xml-apis.jar
+* get-deps
+* install-maven
+* internal-test
+* junit-present
+* noProxy
+* setProxy
+
+
 As this code is fairly old, we have constructed a docker container for the purpose of building
the `1.X` branch. For the sake of completeness, the code for that container is availble below.
 
+## docker
 ### Building the container.
 
 You need to begin with downloading `jdk-1_5_0_22-linux-amd64.bin` from oracle. Note this
is available at the [Java SE 5 downloads page](http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-javase5-419410.html).
Once you have the aformentioned installer downloaded to this directory as `jdk-1_5_0_22-linux-amd64.bin`
(assuming you have a local copy of the project), you can run
@@ -22,4 +87,4 @@ docker run -v /path/to/checked/out/commo
 
 assuming that you ran the exact build command from above (naming the container `commons-jelly-build-env`).
Once here you will be logged in on the command line in the container as the `root` user with
the above installed and your `commons-jelly` directory shared into the directory on the container
`/root/commons-jelly-1.x`. From here you can `cd` to that directory and run any of the ant
commands you wish in the project.
 
-For more details on running within the container refer to the following email on the development
mailing list: http://markmail.org/message/i6lk2zfrcexs3lgq
\ No newline at end of file
+For more details on running within the container refer to the following email on the development
mailing list: http://markmail.org/message/i6lk2zfrcexs3lgq

Modified: commons/proper/jelly/branches/1.X/build.xml
URL: http://svn.apache.org/viewvc/commons/proper/jelly/branches/1.X/build.xml?rev=1807463&r1=1807462&r2=1807463&view=diff
==============================================================================
--- commons/proper/jelly/branches/1.X/build.xml (original)
+++ commons/proper/jelly/branches/1.X/build.xml Wed Sep  6 10:39:04 2017
@@ -37,7 +37,7 @@
   <property name="proxy.password" value="">
   </property>
   <path id="build.classpath">
-    <pathelement location="${libdir}/servletapi/jars/servletapi-2.3.jar">
+    <pathelement location="${libdir}/servlet-api/jars/servlet-api-2.3.jar">
     </pathelement>
     <pathelement location="${libdir}/commons-cli/jars/commons-cli-1.0.jar">
     </pathelement>
@@ -68,6 +68,40 @@
     <pathelement location="${libdir}/xerces/jars/xerces-2.2.1.jar">
     </pathelement>
   </path>
+  <fileset id="sources" dir="${basedir}">
+    <include name="BUILDING.md" />
+    <include name="CONTRIBUTING.md" />
+    <include name="Dockerfile" />
+    <include name="KEYS" />
+    <include name="LICENSE.txt" />
+    <include name="NOTICE.txt" />
+    <include name="README-binary-dist.txt" />
+    <include name="README.txt" />
+    <include name="RELEASE-NOTES.txt" />
+    <include name="build.properties.sample" />
+    <include name="build.xml" />
+    <include name="docker/**" />
+    <include name="jelly-tags/**" />
+    <include name="maven.xml" />
+    <include name="parent-project.xml" />
+    <include name="pom.xml" />
+    <include name="project.properties" />
+    <include name="project.xml" />
+    <include name="short-license.txt" />
+    <include name="src/**" />
+    <include name="xdocs/**" />
+  </fileset>
+  <fileset id="binaries" dir="dist">
+    <include name="${final.name}.jar"/>
+    <include name="${final.name}-javadoc.jar"/>
+    <include name="${final.name}-sources.jar"/>
+    <include name="${final.name}-test-sources.jar"/>
+    <include name="${final.name}-tests.jar"/>
+    <include name="LICENSE.txt"/>
+    <include name="NOTICE.txt"/>
+    <include name="RELEASE-NOTES.txt" />
+    <include name="docs/**" />
+  </fileset>
   <target name="init" description="o Initializes some properties">
     <mkdir dir="${libdir}">
     </mkdir>
@@ -137,9 +171,24 @@
     <copy todir="dist">
       <fileset dir="${defaulttargetdir}" includes="*.jar">
       </fileset>
-      <fileset dir="${basedir}" includes="LICENSE*, README*">
+      <fileset dir="${basedir}" includes="LICENSE*, README*, RELEASE*, NOTICE*">
       </fileset>
     </copy>
+    <copy file="pom.xml" tofile="dist/${final.name}.pom" />
+    <mkdir dir="dist/sources"/>
+    <copy todir="dist/sources">
+      <fileset refid="sources"/>
+    </copy>
+    <mkdir dir="dist/binaries"/>
+    <copy todir="dist/binaries">
+      <fileset refid="binaries"/>
+    </copy>
+    <zip destfile="dist/${final.name}-bin.zip" basedir="dist/binaries"/>
+    <tar destfile="dist/${final.name}-bin.tar.gz" basedir="dist/binaries" compression="gzip"
/>
+    <zip destfile="dist/${final.name}-src.zip" basedir="dist/sources"/>
+    <tar destfile="dist/${final.name}-src.tar.gz" basedir="dist/sources" compression="gzip"/>
+    <delete dir="dist/sources" />
+    <delete dir="dist/binaries" />
   </target>
   <target name="test" description="o Run the test cases" if="test.failure" depends="internal-test">
     <fail message="There were test failures.">
@@ -252,22 +301,22 @@
       <fileset dir="${basedir}/src/test" includes="**/**"/>
     </jar>
   </target>
-  <target name="get-dep-servletapi.jar" description="o Download the dependency : servletapi.jar"
unless="servletapi.jar" depends="init,setProxy,noProxy,get-custom-dep-servletapi.jar">
-    <mkdir dir="${libdir}/servletapi/jars/">
+  <target name="get-dep-servletapi.jar" description="o Download the dependency : servlet-api.jar"
unless="servlet-api.jar" depends="init,setProxy,noProxy,get-custom-dep-servletapi.jar">
+    <mkdir dir="${libdir}/servlet-api/jars/">
     </mkdir>
-    <get dest="${libdir}/servletapi/jars/servletapi-2.3.jar" usetimestamp="true" ignoreerrors="true"
src="http://www.ibiblio.org/maven/servletapi/jars/servletapi-2.3.jar">
+    <get dest="${libdir}/servlet-api/jars/servlet-api-2.3.jar" usetimestamp="true" ignoreerrors="true"
src="https://search.maven.org/remotecontent?filepath=javax/servlet/servlet-api/2.3/servlet-api-2.3.jar">
     </get>
   </target>
-  <target name="get-custom-dep-servletapi.jar" if="servletapi.jar" depends="init,setProxy,noProxy">
-    <mkdir dir="${libdir}/servletapi/jars/">
+  <target name="get-custom-dep-servletapi.jar" if="servlet-api.jar" depends="init,setProxy,noProxy">
+    <mkdir dir="${libdir}/servlet-api/jars/">
     </mkdir>
-    <get dest="${libdir}/servletapi/jars/servletapi-2.3.jar" usetimestamp="true" ignoreerrors="true"
src="${servletapi.jar}">
+    <get dest="${libdir}/servlet-api/jars/servlet-api-2.3.jar" usetimestamp="true" ignoreerrors="true"
src="${servletapi.jar}">
     </get>
   </target>
   <target name="get-dep-commons-cli.jar" description="o Download the dependency : commons-cli.jar"
unless="commons-cli.jar" depends="init,setProxy,noProxy,get-custom-dep-commons-cli.jar">
     <mkdir dir="${libdir}/commons-cli/jars/">
     </mkdir>
-    <get dest="${libdir}/commons-cli/jars/commons-cli-1.0.jar" usetimestamp="true" ignoreerrors="true"
src="http://www.ibiblio.org/maven/commons-cli/jars/commons-cli-1.0.jar">
+    <get dest="${libdir}/commons-cli/jars/commons-cli-1.0.jar" usetimestamp="true" ignoreerrors="true"
src="https://search.maven.org/remotecontent?filepath=commons-cli/commons-cli/1.0/commons-cli-1.0.jar">
     </get>
   </target>
   <target name="get-custom-dep-commons-cli.jar" if="commons-cli.jar" depends="init,setProxy,noProxy">
@@ -279,7 +328,7 @@
   <target name="get-dep-commons-lang.jar" description="o Download the dependency : commons-lang.jar"
unless="commons-lang.jar" depends="init,setProxy,noProxy,get-custom-dep-commons-lang.jar">
     <mkdir dir="${libdir}/commons-lang/jars/">
     </mkdir>
-    <get dest="${libdir}/commons-lang/jars/commons-lang-2.0.jar" usetimestamp="true" ignoreerrors="true"
src="http://www.ibiblio.org/maven/commons-lang/jars/commons-lang-2.0.jar">
+    <get dest="${libdir}/commons-lang/jars/commons-lang-2.0.jar" usetimestamp="true" ignoreerrors="true"
src="https://search.maven.org/remotecontent?filepath=commons-lang/commons-lang/2.0/commons-lang-2.0.jar">
     </get>
   </target>
   <target name="get-custom-dep-commons-lang.jar" if="commons-lang.jar" depends="init,setProxy,noProxy">
@@ -291,7 +340,7 @@
   <target name="get-dep-commons-discovery.jar" description="o Download the dependency
: commons-discovery.jar" unless="commons-discovery.jar" depends="init,setProxy,noProxy,get-custom-dep-commons-discovery.jar">
     <mkdir dir="${libdir}/commons-discovery/jars/">
     </mkdir>
-    <get dest="${libdir}/commons-discovery/jars/commons-discovery-20030211.213356.jar"
usetimestamp="true" ignoreerrors="true" src="http://www.ibiblio.org/maven/commons-discovery/jars/commons-discovery-20030211.213356.jar">
+    <get dest="${libdir}/commons-discovery/jars/commons-discovery-20030211.213356.jar"
usetimestamp="true" ignoreerrors="true" src="https://search.maven.org/remotecontent?filepath=commons-discovery/commons-discovery/20030211.213356/commons-discovery-20030211.213356.jar">
     </get>
   </target>
   <target name="get-custom-dep-commons-discovery.jar" if="commons-discovery.jar" depends="init,setProxy,noProxy">
@@ -303,7 +352,7 @@
   <target name="get-dep-forehead.jar" description="o Download the dependency : forehead.jar"
unless="forehead.jar" depends="init,setProxy,noProxy,get-custom-dep-forehead.jar">
     <mkdir dir="${libdir}/forehead/jars/">
     </mkdir>
-    <get dest="${libdir}/forehead/jars/forehead-1.0-beta-5.jar" usetimestamp="true" ignoreerrors="true"
src="http://www.ibiblio.org/maven/forehead/jars/forehead-1.0-beta-5.jar">
+    <get dest="${libdir}/forehead/jars/forehead-1.0-beta-5.jar" usetimestamp="true" ignoreerrors="true"
src="https://search.maven.org/remotecontent?filepath=forehead/forehead/1.0-beta-5/forehead-1.0-beta-5.jar">
     </get>
   </target>
   <target name="get-custom-dep-forehead.jar" if="forehead.jar" depends="init,setProxy,noProxy">
@@ -315,7 +364,7 @@
   <target name="get-dep-jstl.jar" description="o Download the dependency : jstl.jar" unless="jstl.jar"
depends="init,setProxy,noProxy,get-custom-dep-jstl.jar">
     <mkdir dir="${libdir}/jstl/jars/">
     </mkdir>
-    <get dest="${libdir}/jstl/jars/jstl-1.0.6.jar" usetimestamp="true" ignoreerrors="true"
src="http://www.ibiblio.org/maven/jstl/jars/jstl-1.0.6.jar">
+    <get dest="${libdir}/jstl/jars/jstl-1.0.6.jar" usetimestamp="true" ignoreerrors="true"
src="https://search.maven.org/remotecontent?filepath=javax/servlet/jstl/1.0.6/jstl-1.0.6.jar">
     </get>
   </target>
   <target name="get-custom-dep-jstl.jar" if="jstl.jar" depends="init,setProxy,noProxy">
@@ -327,7 +376,7 @@
   <target name="get-dep-junit.jar" description="o Download the dependency : junit.jar"
unless="junit.jar" depends="init,setProxy,noProxy,get-custom-dep-junit.jar">
     <mkdir dir="${libdir}/junit/jars/">
     </mkdir>
-    <get dest="${libdir}/junit/jars/junit-3.8.1.jar" usetimestamp="true" ignoreerrors="true"
src="http://www.ibiblio.org/maven/junit/jars/junit-3.8.1.jar">
+    <get dest="${libdir}/junit/jars/junit-3.8.1.jar" usetimestamp="true" ignoreerrors="true"
src="https://search.maven.org/remotecontent?filepath=junit/junit/3.8.1/junit-3.8.1.jar">
     </get>
   </target>
   <target name="get-custom-dep-junit.jar" if="junit.jar" depends="init,setProxy,noProxy">
@@ -339,7 +388,7 @@
   <target name="get-dep-commons-jexl.jar" description="o Download the dependency : commons-jexl.jar"
unless="commons-jexl.jar" depends="init,setProxy,noProxy,get-custom-dep-commons-jexl.jar">
     <mkdir dir="${libdir}/commons-jexl/jars/">
     </mkdir>
-    <get dest="${libdir}/commons-jexl/jars/commons-jexl-1.0.jar" usetimestamp="true" ignoreerrors="true"
src="http://www.ibiblio.org/maven/commons-jexl/jars/commons-jexl-1.0.jar">
+    <get dest="${libdir}/commons-jexl/jars/commons-jexl-1.0.jar" usetimestamp="true" ignoreerrors="true"
src="https://search.maven.org/remotecontent?filepath=commons-jexl/commons-jexl/1.0/commons-jexl-1.0.jar">
     </get>
   </target>
   <target name="get-custom-dep-commons-jexl.jar" if="commons-jexl.jar" depends="init,setProxy,noProxy">
@@ -351,7 +400,7 @@
   <target name="get-dep-xml-apis.jar" description="o Download the dependency : xml-apis.jar"
unless="xml-apis.jar" depends="init,setProxy,noProxy,get-custom-dep-xml-apis.jar">
     <mkdir dir="${libdir}/xml-apis/jars/">
     </mkdir>
-    <get dest="${libdir}/xml-apis/jars/xml-apis-1.0.b2.jar" usetimestamp="true" ignoreerrors="true"
src="http://www.ibiblio.org/maven/xml-apis/jars/xml-apis-1.0.b2.jar">
+    <get dest="${libdir}/xml-apis/jars/xml-apis-1.0.b2.jar" usetimestamp="true" ignoreerrors="true"
src="https://search.maven.org/remotecontent?filepath=xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2.jar">
     </get>
   </target>
   <target name="get-custom-dep-xml-apis.jar" if="xml-apis.jar" depends="init,setProxy,noProxy">
@@ -363,7 +412,7 @@
   <target name="get-dep-commons-beanutils.jar" description="o Download the dependency
: commons-beanutils.jar" unless="commons-beanutils.jar" depends="init,setProxy,noProxy,get-custom-dep-commons-beanutils.jar">
     <mkdir dir="${libdir}/commons-beanutils/jars/">
     </mkdir>
-    <get dest="${libdir}/commons-beanutils/jars/commons-beanutils-1.6.jar" usetimestamp="true"
ignoreerrors="true" src="http://www.ibiblio.org/maven/commons-beanutils/jars/commons-beanutils-1.6.jar">
+    <get dest="${libdir}/commons-beanutils/jars/commons-beanutils-1.6.jar" usetimestamp="true"
ignoreerrors="true" src="https://search.maven.org/remotecontent?filepath=commons-beanutils/commons-beanutils/1.6/commons-beanutils-1.6.jar">
     </get>
   </target>
   <target name="get-custom-dep-commons-beanutils.jar" if="commons-beanutils.jar" depends="init,setProxy,noProxy">
@@ -375,7 +424,7 @@
   <target name="get-dep-commons-collections.jar" description="o Download the dependency
: commons-collections.jar" unless="commons-collections.jar" depends="init,setProxy,noProxy,get-custom-dep-commons-collections.jar">
     <mkdir dir="${libdir}/commons-collections/jars/">
     </mkdir>
-    <get dest="${libdir}/commons-collections/jars/commons-collections-2.1.jar" usetimestamp="true"
ignoreerrors="true" src="http://www.ibiblio.org/maven/commons-collections/jars/commons-collections-2.1.jar">
+    <get dest="${libdir}/commons-collections/jars/commons-collections-2.1.jar" usetimestamp="true"
ignoreerrors="true" src="https://search.maven.org/remotecontent?filepath=commons-collections/commons-collections/2.1/commons-collections-2.1.jar">
     </get>
   </target>
   <target name="get-custom-dep-commons-collections.jar" if="commons-collections.jar" depends="init,setProxy,noProxy">
@@ -387,7 +436,7 @@
   <target name="get-dep-commons-logging.jar" description="o Download the dependency :
commons-logging.jar" unless="commons-logging.jar" depends="init,setProxy,noProxy,get-custom-dep-commons-logging.jar">
     <mkdir dir="${libdir}/commons-logging/jars/">
     </mkdir>
-    <get dest="${libdir}/commons-logging/jars/commons-logging-1.0.3.jar" usetimestamp="true"
ignoreerrors="true" src="http://www.ibiblio.org/maven/commons-logging/jars/commons-logging-1.0.3.jar">
+    <get dest="${libdir}/commons-logging/jars/commons-logging-1.0.3.jar" usetimestamp="true"
ignoreerrors="true" src="https://search.maven.org/remotecontent?filepath=commons-logging/commons-logging/1.0.3/commons-logging-1.0.3.jar">
     </get>
   </target>
   <target name="get-custom-dep-commons-logging.jar" if="commons-logging.jar" depends="init,setProxy,noProxy">
@@ -399,7 +448,7 @@
   <target name="get-dep-dom4j.jar" description="o Download the dependency : dom4j.jar"
unless="dom4j.jar" depends="init,setProxy,noProxy,get-custom-dep-dom4j.jar">
     <mkdir dir="${libdir}/dom4j/jars/">
     </mkdir>
-    <get dest="${libdir}/dom4j/jars/dom4j-1.5.2.jar" usetimestamp="true" ignoreerrors="true"
src="http://www.ibiblio.org/maven/dom4j/jars/dom4j-1.5.2.jar">
+    <get dest="${libdir}/dom4j/jars/dom4j-1.5.2.jar" usetimestamp="true" ignoreerrors="true"
src="https://search.maven.org/remotecontent?filepath=dom4j/dom4j/1.5.2/dom4j-1.5.2.jar">
     </get>
   </target>
   <target name="get-custom-dep-dom4j.jar" if="dom4j.jar" depends="init,setProxy,noProxy">
@@ -411,7 +460,7 @@
   <target name="get-dep-jaxen.jar" description="o Download the dependency : jaxen.jar"
unless="jaxen.jar" depends="init,setProxy,noProxy,get-custom-dep-jaxen.jar">
     <mkdir dir="${libdir}/jaxen/jars/">
     </mkdir>
-    <get dest="${libdir}/jaxen/jars/jaxen-1.1-beta-4.jar" usetimestamp="true" ignoreerrors="true"
src="http://www.ibiblio.org/maven/jaxen/jars/jaxen-1.1-beta-4.jar">
+    <get dest="${libdir}/jaxen/jars/jaxen-1.1-beta-4.jar" usetimestamp="true" ignoreerrors="true"
src="https://search.maven.org/remotecontent?filepath=jaxen/jaxen/1.1-beta-4/jaxen-1.1-beta-4.jar">
     </get>
   </target>
   <target name="get-custom-dep-jaxen.jar" if="jaxen.jar" depends="init,setProxy,noProxy">
@@ -423,7 +472,7 @@
   <target name="get-dep-xerces.jar" description="o Download the dependency : xerces.jar"
unless="xerces.jar" depends="init,setProxy,noProxy,get-custom-dep-xerces.jar">
     <mkdir dir="${libdir}/xerces/jars/">
     </mkdir>
-    <get dest="${libdir}/xerces/jars/xerces-2.2.1.jar" usetimestamp="true" ignoreerrors="true"
src="http://www.ibiblio.org/maven/xerces/jars/xerces-2.2.1.jar">
+    <get dest="${libdir}/xerces/jars/xerces-2.2.1.jar" usetimestamp="true" ignoreerrors="true"
src="https://search.maven.org/remotecontent?filepath=xerces/xercesImpl/2.2.1/xercesImpl-2.2.1.jar">
     </get>
   </target>
   <target name="get-custom-dep-xerces.jar" if="xerces.jar" depends="init,setProxy,noProxy">



Mime
View raw message