You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by sc...@apache.org on 2005/06/22 19:02:22 UTC

svn commit: r192957 - /myfaces/build/trunk/build.xml

Author: schof
Date: Wed Jun 22 10:02:21 2005
New Revision: 192957

URL: http://svn.apache.org/viewcvs?rev=192957&view=rev
Log:
added download-dependencies target

Modified:
    myfaces/build/trunk/build.xml

Modified: myfaces/build/trunk/build.xml
URL: http://svn.apache.org/viewcvs/myfaces/build/trunk/build.xml?rev=192957&r1=192956&r2=192957&view=diff
==============================================================================
--- myfaces/build/trunk/build.xml (original)
+++ myfaces/build/trunk/build.xml Wed Jun 22 10:02:21 2005
@@ -1,6 +1,88 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
 <project name="myfaces-release" default="all" >
 
+<!-- ========== Prerequisite Properties =================================== -->
+
+<!--
+        REQUIRED PROPERTIES
+
+        Each of these properties MUST be set in one of the following ways:
+         * on the "ant" command line
+         * in a "build.properties" file in the base directory
+         * in a "build.properties" file in your user home directory
+
+
+        commons-beanutils.jar         The path to the JAR file of the Jakarta
+                                      Commons Beanutils package.
+                                      [Version 1.6.1 or later]
+
+        commons-codec.jar             The path to the JAR file of the Jakarta
+                                      Commons Codec package.
+                                      [Version 1.2.0 or later]
+
+        commons-collections.jar       The path to the JAR file of the Jakarta
+                                      Commons Collections package.
+                                      [Version 3.0.0 or later]
+
+        commons-digester.jar          The path to the JAR file of the Jakarta
+                                      Commons Digester package.
+                                      [Version 1.5 or later]
+
+        commons-el.jar                The path to the JAR file of the Jakarta
+                                      Commons EL package.
+                                      [Version 1.0 or later]
+                                      
+        commons-fileupload.jar        The path to the JAR file of the Jakarta
+                                      Commons FileUpload package.
+                                      [Version 1.0 or later]
+
+        commons-logging.jar           The path to the JAR file of the Jakarta
+                                      Commons Logging package.
+                                      [Version 1.0.3 or later]
+
+        commons-validator.jar         The path to the JAR file of the Jakarta
+                                      Commons Validator package.
+                                      [Version 1.1.0 or later]
+
+        jakarta-oro.jar               The path to the JAR file of the Jakarta
+                                      ORO package.
+                                      [Version 2.0.7 or later]
+
+        jsp.jar                       The path to the JAR file for the JSP
+                                      API package.
+                                      [Version 2.0 or later]
+                                      
+        jstl.jar                      The path to the JAR file for the JSTL
+                                      package.
+                                      [Version 1.1.0 or later]
+                                      
+        log4j.jar                     The path to the JAR file for the log4j
+                                      package.
+                                      [Version 1.2.8 or later]                                      
+                                      
+        portlet-api.jar               The path to the JAR file for the Portlet 
+                                      API package.
+                                      [Version 1.0 or later]                                      
+                                      
+        servlet-api.jar               The path to the JAR file for the Servlet 
+                                      API package.
+                                      [Version 2.3 or later]                                                                            
+                                      
+        struts.jar                    The path to the JAR file for the Struts
+                                      package (needed for Tiles support.)
+                                      [Version 1.2.2 or later]                                                       
+                                      
+        xdoclet.jar                   The path to the JAR file for the XDoclet 
+                                      package.
+                                      [Version 1.2 or later]                                                                                                                  
+                                      
+        xjavadoc.jar                  The path to the JAR file for the 
+                                      XJavadoc package.
+                                      [Version 1.1 or later]                                                       
+
+-->
+
+
     <property environment="env"/>
 
     <!-- Constants -->
@@ -51,6 +133,56 @@
 
     <property name="resolved-tlds.dir" location="${temp.dir}/myfaces-tlds"/>
 
+
+    <!-- ========== Derived Properties ======================================== -->
+    
+    
+    <!--
+    These property values are derived from values defined above, and
+    generally should NOT be overridden by command line settings
+    -->
+
+    <!-- This is only used if you execute "ant download-dependencies" -->
+    <property name="lib.dir" value="${basedir}/../lib" />   
+
+
+    <!-- Compilation Classpath -->
+    <path id="compile.classpath">
+      <pathelement location="${commons-beanutils.jar}"/>
+      <pathelement location="${commons-codec.jar}"/>
+      <pathelement location="${commons-collections.jar}"/>
+      <pathelement location="${commons-digester.jar}"/>
+      <pathelement location="${commons-el.jar}"/>      
+      <pathelement location="${commons-fileupload.jar}"/>
+      <pathelement location="${commons-logging.jar}"/>
+      <pathelement location="${commons-validator.jar}"/>
+      <pathelement location="${jakarta-oro.jar}"/>
+      <pathelement location="${jsp.jar}"/>
+      <pathelement location="${jstl.jar}"/>
+      <pathelement location="${portlet-api.jar}"/>
+      <pathelement location="${servlet-api.jar}"/>
+      <pathelement location="${struts.jar}"/>
+      <pathelement location="${xdoclet.jar}"/>
+      <pathelement location="${xjavadoc.jar}"/>
+
+      <!-- this is harmless if not used -->
+      <path refid="downloaded.lib.classpath"/>
+
+    </path>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
     <!-- classpath for compiling api classes -->
     <path id="jsfapi.class.path">
         <pathelement location="${servlet-jsp.jar}"/>
@@ -864,6 +996,111 @@
     </target>
 
     <target name="release" depends="prepare, src-release, bin-release, app-release"/>
+    
+    <target name="download-dependencies">
+
+        <!--
+          To use this Maven-like freedom with respect to dependency setup,
+          do the following:
+    
+          - run ant as you normally would, but add the following target to the command
+            line:
+    
+            download-dependencies
+    
+          For example:
+             C:>myproject\ant download-dependencies dist
+        -->
+
+        <mkdir dir="${lib.dir}"/>
+
+        <get dest="${lib.dir}/commons-beanutils.jar"
+            usetimestamp="true" ignoreerrors="true"
+            src="http://www.ibiblio.org/maven/commons-beanutils/jars/commons-beanutils-1.6.1.jar"/>
+
+        <get dest="${lib.dir}/commons-codec.jar"
+            usetimestamp="true" ignoreerrors="true"
+            src="http://www.ibiblio.org/maven/commons-codec/jars/commons-codec-1.2.jar"/>
+            
+        <get dest="${lib.dir}/commons-collections.jar"
+            usetimestamp="true" ignoreerrors="true"
+            src="http://www.ibiblio.org/maven/commons-collections/jars/commons-collections-3.0.jar"/>            
+            
+        <get dest="${lib.dir}/commons-digester.jar"
+            usetimestamp="true" ignoreerrors="true"
+            src="http://www.ibiblio.org/maven/commons-digester/jars/commons-digester-1.5.jar"/>
+
+        <get dest="${lib.dir}/commons-el.jar"
+            usetimestamp="true" ignoreerrors="true"
+            src="http://www.ibiblio.org/maven/commons-el/jars/commons-el-1.0.jar"/>
+            
+        <get dest="${lib.dir}/commons-fileupload.jar"
+            usetimestamp="true" ignoreerrors="true"
+            src="http://www.ibiblio.org/maven/commons-fileupload/jars/commons-fileupload-1.0.jar"/>
+
+        <get dest="${lib.dir}/commons-logging.jar"
+            usetimestamp="true" ignoreerrors="true"
+            src="http://www.ibiblio.org/maven/commons-logging/jars/commons-logging-1.0.4.jar"/>
+
+        <get dest="${lib.dir}/commons-validator.jar"
+            usetimestamp="true" ignoreerrors="true"
+            src="http://www.ibiblio.org/maven/commons-validator/jars/commons-validator-1.1.4.jar"/>
+
+        <get dest="${lib.dir}/jakarta-oro.jar"
+            usetimestamp="true" ignoreerrors="true"
+            src="http://www.ibiblio.org/maven/oro/jars/oro-2.0.7.jar"/>
+
+        <get dest="${lib.dir}/jsp.jar"
+            usetimestamp="true" ignoreerrors="true"
+            src="http://www.ibiblio.org/maven/jspapi/jars/jsp-api-2.0-20040521.jar"/>
+            
+        <get dest="${lib.dir}/jstl.jar"
+            usetimestamp="true" ignoreerrors="true"
+            src="http://www.ibiblio.org/maven/jstl/jars/jstl-1.1.0.jar"/>
+            
+        <get dest="${lib.dir}/log4j.jar"
+            usetimestamp="true" ignoreerrors="true"
+            src="http://www.ibiblio.org/maven/log4j/jars/log4j-1.2.8.jar"/>            
+
+        <get dest="${lib.dir}/portlet-api.jar"
+            usetimestamp="true" ignoreerrors="true"
+            src="http://www.ibiblio.org/maven/portlet-api/jars/portlet-api-1.0.jar"/>
+            
+        <get dest="${lib.dir}/servlet-api.jar"
+            usetimestamp="true" ignoreerrors="true"
+            src="http://www.ibiblio.org/maven/servletapi/jars/servletapi-2.3.jar"/>            
+            
+        <get dest="${lib.dir}/struts.jar"
+            usetimestamp="true" ignoreerrors="true"
+            src="http://www.ibiblio.org/maven/struts/jars/struts-1.2.2.jar"/>                        
+            
+        <get dest="${lib.dir}/xdoclet.jar"
+            usetimestamp="true" ignoreerrors="true"
+            src="http://www.ibiblio.org/maven/xdoclet/jars/xdoclet-1.2.jar"/>                        
+            
+        <get dest="${lib.dir}/xjavadoc.jar"
+            usetimestamp="true" ignoreerrors="true"
+            src="http://www.ibiblio.org/maven/xjavadoc/jars/xjavadoc-1.1.jar"/>                        
+            
+        <property name="commons-beanutils.jar"   value="${lib.dir}/commons-beanutils.jar"/>
+        <property name="commons-codec.jar"       value="${lib.dir}/commons-codec.jar"/>
+        <property name="commons-collections.jar" value="${lib.dir}/commons-collections.jar"/>
+        <property name="commons-digester.jar"    value="${lib.dir}/commons-digester.jar"/>
+        <property name="commons-el.jar"          value="${lib.dir}/commons-el.jar"/>
+        <property name="commons-fileupload.jar"  value="${lib.dir}/commons-fileupload.jar"/>
+        <property name="commons-logging.jar"     value="${lib.dir}/commons-logging.jar"/>
+        <property name="commons-validator.jar"   value="${lib.dir}/commons-validator.jar"/>
+        <property name="jakarta-oro.jar"         value="${lib.dir}/jakarta-oro.jar"/>
+        <property name="jsp.jar"                 value="${lib.dir}/jsp.jar"/>
+        <property name="jstl.jar"                value="${lib.dir}/jstl.jar"/>
+        <property name="log4j.jar"               value="${lib.dir}/log4j.jar"/>        
+        <property name="portlet-api.jar"         value="${lib.dir}/portlet-api.jar"/>
+        <property name="servlet-api.jar"         value="${lib.dir}/servlet-api.jar"/>
+        <property name="struts.jar"              value="${lib.dir}/struts.jar"/>
+        <property name="xdoclet.jar"             value="${lib.dir}/xdoclet.jar"/>
+        <property name="xjavadoc.jar"            value="${lib.dir}/xjavadoc.jar"/>
+        
+    </target>
 
 </project>