ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <gudnabr...@yahoo.com>
Subject Re: svn commit: r349633 - in /ant/core/trunk: docs/manual/CoreTypes/ src/etc/testcases/types/resources/ src/main/org/apache/tools/ant/types/ src/main/org/apache/tools/ant/types/resources/ src/testcases/org/apache/tools/ant/types/resources/
Date Thu, 01 Dec 2005 20:40:55 GMT
BTW, doesn't this type negate the need for the
"javaresource" and "classpath" attributes and nested
<classpath> elements of <url>?  ;)

-Matt

--- bodewig@apache.org wrote:

> Author: bodewig
> Date: Mon Nov 28 20:38:42 2005
> New Revision: 349633
> 
> URL:
> http://svn.apache.org/viewcvs?rev=349633&view=rev
> Log:
> new resource <javaresource> for stuff that can be
> loaded via a classloader
> 
> Added:
>    
>
ant/core/trunk/src/etc/testcases/types/resources/javaresource.xml
>   (with props)
>    
>
ant/core/trunk/src/main/org/apache/tools/ant/types/resources/JavaResource.java
>   (with props)
>    
>
ant/core/trunk/src/testcases/org/apache/tools/ant/types/resources/JavaResourceTest.java
>   (with props)
> Modified:
>    
> ant/core/trunk/docs/manual/CoreTypes/resources.html
>    
>
ant/core/trunk/src/main/org/apache/tools/ant/types/defaults.properties
> 
> Modified:
> ant/core/trunk/docs/manual/CoreTypes/resources.html
> URL:
>
http://svn.apache.org/viewcvs/ant/core/trunk/docs/manual/CoreTypes/resources.html?rev=349633&r1=349632&r2=349633&view=diff
>
==============================================================================
> ---
> ant/core/trunk/docs/manual/CoreTypes/resources.html
> (original)
> +++
> ant/core/trunk/docs/manual/CoreTypes/resources.html
> Mon Nov 28 20:38:42 2005
> @@ -22,14 +22,16 @@
>  
>  <ul>
>    <li><a href="#basic">resource</a> - a basic
> resource.</li>
> +  <li><a href="#bzip2resource">bzip2resource</a> -
> a BZip2 compressed resource.</li>
>    <li><a href="#file">file</a> - a file.</li>
> -  <li><a href="#tarentry">tarentry</a> - an entry
> in a tar file.</li>
> -  <li><a href="#zipentry">zipentry</a> - an entry
> in a zip file.</li>
>    <li><a href="#gzipresource">gzipresource</a> - a
> GZip compressed resource.</li>
> -  <li><a href="#bzip2resource">bzip2resource</a> -
> a BZip2 compressed resource.</li>
> -  <li><a href="#url">url</a> - a URL.</li>
> -  <li><a href="#string">string</a> - a text
> string.</li>
> +  <li><a href="#javaresource">javaresource</a> - a
> resource loadable
> +        via a Java classloader.</li>
>    <li><a href="#property">property</a> - an Ant
> property.</li>
> +  <li><a href="#string">string</a> - a text
> string.</li>
> +  <li><a href="#tarentry">tarentry</a> - an entry
> in a tar file.</li>
> +  <li><a href="#url">url</a> - a URL.</li>
> +  <li><a href="#zipentry">zipentry</a> - an entry
> in a zip file.</li>
>  </ul>
>  
>  <h4><a name="basic">resource</a></h4>
> @@ -98,6 +100,45 @@
>    </tr>
>  </table>
>  
> +<h4><a name="javaresource">javaresource</a></h4>
> +
> +<p>Represents a resource loadable via a Java
> classloader.</p>
> +
> +<table border="1" cellpadding="2" cellspacing="0">
> +  <tr>
> +    <td valign="top"><b>Attribute</b></td>
> +    <td valign="top"><b>Description</b></td>
> +    <td align="center"
> valign="top"><b>Required</b></td>
> +  </tr>
> +  <tr>
> +    <td valign="top">name</td>
> +    <td valign="top">The namer of the
> resource.</td>
> +    <td align="center" valign="top">Yes</td>
> +  </tr>
> +  <tr>
> +    <td valign="top">classpath</td>
> +    <td valign="top">the classpath to use when
> looking up a resource.</td>
> +    <td align="center" valign="top">No</td>
> +  </tr>
> +  <tr>
> +    <td valign="top">classpathref</td>
> +    <td valign="top">the classpath to use when
> looking up a resource,
> +      given as <a
> href="../using.html#references">reference</a>
> +      to a <code>&lt;path&gt;</code> defined
> elsewhere..</td>
> +    <td align="center" valign="top">No</td>
> +  </tr>
> +  <tr>
> +    <td valign="top">loaderRef</td>
> +    <td valign="top">the name of the loader that is
> +      used to load the resource, constructed from
> the specified classpath.</td>
> +    <td align="center" valign="top">No</td>
> +  </tr>
> +</table>
> +
> +<p>The classpath can also be specified as nested
> classpath element,
> +where <b>&lt;classpath&gt;</b> is a <a
> +href="../using.html#path">path-like</a>
> structure.</p>
> +
>  <h4><a name="zipentry">zipentry</a></h4>
>  
>  <p>Represents an entry in a ZIP archive.  The
> archive can be specified
> @@ -157,14 +198,14 @@
>  
>  <h4><a name="gzipresource">gzipresource</a></h4>
>  
> -<p>This is not a stand-alone reource, but a wrapper
> around another
> +<p>This is not a stand-alone resource, but a
> wrapper around another
>  resource providing compression of the resource's
> contents on the fly.
>  A single element resource collection must be
> specified as a nested
>  element.</p>
>  
>  <h4><a name="bzip2resource">bzip2resource</a></h4>
>  
> -<p>This is not a stand-alone reource, but a wrapper
> around another
> +<p>This is not a stand-alone resource, but a
> wrapper around another
>  resource providing compression of the resource's
> contents on the fly.
>  A single element resource collection must be
> specified as a nested
>  element.</p>
> 
> Added:
>
ant/core/trunk/src/etc/testcases/types/resources/javaresource.xml
> URL:
>
http://svn.apache.org/viewcvs/ant/core/trunk/src/etc/testcases/types/resources/javaresource.xml?rev=349633&view=auto
>
==============================================================================
> ---
>
ant/core/trunk/src/etc/testcases/types/resources/javaresource.xml
> (added)
> +++
>
ant/core/trunk/src/etc/testcases/types/resources/javaresource.xml
> Mon Nov 28 20:38:42 2005
> @@ -0,0 +1,7 @@
> +<project>
> +  <target name="loadManifest">
> +    <loadresource property="manifest">
> +      <javaresource name="META-INF/MANIFEST.MF"/>
> +    </loadresource>
> +  </target>
> +</project>
> 
> Propchange:
>
ant/core/trunk/src/etc/testcases/types/resources/javaresource.xml
>
------------------------------------------------------------------------------
>     svn:eol-style = native
> 
> Propchange:
>
ant/core/trunk/src/etc/testcases/types/resources/javaresource.xml
>
------------------------------------------------------------------------------
>     svn:executable = *
> 
> Modified:
>
ant/core/trunk/src/main/org/apache/tools/ant/types/defaults.properties
> URL:
>
http://svn.apache.org/viewcvs/ant/core/trunk/src/main/org/apache/tools/ant/types/defaults.properties?rev=349633&r1=349632&r2=349633&view=diff
>
==============================================================================
> ---
>
ant/core/trunk/src/main/org/apache/tools/ant/types/defaults.properties
> (original)
> +++
>
ant/core/trunk/src/main/org/apache/tools/ant/types/defaults.properties
> Mon Nov 28 20:38:42 2005
> @@ -67,3 +67,4 @@
> 
>
tarentry=org.apache.tools.ant.types.resources.TarResource
> 
>
gzipresource=org.apache.tools.ant.types.resources.GZipResource
> 
>
bzip2resource=org.apache.tools.ant.types.resources.BZip2Resource
> 
=== message truncated ===



		
__________________________________________ 
Yahoo! DSL – Something to write home about. 
Just $16.99/mo. or less. 
dsl.yahoo.com 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message