gnugy | 6 Feb 23:29
Favicon

Framework around anthill

Hi, I'm trying to build a framework around anthill and I am wondering 
what the minimum amount of code I have to write to get an anthill 
project running.

What are the important properties to set in AnthillProjectProperties?
Where is the project information stored?
How is it saved and loaded?
Eric Minick | 7 Feb 00:25

Re: Framework around anthill

This question might be better on the anthill-dev list, but I'll take a 
crack.

What properties are important to set on the ProjectProperties is going 
to depend on what you are trying to accomplish. At the least, you will 
probably need to set the repository information so that Anthill knows 
where to fetch the build script from. The build script path is also 
going to be pretty important. Otherwise, it really depends on what you 
are trying to accomplish.

Project information is going to be stored in the associated .registry 
files. They are in essence plain text property files with some added 
features to make lists function in a reasonable way.

Projects (and everything else) are loaded from those registry files at 
initialization time. Take a look at the Anthill.initialize() method 
which calls out to the various loading methods. The loading for the 
project properties isn't terribly sophisticated. Essentially the 
property names are mapped into the registry files and the 
ProjectProperties object wraps the registry object that mirrors the 
file. The loading is done In the ProjectProperties(Anthill, 
AnthillProject, File) constructor which is somewhat typical. The save 
methods on the various objects write them back into registries.

Good Luck,

Eric

gnugy wrote:

(Continue reading)

Res Pons | 7 Feb 01:28
Picon

RE: Framework around anthill

This documentation couldn't have been written any simpler, it helped me a 
lot.

http://www.urbancode.com/projects/anthill/manual/anthillusermanual.pdf

What do you use for version control? CVS, SVN, VSS....?  It has an adapeter 
for all of them.  Once you install antill from urbancode.  On the top, in 
"anthill properties", set your params like so:

The abolute path to the directory in which Anthill was installed.
anthill.home - C:\AntHill
anthill.ant.home - lib/ant1.6.5
anthill.version.adapter  - 
com.urbancode.anthill.adapter.UrbanCodeVersionAdapter
anthill.repository.adapter -  
com.urbancode.anthill.adapter.CVSRepositoryAdapter | choose Subversion or 
any other repo adapter accordingly

anthill.publish.dir.default   - publishDir
anthill.mail.host   - ask your Admin
anthill.mail.from   - mypc@... | I acutally use this fake address 
so I can filter it in my Outlook

anthill.server  - http://localhost:8080/anthill/

anthill.dependency.target   - dependency
anthill.dependency.artifact.property   -dependency.artifact.dir
anthill.background.color   - white
anthill.title.text   - Anthill Build Management Server

(Continue reading)

Andy Levy | 16 Feb 21:00
Picon

Anthill books?

Are there any books on the market on Anthill usage, management, etc.? 
I'm open to anything that's "only" for Anthill, or "how to do X using
Anthill".
Tim Morrow 2 | 16 Feb 23:47
Picon

Adding parameters to cvs driver


Is there a way to customize the CVS repository driver to specify custom
parameters to the cvs command.  Specifically, we'd like to add compression
(e.g. -z 9).

We're using Anthill Pro 2.4.  I couldn't find anywhere to do this, either on
a per-build track or for the shared cvs repository driver.

I'm thinking of a workaround where I specify my own path to the cvs driver,
and add the switch there (e.g. /usr/bin/cvs -z 9), but I'm not sure if that
will cause it to fail to fork the process.

Any help would be appreciated,

Thanks,

Tim

--
View this message in context: http://www.nabble.com/Adding-parameters-to-cvs-driver-t1137467.html#a2980224
Sent from the Anthill - General forum at Nabble.com.
McDaniel, Joe R. | 17 Feb 14:29
Picon
Favicon

RE: Adding parameters to cvs driver


Go into the .pgl files (equivalent of .jsp) and modify the command. I
did this once because the default did not work properly on Windows. The
files are in Anthill\conf\profiles\Win32\win_cvs (or whatever operating
system, version control system, etc. you use).  I think you have to
remove all the working directories in your server (Tomcat/Jboss/etc.)
for this to take effect (obviously, this includes stopping and
restarting the service). It may depend on rebuilding Anthill. In any
case, this is where to do the deed. 

Best,

Joe
-----Original Message-----
From: anthill-bounces@...
[mailto:anthill-bounces@...] On Behalf Of Tim
Morrow 2
Sent: Thursday, February 16, 2006 5:47 PM
To: anthill@...
Subject: [Anthill] Adding parameters to cvs driver

Is there a way to customize the CVS repository driver to specify custom
parameters to the cvs command.  Specifically, we'd like to add
compression (e.g. -z 9).

We're using Anthill Pro 2.4.  I couldn't find anywhere to do this,
either on a per-build track or for the shared cvs repository driver.

I'm thinking of a workaround where I specify my own path to the cvs
driver, and add the switch there (e.g. /usr/bin/cvs -z 9), but I'm not
(Continue reading)

Eric Minick | 17 Feb 15:19

Re: Adding parameters to cvs driver

Thanks Joe,

That's exactly right. It shouldn't require rebuilding the software or 
anything that extreme though.

Regards,

Eric

McDaniel, Joe R. wrote:

> 
>Go into the .pgl files (equivalent of .jsp) and modify the command. I
>did this once because the default did not work properly on Windows. The
>files are in Anthill\conf\profiles\Win32\win_cvs (or whatever operating
>system, version control system, etc. you use).  I think you have to
>remove all the working directories in your server (Tomcat/Jboss/etc.)
>for this to take effect (obviously, this includes stopping and
>restarting the service). It may depend on rebuilding Anthill. In any
>case, this is where to do the deed. 
>
>Best,
>
>Joe
>-----Original Message-----
>From: anthill-bounces@...
>[mailto:anthill-bounces@...] On Behalf Of Tim
Morrow 2
>Sent: Thursday, February 16, 2006 5:47 PM
>To: anthill@...
(Continue reading)

Matteo Risoldi | 21 Feb 21:42
Picon
Picon

Problem connecting to CVS with SSH

I have a problem using Anthill on a CVS repository with SSH  
authentication.
So: I have set my Anthill project (coopn) to use the following CVSROOT:

    :ext:me@...:/usr/local/cvsroot

I have also set the CVS_RSH environment variable for the user me to  
be "ssh".
Also, I have done manually a cvs checkout once to be sure that the  
RSA key was added to the known_hosts file. In fact, the server  
holding the CVS repository and the server running Anthill are the  
same server, smv.unige.ch.

When I try to build my project, it fails immediately. The weird thing  
is, if I keep a console open (with user me logged in) when clicking  
"Build", I get the request for authorizing the connecting server:

    The authenticity of host 'smv.unige.ch (129.194.69.14)' can't be  
established.
    RSA key fingerprint is 0f:08:dc:c6:95:50:fc:c1:06:52:0f: 
5e:df:b2:c4:0d.
    Are you sure you want to continue connecting (yes/no)?

although as I said this server is already in the known_hosts file (I  
have checked the fingerprint, it's the same I got when doing it  
manually).
If I answer "yes", the console starts printing infinite lines with  
the "y" character until I press ctrl-c (but the build had already  
failed before answering).

(Continue reading)

Tim Morrow 2 | 21 Feb 22:17
Picon

Re: Adding parameters to cvs driver


Thanks for the replies.

For now I actually created a .cvsrc file in the home directory of the user
that runs AnthillPro containing the line:

cvs -z 9

Of course, this affects all cvs commands for that user, but its a dedicated
build user so that is fine in our case.

With regards the .pgl files:  I couldn't find an conf/profiles directory in
my installation at all.  I can find many .pgl files under
lib/VCSDriver/example.  Are those the actual .pgl files used by AnthillPro,
or would I have to copy them somewhere else (like lib/VCSDriver/pagelets?).

We're using version 2.4.

Thanks,

Tim

--
View this message in context: http://www.nabble.com/Adding-parameters-to-cvs-driver-t1137467.html#a3058357
Sent from the Anthill - General forum at Nabble.com.
Eric Minick | 21 Feb 22:43

Re: Adding parameters to cvs driver

Tim,

We all lose points on reading comprehension. While you did tell us that 
you are using Anthill Pro, you posted to the Anthill OS list and the 
responses you received reflected how to do it in Anthill OS. By default, 
Anthill Pro has its pagelets precompiled into java classes. The 
precompiled versions can be overridden however, by copying the 
appropriate pagelets from
AnthillPro/lib/VCSDriver/example/Unix/≤driver>/<pagelet>.pgl to
AnthillPro/conf/vcsdriver/Unix/≤driver>/<pagelet>.pgl

For this change, you would just want to modify the 
Unix/cvsdriver/getCommandInit.pgl .

Hope that helps,
Eric

Tim Morrow 2 wrote:

>Thanks for the replies.
>
>For now I actually created a .cvsrc file in the home directory of the user
>that runs AnthillPro containing the line:
>
>cvs -z 9
>
>Of course, this affects all cvs commands for that user, but its a dedicated
>build user so that is fine in our case.
>
>With regards the .pgl files:  I couldn't find an conf/profiles directory in
(Continue reading)


Gmane