You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by "Shatzer, Larry" <La...@MIROtechnologies.com> on 2005/03/02 00:04:54 UTC

[PATCH] fix typo in script documentation

It is supposed to be importClass(Packages.org...) not
importClass(Package.org...).

Also fix spot to use ' and not "�"

-- Larry


Re: [PATCH] fix typo in script documentation

Posted by Peter Reilly <pe...@apache.org>.
Shatzer, Larry wrote:

>It is supposed to be importClass(Packages.org...) not
>importClass(Package.org...).
>  
>
Thanks Larry, I was wondering why this did not work!

Peter


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


Re: [PATCH] fix typo in script documentation

Posted by Matt Benson <gu...@yahoo.com>.
Patch committed; thanks.

-Matt

--- "Shatzer, Larry"
<La...@MIROtechnologies.com> wrote:

> It is supposed to be importClass(Packages.org...)
> not
> importClass(Package.org...).
> 
> Also fix spot to use ' and not "�"
> 
> -- Larry
> 
> > Index: docs/manual/OptionalTasks/script.html
>
===================================================================
> RCS file:
>
/home/cvspublic/ant/docs/manual/OptionalTasks/script.html,v
> retrieving revision 1.21
> diff -u -r1.21 script.html
> --- docs/manual/OptionalTasks/script.html	19 Nov
> 2004 09:07:11 -0000	1.21
> +++ docs/manual/OptionalTasks/script.html	1 Mar 2005
> 23:00:01 -0000
> @@ -237,13 +237,13 @@
>    &lt;/target&gt;
>  &lt;/project&gt;
>  </pre></blockquote>
> -<p>We want to use the Java API. Because we don�t
> want always typing the package signature
> +<p>We want to use the Java API. Because we don't
> want always typing the package signature
>  we do an import. Rhino knows two different methods
> for import statements: one for packages
>  and one for a single class. By default only the
> <i>java</i> packages are available, so
>  <i>java.lang.System</i> can be directly imported
> with <code>importClass/importPackage</code>.
> -For other packages you have to prefix the full
> classified name with <i>Package</i>.
> +For other packages you have to prefix the full
> classified name with <i>Packages</i>.
>  For example ant�s <i>FileUtil</i> class can be
> imported with
>
-<code>importClass(<b>Package</b>.org.apache.tools.ant.util.FileUtils)</code>
>
+<code>importClass(<b>Packages</b>.org.apache.tools.ant.util.FileUtils)</code>
>  <br>
>  The <code>&lt;script&gt;</code> task populates the
> Project instance under
>  the name <i>project</i>, so we can use that
> reference. Another way is to use its given name
> 
> >
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> dev-unsubscribe@ant.apache.org
> For additional commands, e-mail:
dev-help@ant.apache.org



		
__________________________________ 
Do you Yahoo!? 
Yahoo! Sports - Sign up for Fantasy Baseball. 
http://baseball.fantasysports.yahoo.com/

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