Re: Custom commit message when tagging?

"Andy Levy" <[email protected]> Fri, 12 May 2006 11:53:43 -0400
Newsgroups gmane.comp.java.anthill
Message-ID <[email protected]>
I've tinkered some more this morning (killing time before a half day
off) and haven't gotten too far.

I've even gone so far as to use:

String projectName = pp.getProperty("anthill.project.name");

And still no luck.  I can create my own property from within the
pagelet, and that DOES work.  Which is even curiouser.

I also made a little adjustment at the end of the pagelet to put the
full commit message (including quotes) into a string, and then
reference that string in the svn copy command:
<%
String commitMsg = "\"" + projectName + " tagged by Anthill\"";
%>
svn copy --non-interactive -m <%=commitMsg%> <%=authArgs%> -r
<%=buildRevision%> <%=url%> <%=tagUrl%>

On 5/4/06, Eric Minick <[email protected]> wrote:
> That's what I assumed would happen. I'll have to try it out. My code was
> speculative.
>
> -- Eric
>
> Andy Levy wrote:
>
> > On 5/4/06, Andy Levy <[email protected]> wrote:
> >
> >> On 5/2/06, Eric Minick <[email protected]> wrote:
> >> > Wrong list there Curtis :).
> >> >
> >> > What Curtis described is how this should be done in Anthill Pro.
> >> >
> >> > What I believe you could do in OS is modify your repository driver's
> >> > label pagelet. Pagelets are much like JSP pages but without taglibs
> >> and
> >> > not tied to HTTP.
> >> >
> >> >  From your description, I'm guess you are using Subversion. The change
> >> > to the pagelet would be something like:
> >> >
> >> > 1) Add a project name variable to the list near the top of the file
> >> > (after password):
> >> >       String projectName =
> >> pp.getProperty(ProjectProperties.PROJECT_NAME);
> >> >
> >> > 2) Change the command:
> >> >       svn copy --non-interactive -m "Copied by Anthill for <%=
> >> > projectName %>" etc etc
> >> >
> >> >
> >> > The pagelets are found in conf/profiles/<your OS>/<your driver>
> >>
> >> Thanks Eric.  Correct on both counts; I'm running Anthill OS, and SVN
> >> is my repository.  I'll give this a shot.
> >>
> >
> > I'm getting null for the projectName.  I'm assuming that it's picking
> > this up from anthill.project.name?  That variable is set.  I copied
> > your code exactly.
> >
> > I can, however, run other Java code in the pagelet and I've confirmed
> > that the most recent version is being executed.
> > _______________________________________________
> > Anthill mailing list
> > Anthill-IWHQxnLZ/[email protected]
> > http://lists.urbancode.com/mailman/listinfo/anthill
>
>
> _______________________________________________
> Anthill mailing list
> Anthill-IWHQxnLZ/[email protected]
> http://lists.urbancode.com/mailman/listinfo/anthill
>