[Anthill] Regd Checking out of sources and dependency
Eric Minick
eric at urbancode.com
Mon Jul 19 17:02:05 CDT 2004
Nate,
I don't think I communicated myself well enough there. The branch option
is used to check out, well branches. If memory serves, you can treat
most labels as branches for this purpose.
To pass a parameter into the ant script, for instance what target to
run, you'd want to use the anthill.build.ant.params property.
The VersionFile assumes that you will be tracking your project's version
by adding a simple text file somewhere in your project. That text file
will just contain a version number like "1.2.3". You can specify which
file to use this way by editing a project and clicking on the
com.urbancode.anthill.adapter.ProjectPropertyFileVersionAdapter link.
Alternatively, you can have Anthill track the version number by
replacing that version adapter with
com.urbancode.anthill.adapter.UrbanCodeVersionAdapter .
Cheers,
Eric
Burford, Nate wrote:
>Eric
>
>If I read what you recommend below correctly I should be able to put a
>certain target from my build.xml in repository.cvs.branch and anthill should
>execute a build based on the parameters of that target?
>
>Also a separate problem for me. My build fails on the VersionFile
>parameter. How do I set this parameter?
>
>Thanks
>
>Nate
>
>-----Original Message-----
>From: Eric Minick [mailto:eric at urbancode.com]
>Sent: Monday, July 19, 2004 10:51 AM
>To: Anthill user list
>Subject: Re: [Anthill] Regd Checking out of sources and dependency
>
>
>Vijayakrishna,
>
>I don't believe that there is an option for checking out a specific
>label in AnthillOS other than by changing the repository.cvs.branch
>option in the cvs repository driver. I'd need to go review CVS to know
>if it would work, I think it will though.
>
>The dependencies in AnthillOS are a little tricky to get used to. The
>idea is not only do you need two projects to know about eachother and
>time their builds to reflect changes to another, but you are likely to
>need one project to provide it's build artificats (jars, wars, exe's,
>etc) to the other. To arrange this, AnthillOS requires the project's Ant
>script to provide a target named dependency that will copy its build
>artifacts (whever it may have put them) to a known location provided by
>Anthill. Here's the script snippet from one of the example projects:
>
><target name="dependency">
> <antcall target="default"/>
> <!-- now put our artifact in the dependency.artifact.dir -->
> <copy file="${dist.dir}/${name}.jar"
>todir="${dependency.artifact.dir}"/>
> </target>
>
>This target does the default build then takes the build artificats (jar
>files in the dist directory) and moves them to the known location.
>Anthill provides your script the dependency.artifact.dir .
>
>I hope that makes some sense.
>
>Cheers,
>
>Eric
>
>K. Vijayakrishna wrote:
>
>
>
>>Hi,
>>
>>I am evaluating the AntHill for our usage.
>>
>>We are using CVS. We currently follow a system where our Master Script
>>will checkout sources from the repository either from the top of the
>>trunk or using a specific label.
>>
>>The developer's source code is reviewed by the lead and the lead
>>assigns a label for that source file. The master script checks out the
>>source using that particular label.
>>
>>I want to know if the same is available in AntHill. Is it possible to
>>checkout the source from the repository using a particular label ?
>>
>>Also, I feel I haven't understood the concept of dependency in
>>AntHill.
>>
>>I have a project A which should happen before project B. When I give
>>these two projects as a dependency group, I get the following error.
>>
>>BUILD FAILED
>>Target `dependency' does not exist in this project.
>>
>>Can someone elaborate on this ?
>>
>>
>>Thanks & Regards,
>>Vijayakrishna K
>>
>>"You are just one evening away from greatness"
>>
>>_______________________________________________
>>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