You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Marcel Schutte <ma...@schutte.com> on 2000/08/14 17:33:45 UTC

[PATCH] Suggestion for new commandline switch -targets (II)

Here is a version that depends on the presence of description attributes on
targets. On ant's build.xml with some descriptions added the output is:

==================
Buildfile: build.xml
Targets:
 -dist       Creates the distribution
 -javadocs   Creates the API documentation
 -bootstrap  Installs the ant.jar library and binary files into ant.home
 -main       Creates the binary structure


BUILD SUCCESSFUL

Total time: 1 seconds
===================

The targets look like:

  <target name="main" depends="jar" description="Creates the binary
structure">

Regards,
Marcel Schutte

Re: cvs java client inside ant

Posted by Patrick Beard <be...@netscape.com>.
At 3:03 PM -0500 8/25/00, Gene Margolin wrote:
>Now ant uses exec function to call cvs. Sometimes it does not work properly.
>Is it a good idea to insert ant's own cvs java client instead of calling
>Runtime.exec(cvs)?

Yes, it's a great idea. I've been working on one, but would be happy 
to know if there are better ones out there. The protocol is kind of 
weird. I've used jCVS before, but have had a few problems with it. 
Obviously, for ant, we'd just want a non-UI based CVS client.

- Patrick
-- 

// Patrick C. Beard
// Java Runtime Enthusiast -- "Will invoke interfaces for food."
// mailto:beard@netscape.com

Re: cvs java client inside ant

Posted by Jesse Glick <Je...@netbeans.com>.
Peter Donald wrote:
> 
> At 03:03  25/8/00 -0500, you wrote:
> >Now ant uses exec function to call cvs. Sometimes it does not work properly.
> >Is it a good idea to insert ant's own cvs java client instead of calling
> >Runtime.exec(cvs)?
> >Many cvs java clients are already implemented.
> 
> Unfortunately they are GPL which is an incompatble license with Apache
> licensing schem  - the onluy possibility is the one over at netbeans but no
> one has stepped up to base afaik

FYI: yes, http://javacvs.netbeans.org/ hosts an in-progress
Java-implemented CVS client which may be license-compatible with Ant (I
don't know for sure). It is in active development and is improving, so
anyone interested in it should check up on it periodically (or better,
offer to contribute); I am sure its authors would welcome the extra
stress-testing from use in a different environment.

-Jesse

-- 
Jesse Glick   <ma...@netbeans.com>
NetBeans, Open APIs  <http://www.netbeans.org/>
tel (+4202) 3300-9161 Sun Micro x49161 Praha CR

Re: cvs java client inside ant

Posted by Peter Donald <do...@mad.scientist.com>.
At 03:03  25/8/00 -0500, you wrote:
>Now ant uses exec function to call cvs. Sometimes it does not work properly.
>Is it a good idea to insert ant's own cvs java client instead of calling
>Runtime.exec(cvs)?
>Many cvs java clients are already implemented.

Unfortunately they are GPL which is an incompatble license with Apache
licensing schem  - the onluy possibility is the one over at netbeans but no
one has stepped up to base afaik
Cheers,

Pete

*------------------------------------------------------*
| "Nearly all men can stand adversity, but if you want |
| to test a man's character, give him power."          |
|       -Abraham Lincoln                               |
*------------------------------------------------------*

RE: cvs java client inside ant

Posted by Conor MacNeill <co...@m64.com>.
Gene,

The issue to date has been the licensing arrangements of those java CVS
clients. Many use the GPL which is incompatible with ant's Apache licence.

Conor


> -----Original Message-----
> From: Gene Margolin [mailto:gmargolin@FUTURESOURCE.COM]
> Sent: Saturday, 26 August 2000 6:04
> To: ant-dev@jakarta.apache.org
> Subject: cvs java client inside ant
>
>
> Now ant uses exec function to call cvs. Sometimes it does not
> work properly.
> Is it a good idea to insert ant's own cvs java client instead of calling
> Runtime.exec(cvs)?
> Many cvs java clients are already implemented.
> Gene.
>
>
>


cvs java client inside ant

Posted by Gene Margolin <gm...@FUTURESOURCE.COM>.
Now ant uses exec function to call cvs. Sometimes it does not work properly.
Is it a good idea to insert ant's own cvs java client instead of calling
Runtime.exec(cvs)?
Many cvs java clients are already implemented.
Gene.




RE: [PATCH] Suggestion for new commandline switch -targets (II)

Posted by Marcel Schutte <ma...@schutte.com>.
Conor,

It's nice to have made a contribution, even if it is this small.

Regards,
Marcel Schutte

> -----Original Message-----
> From: Conor MacNeill [mailto:conor@m64.com]
> Sent: dinsdag 22 augustus 2000 17:41
> To: ant-dev@jakarta.apache.org
> Subject: RE: [PATCH] Suggestion for new commandline switch -targets (II)
>
>
> Marcel,
>
> I have committed this patch with a few minor changes.
>
> I changed the command line option from -targets to -projecthelp. I hope to
> add a <help> tag to the project as a nested element and include
> that in this
> output.
>
> I also removed the test for the null description. This means that
> currently
> all targets are displayed. It seemed more useful that way. That leaves the
> problem of hiding "internal" targets.
>
> Conor


RE: [PATCH] Suggestion for new commandline switch -targets (II)

Posted by Conor MacNeill <co...@m64.com>.
Marcel,

I have committed this patch with a few minor changes.

I changed the command line option from -targets to -projecthelp. I hope to
add a <help> tag to the project as a nested element and include that in this
output.

I also removed the test for the null description. This means that currently
all targets are displayed. It seemed more useful that way. That leaves the
problem of hiding "internal" targets.

Conor


> -----Original Message-----
> From: Marcel Schutte [mailto:marcel@schutte.com]
> Sent: Tuesday, 15 August 2000 1:34
> To: ant-dev@jakarta.apache.org
> Subject: [PATCH] Suggestion for new commandline switch -targets (II)
>
>
> Here is a version that depends on the presence of description
> attributes on
> targets. On ant's build.xml with some descriptions added the output is:
>
> ==================
> Buildfile: build.xml
> Targets:
>  -dist       Creates the distribution
>  -javadocs   Creates the API documentation
>  -bootstrap  Installs the ant.jar library and binary files into ant.home
>  -main       Creates the binary structure
>
>
> BUILD SUCCESSFUL
>
> Total time: 1 seconds
> ===================
>
> The targets look like:
>
>   <target name="main" depends="jar" description="Creates the binary
> structure">
>
> Regards,
> Marcel Schutte
>