[Anthill] How do I tell Anthill what my build artifact dir is ?

varban vvv at urbancode.com
Wed Nov 30 09:58:20 CST 2005


Hi Marcio,

that is fine, the only problem that I see is that the artefacts will no 
longer be available in the default location (build/artifacts) if you 
build trough AnthillOs and you have another builder that will use those 
artefacts later.

Varban

Marcio Marchini wrote:
> Hi Varban,
> 
>     Well, that's not quite correct. There's a simpler way. What I found 
> out by *looking at the example* (instead of reading the manual) is that 
> Anthill passes a property in. And if you want to build outside Anthill 
> (cmd-line or Eclipse or...) then you need the property defined youself. 
> So, all I had to do was to put this in my build.properties file:
> 
> build.dir=build
> ;passed by Anthill. In case you run outside Anthill, we define it
> deployDir=${build.dir}/artifacts
> ;now we define our own variable name
> artifacts.dir=${deployDir}
> 
> 
>     and now I simply use ${artifacts.dir}. When I build from the 
> cmd-line or Eclipse I get this:
> 
>  Artifacts will go under build/artifacts
> 
> 
>     When I build from Anthill I get this:
> 
> Artifacts will go under C:\java\anthill-1.8.0.264\publishDir\HelloWorld
> 
> 
>     and the artifacts are available from the web interface.
> 
> 
>     Just perfect, just the way I wanted. Definitely something that 
> could/should be better explained in the manual.
> 
> marcio
> 
> 
> varban wrote:
> 
>> Hi Marcio,
>>
>> I am afraid that you have to publish the files that you want using 
>> your build script.
>> Let's say that you have a directory .../builds/reports that you would 
>> like to make available in the AnthillOS UI.
>> In order to do that you need a task in your build script (or another 
>> build script) that will be executed at the end of the build and will 
>> read the publishDir property that AnthillOs passes to ant and copy the 
>> .../builds/reports to the location that the publishDir points to. Then 
>> whatever you copied over will be available in the UI.
>> The reasoning behind that is to be able to control what is available 
>> in the UI, not just publish the whole build directory.
>>
>> Regards,
>> Varban
>> Marcio Marchini wrote:
>>
>>> Hi,
>>>
>>>     I build things into a "build" subdir. Into builds/reports I 
>>> generate HTML reports for JUnit, JDepend, etc (each in a subdir). I'd 
>>> like to make these files available via web browser/Anthill.
>>>
>>>     I looked at the PDF and saw a bunch of things about where to move 
>>> the artifacts so they can be published. What I did not find is how to 
>>> tell Anthill what my build artifacts dir is. I mean, I have to tell 
>>> it I want it to publish "builds/reports" or, if I prefer, the entire 
>>> "builds" dir, or etc.
>>>
>>>     Did I miss anything? How do I tell ANthill "after a successful 
>>> build, please make (besides the logs) the files under build/reports 
>>> also available via the web UI"
>>>
>>>     I tried anthill.publish.url=anthill.publish.url but that did not 
>>> work.
>>>
>>>     I saw anthill.publish.script but it says "The paths to the 
>>> publish script relative to the project root directory. (In the near 
>>> future, we are going to get rid of the publish script. Publishing of 
>>> the projects will still be possible but will need to take place in 
>>> the main build script.)". That confused me because 1) I should not 
>>> need to write a script (I use Ant, and I gen things in a dir) and 2) 
>>> it looks like it will become obsolete.
>>>
>>>     Confusing. Any ideas? Thanks,
>>>
>>>
>>> marcio
>>>
>>> _______________________________________________
>>> Anthill mailing list
>>> Anthill at lists.urbancode.com
>>> http://lists.urbancode.com/mailman/listinfo/anthill
>>
>>
>>
>> _______________________________________________
>> Anthill mailing list
>> Anthill at lists.urbancode.com
>> http://lists.urbancode.com/mailman/listinfo/anthill
> 
> 
> _______________________________________________
> Anthill mailing list
> Anthill at lists.urbancode.com
> http://lists.urbancode.com/mailman/listinfo/anthill




More information about the Anthill mailing list