You are viewing a plain text version of this content. The canonical link for it is here.
Posted to alexandria-dev@jakarta.apache.org by ru...@apache.org on 2002/01/02 15:34:02 UTC

cvs commit: jakarta-alexandria/proposal/gump/site/xdocs ant.xml

rubys       02/01/02 06:34:02

  Modified:    proposal/gump/java Project.java
               proposal/gump/site/xdocs ant.xml
  Log:
  Support runtime attribute on ant depend properties.
  
  Revision  Changes    Path
  1.22      +4 -0      jakarta-alexandria/proposal/gump/java/Project.java
  
  Index: Project.java
  ===================================================================
  RCS file: /home/cvs/jakarta-alexandria/proposal/gump/java/Project.java,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- Project.java	1 Jan 2002 23:45:05 -0000	1.21
  +++ Project.java	2 Jan 2002 14:34:02 -0000	1.22
  @@ -171,6 +171,10 @@
               if (property.getAttributeNode("classpath") == null)
                   depend.appendChild(document.createElement("noclasspath"));
   
  +            Attr runtime = property.getAttributeNode("runtime");
  +            if (runtime != null) 
  +                depend.setAttribute("runtime", runtime.getValue());
  +
               element.appendChild(depend);
               dependsOn.put(dependency, depend);
           }
  
  
  
  1.4       +6 -0      jakarta-alexandria/proposal/gump/site/xdocs/ant.xml
  
  Index: ant.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-alexandria/proposal/gump/site/xdocs/ant.xml,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- ant.xml	23 Nov 2001 23:08:58 -0000	1.3
  +++ ant.xml	2 Jan 2002 14:34:02 -0000	1.4
  @@ -118,6 +118,12 @@
             define more than one jar.</td>
             <td>No</td>
           </tr>
  +        <tr>
  +          <td>runtime</td>
  +          <td>Specifies whether this dependency is needed at runtime.
  +          Choices are "true" and "false" with the default being false.</td>
  +          <td>No</td>
  +        </tr>
         </table>
       </subsection>
     </section>
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: cvs commit: jakarta-alexandria/proposal/gump/site/xdocs ant.xml

Posted by "Kevin A. Burton" <bu...@openprivacy.org>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jon Scott Stevens <jo...@latchkey.com> writes:

> on 1/2/02 6:34 AM, "rubys@apache.org" <ru...@apache.org> wrote:
> 
> > +            if (runtime != null)
> > +                depend.setAttribute("runtime", runtime.getValue());
> 
> "All Java Language source code in the repository must be written in
> conformance to the "Code Conventions for the Java Programming Language as
> published by Sun."
> 
> <http://java.sun.com/docs/codeconv/html/CodeConventions.doc6.html#449>

I find this VERY ironic/stupid (you pick)

if (condition) //AVOID! THIS OMITS THE BRACES {}!
    statement;

^^^^^^^^^^^^^^^

So why the HECK did SUN even allow the language to support this?

Personally I have recently been smitten by one line if statements :).

Kevin

- -- 
Kevin A. Burton ( burton@apache.org, burton@openprivacy.org, burtonator@acm.org )
             Location - San Francisco, CA, Cell - 415.595.9965
        Jabber - burtonator@jabber.org,  Web - http://relativity.yi.org/

Yes.  My Mom runs Linux!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Get my public key at: http://relativity.yi.org/pgpkey.txt

iD8DBQE8M7DtAwM6xb2dfE0RArdZAJ9ilgF4bFr1AAoPjwpcM1ge7SDm0QCfaCwo
dwUnFTIecwJPxr9LUTL8vnY=
=qSZw
-----END PGP SIGNATURE-----

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: cvs commit: jakarta-alexandria/proposal/gump/site/xdocs ant.xml

Posted by "Kevin A. Burton" <bu...@openprivacy.org>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jon Scott Stevens <jo...@latchkey.com> writes:

> on 1/2/02 6:34 AM, "rubys@apache.org" <ru...@apache.org> wrote:
> 
> > +            if (runtime != null)
> > +                depend.setAttribute("runtime", runtime.getValue());
> 
> "All Java Language source code in the repository must be written in
> conformance to the "Code Conventions for the Java Programming Language as
> published by Sun."
> 
> <http://java.sun.com/docs/codeconv/html/CodeConventions.doc6.html#449>

I find this VERY ironic/stupid (you pick)

if (condition) //AVOID! THIS OMITS THE BRACES {}!
    statement;

^^^^^^^^^^^^^^^

So why the HECK did SUN even allow the language to support this?

Personally I have recently been smitten by one line if statements :).

Kevin

- -- 
Kevin A. Burton ( burton@apache.org, burton@openprivacy.org, burtonator@acm.org )
             Location - San Francisco, CA, Cell - 415.595.9965
        Jabber - burtonator@jabber.org,  Web - http://relativity.yi.org/

Yes.  My Mom runs Linux!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Get my public key at: http://relativity.yi.org/pgpkey.txt

iD8DBQE8M7DtAwM6xb2dfE0RArdZAJ9ilgF4bFr1AAoPjwpcM1ge7SDm0QCfaCwo
dwUnFTIecwJPxr9LUTL8vnY=
=qSZw
-----END PGP SIGNATURE-----

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: cvs commit: jakarta-alexandria/proposal/gump/site/xdocsant.xml

Posted by Ted Husted <hu...@apache.org>.
While I didn't actually write ActionServlet myself, I'll be the first to
agree that I sometimes forget to apply the standard conventions to my
own code. Java's not my first language, and sometimes I slip into legacy
coding styles without realizing it. Many of us old hands have the same
problem, and would love a gentle reminder when we slip-up. I'm actually
thinking that if I start to watching others code, I might remember to
watch my own as well ;-)

Personally, I do try to follow the Elements of Java Style, which is
mostly an extension of the Sun standards, but don't always succeed ;-)


Erik Hatcher wrote:
> 
> Well Ted..... the jokes on you...
> 
> Have a look at ActionServlet versus this coding standard.  :))
> 
> (no offense to anyone, this is in jest)
> 
>     Erik
> 
> p.s. I've given CheckStyle a try... its a tough one to live with as its
> stringent, but perhaps this could be used during builds to spit out code
> standard non-compliance warnings: http://checkstyle.sourceforge.net

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Building Java web applications with Struts.
-- Tel +1 585 737-3463.
-- Web http://www.husted.com/struts/

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: cvs commit: jakarta-alexandria/proposal/gump/site/xdocsant.xml

Posted by Paulo Gaspar <pa...@krankikom.de>.
And this tool might help on formatting the code according to (whatever)
standards you want to follow:
    http://jrefactory.sourceforge.net/cspretty.html

Have fun,
Paulo Gaspar

http://www.krankikom.de
http://www.ruhronline.de


> -----Original Message-----
> From: Erik Hatcher [mailto:jakarta@ehatchersolutions.com]
> Sent: Wednesday, January 02, 2002 8:17 PM
> To: Jakarta General List
> Subject: Re: cvs commit:
> jakarta-alexandria/proposal/gump/site/xdocsant.xml
>
>
> Well Ted..... the jokes on you...
>
> Have a look at ActionServlet versus this coding standard.  :))
>
> (no offense to anyone, this is in jest)
>
>     Erik
>
> p.s. I've given CheckStyle a try... its a tough one to live with as its
> stringent, but perhaps this could be used during builds to spit out code
> standard non-compliance warnings: http://checkstyle.sourceforge.net
>
> ----- Original Message -----
> From: "Ted Husted" <hu...@apache.org>
> To: "Jakarta General List" <ge...@jakarta.apache.org>
> Sent: Wednesday, January 02, 2002 1:52 PM
> Subject: Re: cvs commit:
> jakarta-alexandria/proposal/gump/site/xdocsant.xml
>
>
> > Atta boy, Jon!
> >
> > (This may be your politest, most professional message yet ;-)
> >
> >
> > Jon Scott Stevens wrote:
> > >
> > > on 1/2/02 6:34 AM, "rubys@apache.org" <ru...@apache.org> wrote:
> > >
> > > > +            if (runtime != null)
> > > > +                depend.setAttribute("runtime", runtime.getValue());
> > >
> > > "All Java Language source code in the repository must be written in
> > > conformance to the "Code Conventions for the Java Programming Language
> as
> > > published by Sun."
> > >
> > > <http://java.sun.com/docs/codeconv/html/CodeConventions.doc6.html#449>
> > >
> > > :-)
> > >
> > > -jon
> >
> > --
> > To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: cvs commit: jakarta-alexandria/proposal/gump/site/xdocsant.xml

Posted by Erik Hatcher <ja...@ehatchersolutions.com>.
Well Ted..... the jokes on you...

Have a look at ActionServlet versus this coding standard.  :))

(no offense to anyone, this is in jest)

    Erik

p.s. I've given CheckStyle a try... its a tough one to live with as its
stringent, but perhaps this could be used during builds to spit out code
standard non-compliance warnings: http://checkstyle.sourceforge.net

----- Original Message -----
From: "Ted Husted" <hu...@apache.org>
To: "Jakarta General List" <ge...@jakarta.apache.org>
Sent: Wednesday, January 02, 2002 1:52 PM
Subject: Re: cvs commit: jakarta-alexandria/proposal/gump/site/xdocsant.xml


> Atta boy, Jon!
>
> (This may be your politest, most professional message yet ;-)
>
>
> Jon Scott Stevens wrote:
> >
> > on 1/2/02 6:34 AM, "rubys@apache.org" <ru...@apache.org> wrote:
> >
> > > +            if (runtime != null)
> > > +                depend.setAttribute("runtime", runtime.getValue());
> >
> > "All Java Language source code in the repository must be written in
> > conformance to the "Code Conventions for the Java Programming Language
as
> > published by Sun."
> >
> > <http://java.sun.com/docs/codeconv/html/CodeConventions.doc6.html#449>
> >
> > :-)
> >
> > -jon
>
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: cvs commit: jakarta-alexandria/proposal/gump/site/xdocsant.xml

Posted by Ted Husted <hu...@apache.org>.
Atta boy, Jon!

(This may be your politest, most professional message yet ;-)


Jon Scott Stevens wrote:
> 
> on 1/2/02 6:34 AM, "rubys@apache.org" <ru...@apache.org> wrote:
> 
> > +            if (runtime != null)
> > +                depend.setAttribute("runtime", runtime.getValue());
> 
> "All Java Language source code in the repository must be written in
> conformance to the "Code Conventions for the Java Programming Language as
> published by Sun."
> 
> <http://java.sun.com/docs/codeconv/html/CodeConventions.doc6.html#449>
> 
> :-)
> 
> -jon

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: cvs commit: jakarta-alexandria/proposal/gump/site/xdocs ant.xml

Posted by Jon Scott Stevens <jo...@latchkey.com>.
on 1/2/02 6:34 AM, "rubys@apache.org" <ru...@apache.org> wrote:

> +            if (runtime != null)
> +                depend.setAttribute("runtime", runtime.getValue());

"All Java Language source code in the repository must be written in
conformance to the "Code Conventions for the Java Programming Language as
published by Sun."

<http://java.sun.com/docs/codeconv/html/CodeConventions.doc6.html#449>

:-)
 
-jon


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: cvs commit: jakarta-alexandria/proposal/gump/site/xdocs ant.xml

Posted by Jon Scott Stevens <jo...@latchkey.com>.
on 1/2/02 6:34 AM, "rubys@apache.org" <ru...@apache.org> wrote:

> +            if (runtime != null)
> +                depend.setAttribute("runtime", runtime.getValue());

"All Java Language source code in the repository must be written in
conformance to the "Code Conventions for the Java Programming Language as
published by Sun."

<http://java.sun.com/docs/codeconv/html/CodeConventions.doc6.html#449>

:-)
 
-jon


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>