CC - dependent builds how to

View: New views
2 Messages — Rating Filter:   Alert me  

CC - dependent builds how to

by Cheng Wei Lee :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I've a Java EAR project. This EAR has a WAR project. The WAR project depends on one JAR. So in all, I've 3 projects. If there're any changes in any of the files in any of these 3 projects, I would like to trigger a build of the EAR project. How could I achieve this with CC?

Cheers!

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Cruisecontrol-user mailing list
Cruisecontrol-user@...
https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user

Re: CC - dependent builds how to

by henk.van.voorthuijsen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



cruisecontrol-user-bounces@... wrote on 02-07-2008 13:03:24:

> Hi,
>
> I've a Java EAR project. This EAR has a WAR project. The WAR project
> depends on one JAR. So in all, I've 3 projects. If there're any
> changes in any of the files in any of these 3 projects, I would like
> to trigger a build of the EAR project. How could I achieve this with CC?
>


Use the <buildstatus> and <veto> modification sets:

<project name="my-jar">
  <modificationset>
    <version control for my-jar />
  </modificationset>
</project>

<project name="my-war">
  <modificationset>
    <version control for my-war />
    <veto>
      <triggers>
        <version control for my-jar />
      </triggers>
      <buildstatus logdir="logs/my-jar"/>    
    </veto>
    <buildstatus logdir="logs/my-jar"/>
  </modificationset>
</project>

<project name="my-ear">
  <modificationset>
    <version control for my-ear />
    <veto>
      <triggers>
        <version control for my-war />
      </triggers>
      <buildstatus logdir="logs/my-war"/>    
    </veto>
    <buildstatus logdir="logs/my-war"/>
  </modificationset>
</project>


  <plugin name="depends.anttasks.cmp"
          classname="com.aciworldwide.contint.Veto">
    <triggers>
      <cmsynergy.modifications componentpath="anttasks.cmp"
                               project="common_src~contint" />
    </triggers>
    <buildstatus logdir="logs/util.cmp"/>
  </plugin>
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Cruisecontrol-user mailing list
Cruisecontrol-user@...
https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user
LightInTheBox - Buy quality products at wholesale price