[Anthill-pro] RE: AHPTool?
Mark Melvin
Mark.Melvin at onsemi.com
Wed Oct 28 12:19:43 CST 2009
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
More information about the Anthill-pro
mailing list