Bug 777933 (SOA-462)

Summary: Create source bundle
Product: [JBoss] JBoss Enterprise SOA Platform 4 Reporter: Julian Coleman <jcoleman>
Component: Build ProcessAssignee: Julian Coleman <jcoleman>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: urgent Docs Contact:
Priority: urgent    
Version: 4.2 GA   
Target Milestone: ---   
Target Release: 4.2 GA   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/SOA-462
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Linux Windows
Last Closed: 2008-03-18 13:57:24 UTC Type: Task
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Julian Coleman 2008-03-10 10:04:59 UTC
Complexity: Low
project_key: SOA

Need to provide source bundle for SOA-P (easy).
Need to check that it builds and what the build requirements are (on Unix/Linux and on Windows).

Comment 1 Julian Coleman 2008-03-10 10:07:53 UTC
Software requirements (command-line tools) for the build are:
        Java 5 SE SDK
        ant 1.7.0
        zip and unzip
        CVS
        Maven (mvn)
        Subversion (svn)


Comment 2 Julian Coleman 2008-03-10 13:21:53 UTC
The source doesn't build on Windows, as (at least) the mvn exec fails.  A separate issue will be opened to address this.

Comment 3 Julian Coleman 2008-03-10 13:43:35 UTC
Building the source zip:
  Create a soa-<rel> directory (e.g. soa-4.2.0) and check out the tagged SOA source into it
  Run:
    (cd build-tools && ant materialize.projects)
  to fetch the dependencies in soa-work.
  Add instructions and script/batch file to make it easy to build.

The instructions, script and batch file are being worked on.


Comment 4 Julian Coleman 2008-03-10 13:57:51 UTC
SOA-463 will fix the Windows build issue.

Comment 5 Julian Coleman 2008-03-10 13:57:51 UTC
Link: Added: This issue is related to SOA-463


Comment 6 Julian Coleman 2008-03-10 14:39:58 UTC
The instructions, script and batch file are checked in under the src-tools top-level directory.

Comment 7 Julian Coleman 2008-03-10 15:15:01 UTC
Source zip created (1.5GB).


Comment 8 Julian Coleman 2008-03-10 16:27:43 UTC
1.5GB is too large.
Will remove all the .svn directories.  That should halve the size:

mkdir soa-4.2.0 && \
(cd soa-4.2.0 && \
svn co https://svn.corp.jboss.com/repos/soa/trunk/src-tools && \
mv src-tools/* . && \
rm -rf src-tools && \
svn co https://svn.corp.jboss.com/repos/soa/tags/4.2.0GA/build-tools && \
find build-tools -name .svn -exec rm -fr {} \; -prune && \
(cd build-tools && ant materialize.projects) && \
find soa-work -name .svn -exec rm -fr {} \; -prune     
) && \
find soa-4.2.0 | zip soa-4.2.0.zip -@ && \
md5sum soa-4.2.0.zip > soa-4.2.0.zip.md5


Comment 9 Julian Coleman 2008-03-18 13:55:46 UTC
Removed the .svn and CVS directories using:
  mkdir soa-4.2.0 && \
  (cd soa-4.2.0 && \
  svn co https://svn.corp.jboss.com/repos/soa/trunk/src-tools && \
  mv src-tools/* . && \
  rm -rf src-tools && \
  svn co https://svn.corp.jboss.com/repos/soa/tags/4.2.0GA/build-tools && \
  find build-tools -name .svn -exec rm -fr {} \; -prune && \
  (cd build-tools && ant configure && ant materialize.projects) && \
  find soa-work \( -name .svn -o -name CVS \) -exec rm -fr {} \; -prune
  ) && \
  rm -f soa-4.2.0.zip 2>&1 && \
  find soa-4.2.0 | zip soa-4.2.0.zip -@ && \
  md5sum soa-4.2.0.zip > soa-4.2.0.zip.md5

Also removed was a (no longer used) old version of the EAP zip.  The final source size is:
  -rw-r--r-- 1 jdc staff 581849907 2008-03-12 13:54 soa-4.2.0.zip

Uploaded to SVN and Chris O'Brien uploaded that to:
  ftp://ftp.redhat.com/pub/redhat/soa-p/4.2.0/en/source/soa-4.2.0.zip