Re: Problems with buildnumber and exec tasks

2002-10-27 Thread Mark Jaffe
Issues have been resolved. I was managing the buildnumber task in the 
parent build.xml; I erroneously assumed the property would appear in 
the child but now use a loadproperty file=${working.dir}/release / 
task where the file release contains the property.

As for the make not being done, I just resorted to applying the 
property to the environment, and it is working.

On Thursday, October 24, 2002, at 11:55 PM, Stefan Bodewig wrote:

On Thu, 24 Oct 2002, Mark Jaffe [EMAIL PROTECTED] wrote:


I have a common build.xml which does checkout and various make
commands. When I call the checkout task, I have it extract a build
number from the release file and check that file back in. Later
(from the child script) when I call the pkg task it needs the
build number setting but it is not available any more:


We are missing some relevant information here.  Which build file is
calling which child build and where does the property get set?

If you ant another build, no properties set in that child build,
will be available to the build containing the ant task.


  [exec] Setting environment variable: RELEASE=-${build.number}
  [cvs] Using cvs passfile: /export/home/builder/.cvspass


where does this cvs line come from?


  [exec] Executing '/usr/ccs/bin/make' with arguments:

I both cases, it does NOT execute make!!


but does what?  Cause a failure?  If so, what is the message you get?

Stefan

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



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




Re: Problems with buildnumber and exec tasks

2002-10-25 Thread Stefan Bodewig
On Thu, 24 Oct 2002, Mark Jaffe [EMAIL PROTECTED] wrote:

 I have a common build.xml which does checkout and various make
 commands. When I call the checkout task, I have it extract a build
 number from the release file and check that file back in. Later
 (from the child script) when I call the pkg task it needs the
 build number setting but it is not available any more:

We are missing some relevant information here.  Which build file is
calling which child build and where does the property get set?

If you ant another build, no properties set in that child build,
will be available to the build containing the ant task.

   [exec] Setting environment variable: RELEASE=-${build.number}
   [cvs] Using cvs passfile: /export/home/builder/.cvspass

where does this cvs line come from?

   [exec] Executing '/usr/ccs/bin/make' with arguments:

 I both cases, it does NOT execute make!!

but does what?  Cause a failure?  If so, what is the message you get?

Stefan

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




Problems with buildnumber and exec tasks

2002-10-24 Thread Mark Jaffe
I've just discovered some issues that are impeding progress on my projects.
I'm implementing a new feature and underlying snags pop up.

I have a common build.xml which does checkout and various make commands. When
I call the checkout task, I have it extract a build number from the release
file and check that file back in. Later (from the child script) when I call
the pkg task it needs the build number setting but it is not available any
more:
Setting project property: build.number - 19
 [echo] portal - Build number 19
(later)
Property ${build.number} has not been set
Setting project property: release-num - ${build.number}

In addition, I need to call a make command with the build number setting in
an environment variable. I can issue make -e pkgs in the command line, but
if I use this form:
exec dir=${working.dir}/${module} executable=/usr/ccs/bin/make
arg value=-e/
arg value=pkgs/
env key=RELEASE value=-${release-num} /
   /exec
I get this result:
 [exec] Setting environment variable: RELEASE=-${build.number}
  [cvs] Using cvs passfile: /export/home/builder/.cvspass
 [exec] Executing '/usr/ccs/bin/make' with arguments:
 [exec] '-e'
 [exec] 'pkgs'
 [exec]
 [exec] The ' characters around the executable and arguments are
 [exec] not part of the command.
Execute:Java13CommandLauncher: Executing '/usr/ccs/bin/make' with arguments:
'-e'
'pkgs'

and if I use this form:
exec dir=${working.dir}/${module} executable=/usr/ccs/bin/make
arg line=-e pkgs/
   env key=RELEASE value=-${release-num} /
   /exec
I get this:
 [exec] Setting environment variable: RELEASE=-${build.number}
 [exec] Executing '/usr/ccs/bin/make' with arguments:
 [exec] '-e'
 [exec] 'pkgs'
 [exec]
 [exec] The ' characters around the executable and arguments are
 [exec] not part of the command.
Execute:Java13CommandLauncher: Executing '/usr/ccs/bin/make' with arguments:
'-e'
'pkgs'

I both cases, it does NOT execute make!!


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




Problems with buildnumber and exec tasks

2002-10-24 Thread Mark Jaffe
I've just discovered some issues that are impeding progress on my 
projects. I'm implementing a new feature and underlying snags pop up.

I have a common build.xml which does checkout and various make 
commands. When I call the checkout task, I have it extract a build 
number from the release file and check that file back in. Later (from 
the child script) when I call the pkg task it needs the build number 
setting but it is not available any more:
Setting project property: build.number - 19
 [echo] portal - Build number 19
(later)
Property ${build.number} has not been set
Setting project property: release-num - ${build.number}

In addition, I need to call a make command with the build number 
setting in an environment variable. I can issue make -e pkgs in the 
command line, but if I use this form:
exec dir=${working.dir}/${module} 
executable=/usr/ccs/bin/make
arg value=-e/
arg value=pkgs/
	env key=RELEASE value=-${release-num} /
   /exec
I get this result:
 [exec] Setting environment variable: RELEASE=-${build.number}
  [cvs] Using cvs passfile: /export/home/builder/.cvspass
 [exec] Executing '/usr/ccs/bin/make' with arguments:
 [exec] '-e'
 [exec] 'pkgs'
 [exec]
 [exec] The ' characters around the executable and arguments are
 [exec] not part of the command.
Execute:Java13CommandLauncher: Executing '/usr/ccs/bin/make' with 
arguments:
'-e'
'pkgs'

and if I use this form:
exec dir=${working.dir}/${module} 
executable=/usr/ccs/bin/make
arg line=-e pkgs/
	   env key=RELEASE value=-${release-num} /
   /exec
I get this:
 [exec] Setting environment variable: RELEASE=-${build.number}
 [exec] Executing '/usr/ccs/bin/make' with arguments:
 [exec] '-e'
 [exec] 'pkgs'
 [exec]
 [exec] The ' characters around the executable and arguments are
 [exec] not part of the command.
Execute:Java13CommandLauncher: Executing '/usr/ccs/bin/make' with 
arguments:
'-e'
'pkgs'

I both cases, it does NOT execute make!!


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