Author: craigmcc Date: Sat Jul 9 20:49:14 2005 New Revision: 209986 URL: http://svn.apache.org/viewcvs?rev=209986&view=rev Log: The beginnings of a global build.xml file for Shale and all its subcomponents. At present, it just has the targets to gather the dependencies together into a global "lib" directory. Quick and dirty instructions: * Download JSF RI 1.1_01 separately (not currently available from repository) * Check out latest sources * cd .../current/sandbox/tiles/core-library * Run "ant dist" * cd .../current/shale * Create a build.properties file with custom values for the necessary property settings (see default.properties for info on which ones need to be set). * Run "ant download-dependencies copy-tiles copy-jsf-ri"
In the future, we'll put common targets in this file and have the submodule build.xml files extend them. Added: struts/shale/trunk/build.xml struts/shale/trunk/default.properties Added: struts/shale/trunk/build.xml URL: http://svn.apache.org/viewcvs/struts/shale/trunk/build.xml?rev=209986&view=auto ============================================================================== --- struts/shale/trunk/build.xml (added) +++ struts/shale/trunk/build.xml Sat Jul 9 20:49:14 2005 @@ -0,0 +1,396 @@ +<!-- + + Copyright 2004-2005 The Apache Software Foundation. + + Licensed 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. + +--> + + +<project name="Shale Framework Global Build" basedir="."> + + + <!-- ===================== Initialize Property Values ==================== --> + + + <property file="build.properties"/> <!-- Local user overrides --> + <property file="default.properties"/> <!-- Standard default values --> + + + <!-- ============ Define Filesets and Paths for Dependencies ============= --> + + + <fileset id="commons-beanutils.libs" + dir="${lib.dir}/commons-beanutils"> + <include name="*.jar"/> + </fileset> + <path id="commons-beanutils.path"> + <fileset refid="commons-beanutils.libs"/> + </path> + + <fileset id="commons-chain.libs" + dir="${lib.dir}/commons-chain"> + <include name="*.jar"/> + </fileset> + <path id="commons-chain.path"> + <fileset refid="commons-chain.libs"/> + </path> + + <fileset id="commons-digester.libs" + dir="${lib.dir}/commons-digester"> + <include name="*.jar"/> + </fileset> + <path id="commons-digester.path"> + <fileset refid="commons-digester.libs"/> + </path> + + <fileset id="commons-logging.libs" + dir="${lib.dir}/commons-logging"> + <include name="*.jar"/> + </fileset> + <path id="commons-logging.path"> + <fileset refid="commons-logging.libs"/> + </path> + + <fileset id="commons-validator.libs" + dir="${lib.dir}/commons-validator"> + <include name="*.jar"/> + </fileset> + <path id="commons-validator.path"> + <fileset refid="commons-validator.libs"/> + </path> + + <fileset id="jsf-ri-api.libs" + dir="${lib.dir}/jsf-ri"> + <include name="jsf-api.jar"/> + </fileset> + <path id="jsf-ri-api.path"> + <fileset refid="jsf-ri-api.libs"/> + </path> + + <fileset id="jsf-ri-impl.libs" + dir="${lib.dir}/jsf-ri"> + <include name="jsf-impl.jar"/> + </fileset> + <path id="jsf-ri-impl.path"> + <fileset refid="jsf-ri-impl.libs"/> + </path> + + <fileset id="jsp-api.libs" + dir="${lib.dir}/jsp-api"> + <include name="*.jar"/> + </fileset> + <path id="jsp-api.path"> + <fileset refid="jsp-api.libs"/> + </path> + + <fileset id="jstl-ri-api.libs" + dir="${lib.dir}/jstl-ri"> + <include name="jstl-api.jar"/> + </fileset> + <path id="jstl-ri-api.path"> + <fileset refid="jstl-ri-api.libs"/> + </path> + + <fileset id="jstl-ri-impl.libs" + dir="${lib.dir}/jstl-ri"> + <include name="jstl-impl.jar"/> + </fileset> + <path id="jstl-ri-impl.path"> + <fileset refid="jstl-ri-impl.libs"/> + </path> + + <fileset id="junit.libs" + dir="${lib.dir}/junit"> + <include name="*.jar"/> + </fileset> + <path id="junit.path"> + <fileset refid="junit.libs"/> + </path> + + <fileset id="myfaces-api.libs" + dir="${lib.dir}/myfaces"> + <include name="myfaces-api.jar"/> + </fileset> + <path id="myfaces-api.path"> + <fileset refid="myfaces-api.libs"/> + </path> + + <fileset id="myfaces-impl.libs" + dir="${lib.dir}/myfaces"> + <include name="myfaces-impl.jar"/> + </fileset> + <path id="myfaces-impl.path"> + <fileset refid="myfaces-impl.libs"/> + </path> + + <fileset id="portlet-api.libs" + dir="${lib.dir}/portlet-api"> + <include name="*.jar"/> + </fileset> + <path id="portlet-api.path"> + <fileset refid="portlet-api.libs"/> + </path> + + <fileset id="servlet-api.libs" + dir="${lib.dir}/servlet-api"> + <include name="*.jar"/> + </fileset> + <path id="servlet-api.path"> + <fileset refid="servlet-api.libs"/> + </path> + + <!-- Post build of "clay-plugin" --> + <fileset id="shale-clay.libs" + dir="${root.dir}/clay-plugin/target/lib"> + <include name="*.jar"/> + </fileset> + <path id="shale-clay.path"> + <fileset refid="shale-clay.libs"/> + </path> + + <!-- Post build of "test-framework" --> + <fileset id="shale-test.libs" + dir="${root.dir}/test-framework/target/lib"> + <include name="*.jar"/> + </fileset> + <path id="shale-test.path"> + <fileset refid="shale-test.libs"/> + </path> + + <fileset id="spring-beans.libs" + dir="${lib.dir}/springframework"> + <include name="spring-beans.jar"/> + </fileset> + <path id="spring-beans.path"> + <fileset refid="spring-beans.libs"/> + </path> + + <fileset id="spring-context.libs" + dir="${lib.dir}/springframework"> + <include name="spring-context.jar"/> + </fileset> + <path id="spring-context.path"> + <fileset refid="spring-context.libs"/> + </path> + + <fileset id="spring-core.libs" + dir="${lib.dir}/springframework"> + <include name="spring-core.jar"/> + </fileset> + <path id="spring-core.path"> + <fileset refid="spring-core.libs"/> + </path> + + <fileset id="spring-web.libs" + dir="${lib.dir}/springframework"> + <include name="spring-web.jar"/> + </fileset> + <path id="spring-web.path"> + <fileset refid="spring-web.libs"/> + </path> + + <fileset id="taglibrarydoc.libs" + dir="${lib.dir}/taglibrarydoc"> + <include name="*.jar"/> + </fileset> + <path id="taglibrarydoc.path"> + <fileset refid="taglibrarydoc.libs"/> + </path> + + <fileset id="tiles.libs" + dir="${lib.dir}/tiles"> + <include name="*.jar"/> + </fileset> + <path id="tiles.path"> + <fileset refid="tiles.libs"/> + </path> + + + <!-- ====================== Download Dependencies ======================== --> + + + <target name="download-dependencies" + description="Download freely available dependencies"> + + <mkdir dir="${lib.dir}"/> + + <mkdir dir="${lib.dir}/commons-beanutils"/> + <get dest="${lib.dir}/commons-beanutils/commons-beanutils.jar" + ignoreerrors="true" + src="${maven.repo}/commons-beanutils/jars/commons-beanutils-1.7.0.jar" + usetimestamp="true"/> + + <mkdir dir="${lib.dir}/commons-chain"/> + <get dest="${lib.dir}/commons-chain/commons-chain.jar" + ignoreerrors="true" + src="${maven.repo}/commons-chain/jars/commons-chain-1.0.jar" + usetimestamp="true"/> + + <mkdir dir="${lib.dir}/commons-digester"/> + <get dest="${lib.dir}/commons-digester/commons-digester.jar" + ignoreerrors="true" + src="${maven.repo}/commons-digester/jars/commons-digester-1.7.jar" + usetimestamp="true"/> + + <mkdir dir="${lib.dir}/commons-logging"/> + <get dest="${lib.dir}/commons-logging/commons-logging.jar" + ignoreerrors="true" + src="${maven.repo}/commons-logging/jars/commons-logging-1.0.4.jar" + usetimestamp="true"/> + + <mkdir dir="${lib.dir}/commons-validator"/> + <get dest="${lib.dir}/commons-validator/commons-validator.jar" + ignoreerrors="true" + src="${maven.repo}/commons-validator/jars/commons-validator-1.1.4.jar" + usetimestamp="true"/> + + <mkdir dir="${lib.dir}/jsp-api"/> + <get dest="${lib.dir}/jsp-api/jsp-api.jar" + ignoreerrors="true" + src="${maven.repo}/jspapi/jars/jsp-api-2.0.jar" + usetimestamp="true"/> + + <mkdir dir="${lib.dir}/jstl-ri"/> + <get dest="${lib.dir}/jstl-ri/jstl-api.jar" + ignoreerrors="true" + src="${maven.repo}/jstl/jars/jstl-1.1.2.jar" + usetimestamp="true"/> + <get dest="${lib.dir}/jstl-ri/jstl-impl.jar" + ignoreerrors="true" + src="${maven.repo}/taglibs/jars/standard-1.1.2.jar" + usetimestamp="true"/> + + <mkdir dir="${lib.dir}/junit"/> + <get dest="${lib.dir}/junit/junit.jar" + ignoreerrors="true" + src="${maven.repo}/junit/jars/junit-3.8.1.jar" + usetimestamp="true"/> + + <mkdir dir="${lib.dir}/myfaces"/> + <get dest="${lib.dir}/myfaces/myfaces-api.jar" + ignoreerrors="true" + src="${maven.repo}/myfaces/jars/myfaces-jsf-api-1.0.9rc3.jar" + usetimestamp="true"/> + <get dest="${lib.dir}/myfaces/myfaces-impl.jar" + ignoreerrors="true" + src="${maven.repo}/myfaces/jars/myfaces-impl-1.0.9rc3.jar" + usetimestamp="true"/> + + <mkdir dir="${lib.dir}/portlet-api"/> + <get dest="${lib.dir}/portlet-api/portlet-api.jar" + ignoreerrors="true" + src="${maven.repo}/portlet-api/jars/portlet-api-1.0.jar" + usetimestamp="true"/> + + <mkdir dir="${lib.dir}/servlet-api"/> + <get dest="${lib.dir}/servlet-api/servlet-api.jar" + ignoreerrors="true" + src="${maven.repo}/servletapi/jars/servletapi-2.4.jar" + usetimestamp="true"/> + + <mkdir dir="${lib.dir}/springframework"/> + <get dest="${lib.dir}/springframework/spring.jar" + ignoreerrors="true" + src="${maven.repo}/springframework/jars/spring-1.2.2.jar" + usetimestamp="true"/> + <get dest="${lib.dir}/springframework/spring-aop.jar" + ignoreerrors="true" + src="${maven.repo}/springframework/jars/spring-aop-1.2.2.jar" + usetimestamp="true"/> + <get dest="${lib.dir}/springframework/spring-beans.jar" + ignoreerrors="true" + src="${maven.repo}/springframework/jars/spring-beans-1.2.2.jar" + usetimestamp="true"/> + <get dest="${lib.dir}/springframework/spring-context.jar" + ignoreerrors="true" + src="${maven.repo}/springframework/jars/spring-context-1.2.2.jar" + usetimestamp="true"/> + <get dest="${lib.dir}/springframework/spring-core.jar" + ignoreerrors="true" + src="${maven.repo}/springframework/jars/spring-core-1.2.2.jar" + usetimestamp="true"/> + <get dest="${lib.dir}/springframework/spring-dao.jar" + ignoreerrors="true" + src="${maven.repo}/springframework/jars/spring-dao-1.2.2.jar" + usetimestamp="true"/> + <get dest="${lib.dir}/springframework/spring-hibernate.jar" + ignoreerrors="true" + src="${maven.repo}/springframework/jars/spring-hibernate-1.2.2.jar" + usetimestamp="true"/> + <get dest="${lib.dir}/springframework/spring-jdbc.jar" + ignoreerrors="true" + src="${maven.repo}/springframework/jars/spring-jdbc-1.2.2.jar" + usetimestamp="true"/> + <get dest="${lib.dir}/springframework/spring-mock.jar" + ignoreerrors="true" + src="${maven.repo}/springframework/jars/spring-mock-1.2.2.jar" + usetimestamp="true"/> + <get dest="${lib.dir}/springframework/spring-orm.jar" + ignoreerrors="true" + src="${maven.repo}/springframework/jars/spring-orm-1.2.2.jar" + usetimestamp="true"/> + <get dest="${lib.dir}/springframework/spring-remoting.jar" + ignoreerrors="true" + src="${maven.repo}/springframework/jars/spring-remoting-1.2.2.jar" + usetimestamp="true"/> + <get dest="${lib.dir}/springframework/spring-support.jar" + ignoreerrors="true" + src="${maven.repo}/springframework/jars/spring-support-1.2.2.jar" + usetimestamp="true"/> + <get dest="${lib.dir}/springframework/spring-web.jar" + ignoreerrors="true" + src="${maven.repo}/springframework/jars/spring-web-1.2.2.jar" + usetimestamp="true"/> + <get dest="${lib.dir}/springframework/spring-webmvc.jar" + ignoreerrors="true" + src="${maven.repo}/springframework/jars/spring-webmvc-1.2.2.jar" + usetimestamp="true"/> + + <mkdir dir="${lib.dir}/taglibrarydoc"/> + <get dest="${lib.dir}/taglibrarydoc/taglibrarydoc.jar" + ignoreerrors="true" + src="${maven.repo}/taglibrarydoc/jars/tlddoc-1.2.jar" + usetimestamp="true"/> + + </target> + + + <!-- ======= Copy JavaServer Faces Reference Implementation ============== --> + + + <target name="copy-jsf-ri" + description="Copy artifacts from JSF Reference Implementation"> + + <mkdir dir="${lib.dir}/jsf-ri"/> + <copy todir="${lib.dir}/jsf-ri"> + <fileset dir="${jsfri.dir}/lib" + includes="jsf*.jar"/> + </copy> + + </target> + + + <!-- ============= Copy Standalone Tiles ================================= --> + + + <target name="copy-tiles" + description="Copy standalone Tiles artifacts"> + + <mkdir dir="${lib.dir}/tiles"/> + <copy todir="${lib.dir}/tiles" + file="${tiles.dir}/lib/tiles-core.jar"/> + + </target> + +</project> Added: struts/shale/trunk/default.properties URL: http://svn.apache.org/viewcvs/struts/shale/trunk/default.properties?rev=209986&view=auto ============================================================================== --- struts/shale/trunk/default.properties (added) +++ struts/shale/trunk/default.properties Sat Jul 9 20:49:14 2005 @@ -0,0 +1,53 @@ +# default.properties +# ------------------ +# +# Copyright 2004-2005 The Apache Software Foundation. +# +# Licensed 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. +# + + +# -------------------- Required Customzations ---------------------------- + + +# Fully qualified pathname of the directory containing this file, and the +# corresponding overall "build.xml" file. THIS VALUE MUST BE SET CORRECTLY +# FOR THE BUILD TO FUNCTION! +root.dir=${user.home}/Apache/struts/current/shale + +# Fully qualified pathname of the directory into which you have unpacked +# a binary distribution of the JavaServer Faces Reference Implementation +jsfri.dir=/usr/local/jsf-1_1_01 + +# Fully qualified pathname of the directory containing the "dist" output +# of a build of the standalone version of Tiles (currently in the Struts +# Sandbox). +tiles.dir=${root.dir}/../sandbox/tiles/core-library/dist + + +# ------------------------ Optional Customizations ----------------------- + + +# Name of the Maven repository from which we will download dependencies +# that are freely available +maven.repo=http://www.ibiblio.org/maven + + +# ----------------------- Standard Values -------------------------------- + + +# Name of the library repository directory into which we will download +# our dependencies +lib.dir=${root.dir}/lib + + --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]