ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Draes, Daniel" <Daniel.Dr...@hilti.com>
Subject Problem with Ant P4 Task
Date Tue, 18 Mar 2008 11:50:57 GMT
Hi Ant users,

I hope to find some help here. Currently I tried to update a Manifest file with the current
revision out of our perforce versioning system. If the manifest file get's opened for edit
and submitted, the file content will change as it should. Now I would like to use this in
my ant-script to automatically get a new 'build' number for the jar-file.

Here is the part of my buildfile:

	<target name="update_manifest">
		<property name="p4.globalopts" value="-P xxxxxxxx"/>
		<property name="p4.client" value="zzzz"/>
		<property name="p4.user" value="yyyyyy"/>
		<property name="p4.port" value="host:1667"/>
		<property name="p4.change" value=""/>
		
		<p4change description="Change Build Number in Script"/>
		<echo message="changeno: ${p4.change}"></echo>
		<p4edit
		   	view="//cid_dev/java_src/MANIFEST.MF"
			change="${p4.change}"
		    globalopts="${p4.globalopts}"/>
		<echo message="changeno: ${p4.change}"></echo>
		<p4submit change="${p4.change}" globalopts="${p4.globalopts}"/>
     </target>

This does unfortunatly not work. The p4change-command does not set the p4.change-property
as it should the echo reads as:
[echo] changeno: 

And obviously the edit and submit tasks fail as well. If I remove the change attribute from
the edit-task, the file will be opened for edit under the default change in perforce. But
I cannot submit it.

I am using ANT 1.7.0 within Eclipse.

Any help is greatly appreciated. I was using Google but could only find old messages related
to ANT 1.4 / 1.6.

Best regards,

Daniel



> Daniel Dräs
> Product Data Management Expert
> 
> Hilti Corporation
> 9494 Schaan I Liechtenstein
> Office: Hilti Befestigungstechnik AG
> 9470 Buchs I SG I Switzerland
> 
> GrĂ¼naustrasse 1a I P.O.Box 546
> P +423-234 4239 I F +423-234 8239
> E daniel.draes@hilti.com
> www.hilti.com
> 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message