You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Reeves, Paul C" <pc...@sandia.gov> on 2004/07/12 23:49:41 UTC

Problems w/ CVS Error Logging - BUG?

Folks,

I am checking out tagged versions of modules from cvs and need to handle the
error that occurs when a tag does not exist.

If I execute the command:

>cvs checkout MODULE -r TAG

in unix (where MODULE is the name of a module in my cvs repository and TAG
is a given tag)

then I get output of the sort

.
.
.
cvs checkout:  cannot find module '-r' ignored
cvs checkout:  cannot find module 'TAG' - ignored

whenever a tag doesn't exist in the repository.  That is all well and good,
since we want to know that.  (Note that the word "error" doesn't appear,
though)

However, if I try the same command using ant's cvs command, then this
portion of the output is lost. 

I've tried using both the error and output, attributes, but neither contain
this output.  As well, the failonerror doesn't catch this condition.

Is this a bug?  Any ideas out there?

Paul





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


Re: Problems w/ CVS Error Logging - BUG?

Posted by Yuji Yamano <yy...@kt.rim.or.jp>.
On Mon, 12 Jul 2004 15:49:41 -0600,
"Reeves, Paul C" <pc...@sandia.gov> wrote:

> If I execute the command:
> 
> >cvs checkout MODULE -r TAG

> cvs checkout:  cannot find module '-r' ignored
> cvs checkout:  cannot find module 'TAG' - ignored

The last argument must be a module, so try:

cvs checkout -r TAG MODULE

-- Yuji Yamano <yy...@kt.rim.or.jp>
  Loan me your funky mind. So I can play with it,
  for nothing is good unless you play with it. --George Clinton

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


RE: Dynamic compilation

Posted by alan <al...@pacbell.net>.
Subant did look like it was going to do the trick.  However, my problem
became that the build file in the subdirectory was being run as if it were
in the higher directory so all my relative links were off.

Is there a way to make the build files called by subant recognize their own
directory as the base directory for relative references.

I tried setting the basedir property for the slave build file but that
didn't work (I thought it would).  InheritAll and inheritRefs don't appear
to do what I'd like them to either.

Am I on the right track?

alan



-----Original Message-----
From: Yuji Yamano [mailto:yyamano@kt.rim.or.jp] 
Sent: Monday, July 12, 2004 6:26 PM
To: user@ant.apache.org; alanbrown@pacbell.net
Subject: Re: Dynamic compilation

On Mon, 12 Jul 2004 18:10:55 -0700,
"alan" <al...@pacbell.net> wrote:

> Does anyone know if it's possible to have a central build file call out
> dynamically to whatever slave build files it can find under it's
directory.
> 
> Our project consists of many modules that are frequently added to.  Each
has
> it's own build file.  These all have the same targets and are all called
> minibuild.xml.  
>
> We then have a central build file that calls out to these slave files and
> builds each of them.  

Subant task seems to fit your needs.

http://ant.apache.org/manual/CoreTasks/subant.html

-- Yuji Yamano <yy...@kt.rim.or.jp>
  Loan me your funky mind. So I can play with it,
  for nothing is good unless you play with it. --George Clinton

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




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


Re: Dynamic compilation

Posted by Yuji Yamano <yy...@kt.rim.or.jp>.
On Mon, 12 Jul 2004 18:10:55 -0700,
"alan" <al...@pacbell.net> wrote:

> Does anyone know if it's possible to have a central build file call out
> dynamically to whatever slave build files it can find under it's directory.
> 
> Our project consists of many modules that are frequently added to.  Each has
> it's own build file.  These all have the same targets and are all called
> minibuild.xml.  
>
> We then have a central build file that calls out to these slave files and
> builds each of them.  

Subant task seems to fit your needs.

http://ant.apache.org/manual/CoreTasks/subant.html

-- Yuji Yamano <yy...@kt.rim.or.jp>
  Loan me your funky mind. So I can play with it,
  for nothing is good unless you play with it. --George Clinton

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


Dynamic compilation

Posted by alan <al...@pacbell.net>.
Does anyone know if it's possible to have a central build file call out
dynamically to whatever slave build files it can find under it's directory.

Our project consists of many modules that are frequently added to.  Each has
it's own build file.  These all have the same targets and are all called
minibuild.xml.  

We then have a central build file that calls out to these slave files and
builds each of them.  

What I'd like to be able to do is avoid the need to edit the central file
when a new module is added to the project.  The default case would be the
developer would just put the standard minibuild.xml file in the root
directory of their module and the regular build process would pick it up and
run the relevant target (clean, build, etc.).

Does anyone know how this might be achieved.  If possible without resorting
to writing custom build files.

Grateful for any pointers...

alan







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


RE: Problems w/ CVS Error Logging - BUG?

Posted by Ryan Steckel <rj...@impactsci.com>.
It's not that the tag doesn't exist (exactly). You have the order wrong
for the checkout command. It's "cvs checkout -r TAG MODULE".

-----Original Message-----
From: Reeves, Paul C [mailto:pcreeve@sandia.gov] 
Sent: Monday, July 12, 2004 3:50 PM
To: 'user@ant.apache.org'
Subject: Problems w/ CVS Error Logging - BUG?

Folks,

I am checking out tagged versions of modules from cvs and need to handle
the
error that occurs when a tag does not exist.

If I execute the command:

>cvs checkout MODULE -r TAG

in unix (where MODULE is the name of a module in my cvs repository and
TAG
is a given tag)

then I get output of the sort

.
.
.
cvs checkout:  cannot find module '-r' ignored
cvs checkout:  cannot find module 'TAG' - ignored

whenever a tag doesn't exist in the repository.  That is all well and
good,
since we want to know that.  (Note that the word "error" doesn't appear,
though)

However, if I try the same command using ant's cvs command, then this
portion of the output is lost. 

I've tried using both the error and output, attributes, but neither
contain
this output.  As well, the failonerror doesn't catch this condition.

Is this a bug?  Any ideas out there?

Paul





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







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