[Anthill] Updated documentation?
Andy Levy
andy.levy at gmail.com
Tue Dec 6 14:22:16 CST 2005
On 12/6/05, varban <vvv at urbancode.com> wrote:
> Hello again,
>
> the best place to look for logs in this case is the Tomcat log. There
> you will be able to see any error messages that AnthillOs produces.
Still haven't touched my configuration from this morning; I'll step
through your suggestions one by one here.
I'm seeing my checkout happening successfully. After that, I have the
following error:
Checked out revision 42.
15:13:44:875 [Thread - AnthillBuildDaemon] INFO
com.urbancode.anthill.BuildManager - step 2) is project up to date?
15:13:44:875 [Thread - AnthillBuildDaemon] INFO
com.urbancode.anthill.adapter.SubversionRepositoryAdapter - Get
revisions since command: svn log --non-interactive -v --username
"anthill" --password "hillant" -r "{2005-12-05 16:29:49 -0500}:HEAD"
http://127.0.0.1:8080/Repos/Production/Code/LeaseGen/trunk/webapp
15:13:45:156 [Thread - AnthillBuildDaemon] INFO
com.urbancode.anthill.BuildManager - step 3) Increment version:
15:13:45:156 [Thread - AnthillBuildDaemon] INFO
com.urbancode.anthill.adapter.UrbanCodeVersionAdapter - Incrementing
version file: c:\anthill\anttest
15:13:45:156 [Thread - AnthillBuildDaemon] ERROR
com.urbancode.anthill.BuildManager - VersionFile does not exist.
file: c:\anthill\anttest
java.lang.IllegalStateException: VersionFile does not exist. file:
c:\anthill\anttest
at com.urbancode.anthill.adapter.VersionModifier.readVersionStr(VersionModifier.java:60)
at com.urbancode.anthill.adapter.UrbanCodeVersionAdapter.incrementVersion(UrbanCodeVersionAdapter.java:120)
at com.urbancode.anthill.BuildManager.build(BuildManager.java:115)
at com.urbancode.anthill.AnthillProject.releaseProject(AnthillProject.java:231)
at com.urbancode.anthill.BuildDefinition.run(BuildDefinition.java:158)
at com.urbancode.anthill.BuildDaemon.run(BuildDaemon.java:73)
15:13:45:156 [Thread - AnthillBuildDaemon] ERROR
com.urbancode.anthill.BuildManager - couldn't send result email
javax.mail.SendFailedException: No recipient addresses
at javax.mail.Transport.send0(Transport.java:111)
at javax.mail.Transport.send(Transport.java:81)
at com.urbancode.pagelet.module.email.EmailMessage.send(EmailMessage.java:170)
at com.urbancode.anthill.PageletResultEmail.send(PageletResultEmail.java:40)
at com.urbancode.anthill.PageletResultEmail.send(PageletResultEmail.java:24)
at com.urbancode.anthill.BuildManager.build(BuildManager.java:258)
at com.urbancode.anthill.AnthillProject.releaseProject(AnthillProject.java:231)
at com.urbancode.anthill.BuildDefinition.run(BuildDefinition.java:158)
at com.urbancode.anthill.BuildDaemon.run(BuildDaemon.java:73)
This looks like 2 issues - I'm missing a version file, and I'm
attempting to send email and failing. The second I expected.
> If you can checkout correctly, then you need to make sure that tagging
> and building are not having any problems.
Right now I don't have a tags directory set up for my project. Should
I, to make anthill happy here?
> I would suggest that you use
> the com.urbancode.anthill.adapter.ProjectPropertyFileVersionAdapter as a
> version adapter so that the current version number will be saved in the
> registry and not in a file in subversion. Then try setting the
> anthill.build.tag to never so Anthill will not attempt to tag the source
> (untill we make sure everything else is ok and then you can turn this on).
Done.
> Next thing is to make sure that you point to the correct build script in
> the anthill.build.script setting. This is relative to the root of the
> project. Let's say that you are checking out from
> https://svn.company.com/repo/project/trunk (notice the trunk at the end,
> this seems to be a standart format for subversion) then if you have your
> build script in project/build/build.xml your script setting will point
> to build/build.xml .However if you did not specify the trunk directory
> in you Subversion driver (and it is in the repository) then your build
> script should be trunk/build/build.xml. If Anthill had problems locating
> the build script you should see a message in the Tomcat logs.
My build.xml is in the root of what I'm checking out. My repository
is at http://127.0.0.1:8080/Repos/Production/ and the project I'm
checking out is at Code/LeaseGen/trunk/webapp . build.xml is in the
webapp directory.
> If you see an error message in the Tomcat logs that does not make sense,
> send it over to me (few lines before the message and all the way to the
> end) and I can look it up.
With all the above changes made, I have the following at the end of stdout.log:
Checked out revision 42.
15:20:18:859 [Thread - AnthillBuildDaemon] INFO
com.urbancode.anthill.BuildManager - step 2) is project up to date?
15:20:18:859 [Thread - AnthillBuildDaemon] INFO
com.urbancode.anthill.adapter.SubversionRepositoryAdapter - Get
revisions since command: svn log --non-interactive -v --username
"anthill" --password "hillant" -r "{2005-12-06 15:13:11 -0500}:HEAD"
http://127.0.0.1:8080/Repos/Production/Code/LeaseGen/trunk/webapp
15:20:20:281 [Thread - AnthillBuildDaemon] INFO
com.urbancode.anthill.BuildManager - Build NOT required
15:20:20:281 [Thread - AnthillBuildDaemon] INFO
com.urbancode.anthill.BuildManager - Build NOT required.
So it looks like anthill think I don't need to actually build anything.
More information about the Anthill
mailing list