[Anthill] Regd Checking out of sources and dependency

Burford, Nate NBurford at servicemagic.com
Tue Jul 20 14:56:07 CDT 2004


Eric, 


I follow you on the target parameter.  And I think we have that rectified.
However we're struggling with the last part.  Step 6.  Below is what I'm
seeing in the tomcat catalina log file.  The email error that anthillOS
sends post failed build is unhelpful to me.  Maybe the combo will ring a
bell for you?  Thanks  Nate

>From the Email>>>>>>

Anthill version 1.7.0.162

Retrieving project files: OK
Got Revisions: OK
Incrementing version: OK
FAILED to run build script.  Message: Failed to Build project. Error: 1
Project Site: http://roswell:8089/anthill/projects/ServiceMagicCVS/

Build Log:
http://roswell:8089/anthill/projects/ServiceMagicCVS/buildLogs/ServiceMagicC
VS-2.8-build.log

-------------------------------------
/usr/local/anthill/publishDir/ServiceMagicCVS/buildLogs/ServiceMagicCVS-2.8-
build.log


>From the catalina log>>>>>

cvs log: Logging source/com/servicemagic/util/cache/impls
cvs log: Logging source/com/servicemagic/util/cache/keys
cvs log: Logging source/com/servicemagic/valueObject
cvs log: Logging source/com/servicemagic/valueObject/dataStore
cvs log: Logging source/com/servicemagic/valueObject/presentation
cvs log: Logging source/com/servicemagic/xml
cvs log: Logging source/test
cvs log: Logging source/test/com
cvs log: Logging source/test/com/servicemagic
cvs log: Logging source/test/com/servicemagic/connectionpool
13:48:24:190 [Thread - AnthillBuildDaemon] INFO
com.urbancode.anthill.BuildManager  - step 3) Increment version:
13:48:24:195 [Thread - AnthillBuildDaemon] INFO
com.urbancode.anthill.adapter.UrbanCodeVersionAdapter  - Branch from the
repository adapter:
13:48:24:195 [Thread - AnthillBuildDaemon] INFO
com.urbancode.anthill.adapter.UrbanCodeVersionAdapter  - Incrementing
version file: /usr/local/anthill/work/sm/version
13:48:24:196 [Thread - AnthillBuildDaemon] INFO
com.urbancode.anthill.adapter.ProfileRepositoryAdapter  - Preparing file:
version for editing.
13:48:24:198 [Thread - AnthillBuildDaemon] INFO
com.urbancode.anthill.util.Execute  - [prepareForEdit] sh
/usr/local/anthill/conf/profiles/Unix/unix_cvs/preEditPagelet.sh
/usr/local/anthill/work/sm /export/home/cvs version

13:48:24:354 [Thread - AnthillBuildDaemon] INFO
com.urbancode.anthill.adapter.ProfileRepositoryAdapter  - Post file edit on
file: version
13:48:24:358 [Thread - AnthillBuildDaemon] INFO
com.urbancode.anthill.util.Execute  - [unlock] sh
/usr/local/anthill/conf/profiles/Unix/unix_cvs/postEditPagelet.sh
/usr/local/anthill/work/sm /export/home/cvs Committed_by_Anthill version

13:48:25:016 [Thread - AnthillBuildDaemon] INFO
com.urbancode.anthill.BuildManager  - New version: 2.8
13:48:25:032 [Thread - AnthillBuildDaemon] INFO
com.urbancode.anthill.BuildManager  - Step 4) Tag project (if set to all):
13:48:25:032 [Thread - AnthillBuildDaemon] INFO
com.urbancode.anthill.BuildManager  - Step 5) Build Project:
13:48:25:033 [Thread - AnthillBuildDaemon] INFO
com.urbancode.anthill.BuildManager  - Build Project:
13:48:25:034 [Thread - AnthillBuildDaemon] INFO
com.urbancode.anthill.adapter.CVSRepositoryAdapter  - repository root:
/export/home/cvs
13:48:25:035 [Thread - AnthillBuildDaemon] INFO
com.urbancode.anthill.adapter.CVSRepositoryAdapter  - Module: sm
13:48:25:035 [Thread - AnthillBuildDaemon] INFO
com.urbancode.anthill.adapter.CVSRepositoryAdapter  - Branch: null
13:48:25:035 [Thread - AnthillBuildDaemon] INFO
com.urbancode.anthill.adapter.CVSRepositoryAdapter  - Work directory:
/usr/local/anthill/work
13:48:25:036 [Thread - AnthillBuildDaemon] INFO
com.urbancode.anthill.adapter.CVSRepositoryAdapter  - Local project
directory: /usr/local/anthill/work/sm
13:48:25:036 [Thread - AnthillBuildDaemon] INFO
com.urbancode.anthill.BuildManager  - Build Command:
/usr/local/java/j2sdk1.4.2_02/bin/java -classpath
/usr/local/java/j2sdk1.4.2_02/lib/tools.jar:/usr/local/anthill/lib/ant1.5.1/
jdepend.jar:/usr/local/anthill/lib/ant1.5.1/ant.jar:/usr/local/anthill/lib/a
nt1.5.1/junit.jar:/usr/local/anthill/lib/ant1.5.1/optional.jar:/usr/local/an
thill/lib/ant1.5.1/xercesImpl.jar:/usr/local/anthill/lib/ant1.5.1/xml-apis.j
ar: org.apache.tools.ant.Main
-DdeployDir=/usr/local/anthill/publishDir/ServiceMagicCVS -Dversion=2.8
-Dkit=2.8 -buildfile /usr/local/anthill/work/sm/source/build.xml -logfile
/usr/local/anthill/publishDir/ServiceMagicCVS/buildLogs/ServiceMagicCVS-2.8-
build.log cie
13:48:25:037 [Thread - AnthillBuildDaemon] INFO
com.urbancode.anthill.util.Execute  - [ANT Build]
/usr/local/java/j2sdk1.4.2_02/bin/java -classpath
/usr/local/java/j2sdk1.4.2_02/lib/tools.jar:/usr/local/anthill/lib/ant1.5.1/
jdepend.jar:/usr/local/anthill/lib/ant1.5.1/ant.jar:/usr/local/anthill/lib/a
nt1.5.1/junit.jar:/usr/local/anthill/lib/ant1.5.1/optional.jar:/usr/local/an
thill/lib/ant1.5.1/xercesImpl.jar:/usr/local/anthill/lib/ant1.5.1/xml-apis.j
ar: org.apache.tools.ant.Main
-DdeployDir=/usr/local/anthill/publishDir/ServiceMagicCVS -Dversion=2.8
-Dkit=2.8 -buildfile /usr/local/anthill/work/sm/source/build.xml -logfile
/usr/local/anthill/publishDir/ServiceMagicCVS/buildLogs/ServiceMagicCVS-2.8-
build.log cie

Build failed
13:48:25:878 [Thread - AnthillBuildDaemon] ERROR
com.urbancode.anthill.BuildManager  - Failed to Build project. Error: 1
java.lang.Exception: Failed to Build project. Error: 1
        at
com.urbancode.anthill.BuildManager.buildProject(BuildManager.java:497)
        at
com.urbancode.anthill.BuildManager.runBuild(BuildManager.java:403)
        at com.urbancode.anthill.BuildManager.build(BuildManager.java:187)
        at
com.urbancode.anthill.AnthillProject.releaseProject(AnthillProject.java:231)
        at
com.urbancode.anthill.AnthillProject.releaseProject(AnthillProject.java:217)
        at
com.urbancode.anthill.AnthillProject.releaseProject(AnthillProject.java:195)
        at com.urbancode.anthill.AnthillProject.run(AnthillProject.java:187)
        at com.urbancode.anthill.BuildDaemon.run(BuildDaemon.java:73)
13:48:25:882 [Thread - AnthillBuildDaemon] INFO
com.urbancode.anthill.BuildManager  - Step 6) Tag project (if set to
success):
^C

-----Original Message-----
From: Eric Minick [mailto:eric at urbancode.com] 
Sent: Monday, July 19, 2004 4:02 PM
To: Anthill user list
Subject: Re: [Anthill] Regd Checking out of sources and dependency


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
>
>
>  
>
_______________________________________________
Anthill mailing list
Anthill at lists.urbancode.com
http://lists.urbancode.com/mailman/listinfo/anthill



More information about the Anthill mailing list