Jump to content
luislopes

[Resolvido] Mensagem de Commit SVN para Phing

Recommended Posts

luislopes

Boas, estou a fazer um buildfile com Phing para automatizar o deploy com SVN.

Tenho um target para fazer o commit, mas o mesmo é feito sempre com a mesma mensagem predefinida, o que gostaria de saber é se existe alguma forma de quando executo esse target eu colocar a frase pretendida para o commit.

Fica aqui o código até agora:

	<svncommit
	 svnpath="${svn_path}"
	workingcopy="${svn_todir}"
	message="Actualizado atraves do Phing "  />
<echo message="Revisao do Commit numero: ${svn.committedrevision}"/>

Ou seja, se for verificar o log no TortoiseSVN, todos os commits estão com a mensagem "Actualizado atraves do Phing"

Edited by Rui Carlos
GeSHi

Share this post


Link to post
Share on other sites
luislopes

Ja resolvi, fica aí o código:

<target name="commit">
<propertyprompt propertyName="commit_message" defaultValue="Actualizado atraves do Phing"
promptText="Enter your message" />
 <svncommit
 svnpath="${svn_path}"
 workingcopy="${svn_todir}"
 message="${commit_message} "  />
  <echo message="Revisao do Commit numero: ${svn.committedrevision}"/>
</target>

  • Vote 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.