[Anthill-pro] RE: AHPTool?

Mark Melvin Mark.Melvin at onsemi.com
Wed Oct 28 15:34:06 CST 2009


Thanks again for the response, Eric.  I use Eclipse mostly.  It sounds
like I should have another look at the plugin.  I noticed the local XML
configuration example - it looks interesting.  We'll probably look at
moving our dependencies into CVS-stored XML files.  This was something I
wanted to do from the get-go.  Configuring 20 dependencies in the web UI
stinks.  Editing an XML file is going to be so much easier and it is
useful for the local development scenario as well.

For now I ended up hacking on the codestation.cmd file and through trial
and error have managed to work out some standard, usable command lines.
I've written up a readme for our internal users and tried to package it
up nicely.  The 'resolveArtifacts' command is very useful...

Mark.

-----Original Message-----
From: anthill-pro-bounces at lists.urbancode.com
[mailto:anthill-pro-bounces at lists.urbancode.com] On Behalf Of Anderson,
Eric
Sent: Wednesday, October 28, 2009 3:57 PM
To: AnthillPro user and support list.
Subject: RE: [Anthill-pro] RE: AHPTool?

Mark,

Do you use Visual Studio or Eclipse?  If so, the Codestation plug-in
might be a good option for you.  The 3.7 Visual Studio plug-in is a
rewrite that now uses an XML file for location configuration, and
incidentally the plug-in is really just a front end to the command-line
client anyway.  The XML file is written by the plug-in, so normally you
don't have to edit it directly.  

The XML configuration is pretty slick because you can version the
configuration in source control, and you don't need a "dummy project".
Incidentally, the XML file stores both the id and name of the
dependencies, which probably explains why the CLI client expects both -
there's probably fewer people using or testing with the CLI client
directly.

Here's an example of the command line call made by the Visual Studio
plug-in.  It's really much improved in 3.7...
 
"C:\Program Files\Urbancode\CsVsPlugin\jre\bin\javaw.exe" -jar
"C:\Program
Files\Urbancode\CsVsPlugin\cscli\lib\codestation2-cli-all.jar" -xml
-server http://ahp-server-url -noCheckCertificate -user me -password
XXXXXX --file C:\cvs99\BdwPluginService\CodestationProject.xml
--directory C:\cvs99\BdwPluginService resolve

The Ant tasks may also be helpful, it really depends on what your
development platform looks like.

Also, in response to Russ, the download zip option isn't available on
Codestation projects as far as I've seen.  That is true of an Anthill
project though...

Eric

-----Original Message-----
From: anthill-pro-bounces at lists.urbancode.com
[mailto:anthill-pro-bounces at lists.urbancode.com] On Behalf Of Mark
Melvin
Sent: Wednesday, October 28, 2009 2:07 PM
To: AnthillPro user and support list.
Subject: RE: [Anthill-pro] RE: AHPTool?

I got something to execute by specifying both the Codestation project
name and the Codestation project ID, like so:

  C:\test>codestation.cmd -cs "My Project" -csid 9 -stamp STAMP_VALUE
-set binaries -d output resolveArtifacts

I'm not sure why exactly these are *both* required (trying to specify
just the ID fails as well with the useful message "Error: projectName").
Wouldn't just the id be good enough (or the project name - since mine
are all unique anyway)??

Mark.

-----Original Message-----
From: anthill-pro-bounces at lists.urbancode.com
[mailto:anthill-pro-bounces at lists.urbancode.com] On Behalf Of Mark
Melvin
Sent: Wednesday, October 28, 2009 2:20 PM
To: AnthillPro user and support list.
Subject: RE: [Anthill-pro] RE: AHPTool?

OK, I found it and was able to run it - but it seems to be not exactly
what I wanted.

It appears that the command line codestation script is what I want.
Basically what I am trying to do is download a set of artifacts from the
command line for a Codestation project.  But the codestation.cmd script
first of all is broken out of the box, but has tons of problems and I
can't seem to make it work.  Here is a summry of the issues I have found
so far:

1) The script itself doesn't run.  It is missing the '~' in %~dp0
2) After fixing that, the usage will not appear.  The docs say to use
'-?' to show the usage.  They also say '-help' will work.  Trying both
of these, I get 'Error: command not specified'.  After a lot of trial
and error, I found that 'codestation.cmd ?' (or 'codestation.cmd help')
is the magical incantation.
3) OK, now that I can see what the options are (although none of the
available 'commands' are shown so without the .pdf I would have no idea
how to start to run this tool) I have tried to fetch the artifacts for a
project.  I run the following command:

 C:\test>codestation.cmd -cs "My Project" -stamp STAMP_VALUE -set
binaries -d output resolveArtifacts

And get this output:

  Retrieving configuration for Codestation project "null" from
http://my.server.com:8080
  Error: project is required

OK, so I run this:

  C:\test>codestation.cmd -p "My Project" -stamp STAMP_VALUE -set
binaries -d output resolveArtifacts

And get a very similar message:

  Retrieving configuration for Codestation project "My Project" from
http://my.server.com:8080
  Error: A Project must be specified

Fine, how about this:

  C:\test>codestation.cmd -p "My Project" -cs "My Project" -stamp
STAMP_VALUE -set binaries -d output resolveArtifacts

Same error message:

  Retrieving configuration for Codestation project "My Project" from
http://my.server.com:8080
  Error: A Project must be specified

So now what the heck do I do?  This tool seems impossible to please.

Also note that if you don't don't put the codestation.properties file in
the correct place, you are greeted with the helpful error message:

  Error: null

Any ideas?  I am using the latest 3.7.1.  By the way, the whole reason
for me wanting to do this is to grab all the files in a Codestation
project's artifact set.  There is no option to download everything as a
zipfile in the UI.  I have a project with about 100 files and I would
have to download and save each one individually, or create a dummy
project the depended on it, and "resolve" the dependencies.  Perhaps
this could be added as a new feature?

Thanks,
Mark.

-----Original Message-----
From: anthill-pro-bounces at lists.urbancode.com
[mailto:anthill-pro-bounces at lists.urbancode.com] On Behalf Of Mark
Melvin
Sent: Wednesday, October 28, 2009 11:13 AM
To: AnthillPro user and support list.
Subject: RE: [Anthill-pro] RE: AHPTool?

Aha - OK.  Thanks, Eric!

Is this something I could copy to my developer machine and use outside
of the context of an agent, or does it depend on a bunch of other things
present on the agent?

Thanks,
Mark. 

-----Original Message-----
From: anthill-pro-bounces at lists.urbancode.com
[mailto:anthill-pro-bounces at lists.urbancode.com] On Behalf Of Anderson,
Eric
Sent: Wednesday, October 28, 2009 11:07 AM
To: AnthillPro user and support list.
Subject: [Anthill-pro] RE: AHPTool?

Mark,

It's in the bin directory of the agent.  Run "ahptool" from there and
you'll get a summary of usage.  It could either be used from a plug-in
(which I think was the main intent) or from something like a shell
builder step.

Eric

-----Original Message-----
From: anthill-pro-bounces at lists.urbancode.com
[mailto:anthill-pro-bounces at lists.urbancode.com] On Behalf Of Mark
Melvin
Sent: Wednesday, October 28, 2009 9:41 AM
To: AnthillPro user and support list.
Subject: [Anthill-pro] AHPTool?

Hi Everyone,

So I just upgraded to 3.7.1.  Does anyone know: Where is this 'ahptool'
I have heard so much about?

Thanks,
Mark.
_______________________________________________
Anthill-pro mailing list
Anthill-pro at lists.urbancode.com
http://lists.urbancode.com/mailman/listinfo/anthill-pro
_______________________________________________
Anthill-pro mailing list
Anthill-pro at lists.urbancode.com
http://lists.urbancode.com/mailman/listinfo/anthill-pro
_______________________________________________
Anthill-pro mailing list
Anthill-pro at lists.urbancode.com
http://lists.urbancode.com/mailman/listinfo/anthill-pro
_______________________________________________
Anthill-pro mailing list
Anthill-pro at lists.urbancode.com
http://lists.urbancode.com/mailman/listinfo/anthill-pro
_______________________________________________
Anthill-pro mailing list
Anthill-pro at lists.urbancode.com
http://lists.urbancode.com/mailman/listinfo/anthill-pro
_______________________________________________
Anthill-pro mailing list
Anthill-pro at lists.urbancode.com
http://lists.urbancode.com/mailman/listinfo/anthill-pro


More information about the Anthill-pro mailing list