Welcome, Guest
Username Password: Remember me

Creating single WAR file from multiple branches
(1 viewing) (1) Guest
Hudson
  • Page:
  • 1

TOPIC: Creating single WAR file from multiple branches

Creating single WAR file from multiple branches 1 year, 2 months ago #614

  • revanthreddy
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
  • Points: 18
  • Karma: 0
Hi,



I am Revanth working for a product company. We are using Hudson for creating WAR files from SVN for our daily build purposes. Until these days everything went fine, but in recent days we have a change in SVN structure where I am stuck for preparing WAR file. Any help in this regard is highly appreciated.



My problem area:



We have a branch called “A” where platform files are checked in and another branch called “B” where product files are checked in. Through Hudson I need to prepare WAR file by combing “A” branch files on the top it branch “B” files. I need to checkout first “A” branch and then on the top it “B” branch files and build the WAR file.



Please let me know who this can be achieved by using Hudson.

Thanks&Regards,
Revanth.

Re: Creating single WAR file from multiple branches 1 year, 1 month ago #619

  • rajeshkumar
  • OFFLINE
  • Moderator
  • I love software configuration management
  • Posts: 370
  • Points: 44553
  • Karma: 4
  • Honor Medal 2009
You can sycn the both source code using hudson - job configuration...

In Source Code Management = Subversion
and add as many Repository URL you want to sync...

Once sync got completed, Write one build.xmkl file and add to hudson job configuration...

Snippet of code below;

<war destfile="myapp.war" webxml="src/metadata/myapp.xml">
<fileset dir="src/html/myapp"/>
<fileset dir="src/jsp/myapp"/>
<lib dir="thirdparty/libs">
<exclude name="jdbc1.jar"/>
</lib>
<classes dir="build/main"/>
<zipfileset dir="src/graphics/images/gifs"
prefix="images"/>
</war>


More reference can be found...
ant.apache.org/manual/Tasks/war.html
Regards,
Rajesh Kumar
Build and Release Engineer
My Blog: community.scmgalaxy.com/pg/profile/rajeshkumar
  • Page:
  • 1
Time to create page: 0.62 seconds

     
    
Home Forum