Review Board 1.7.22


SQOOP-950 Can't build package from provided binary artifacts

Review Request #9954 - Created March 15, 2013 and submitted

Jarek Cecho
SQOOP-950
Reviewers
Sqoop
sqoop-trunk
I've tweak the build logic a bit to overcome this issue.
I'be build the binary artifact the same way as we're doing during the release and I've tried to build it from there and everything has worked as expected.

Diff revision 1 (Latest)

  1. build.xml: Loading...
build.xml
Revision c097fe851b4f677d875530cbebd5a2292bfafad2 New Change
[20] 457 lines
[+20]
458
      </fileset>
458
      </fileset>
459
    </copy>
459
    </copy>
460

    
   
460

   
461
    <!-- move the license in trunk to a temporary location and copy
461
    <!-- move the license in trunk to a temporary location and copy
462
         appropriate license in the trunk, ultimately in the package. -->
462
         appropriate license in the trunk, ultimately in the package. -->
463
    <move file="${basedir}/LICENSE.txt" tofile="${base.src.dir}/licenses/LICENSE-TEMP.txt"/>
463
    <move file="${basedir}/LICENSE.txt" tofile="${build.dir}/LICENSE-TEMP.txt"/>
464
    <copy file="${base.src.dir}/licenses/LICENSE-BIN.txt" tofile="${basedir}/LICENSE.txt"/>
464
    <copy file="${base.src.dir}/licenses/LICENSE-BIN.txt" tofile="${basedir}/LICENSE.txt"/>
465
    <!-- copy in various components of the initial source layout
465
    <!-- copy in various components of the initial source layout
466
         so that the redistributable can bootstrap itself. -->
466
         so that the redistributable can bootstrap itself. -->
467
    <copy todir="${dist.dir}" includeEmptyDirs="false" flatten="false">
467
    <copy todir="${dist.dir}" includeEmptyDirs="false" flatten="false">
468
      <fileset dir="${basedir}">
468
      <fileset dir="${basedir}">
469
        <include name="**/*" />
469
        <include name="**/*" />
470
        <exclude name="src/licenses/**" />

   
471
        <exclude name="build/**" />
470
        <exclude name="build/**" />
472
        <exclude name="lib/**" />
471
        <exclude name="lib/**" />
473
        <exclude name=".git/**" />
472
        <exclude name=".git/**" />
474
        <exclude name="tags" />
473
        <exclude name="tags" />
475
        <exclude name=".project" />
474
        <exclude name=".project" />
476
        <exclude name=".classpath" />
475
        <exclude name=".classpath" />
477
        <exclude name="conf/managers.d/**" />
476
        <exclude name="conf/managers.d/**" />
478
        <exclude name="conf/tools.d/**" />
477
        <exclude name="conf/tools.d/**" />
479
      </fileset>
478
      </fileset>
480
    </copy>
479
    </copy>
481
    <!-- move back the license in trunk -->
480
    <!-- move back the license in trunk -->
482
    <move file="${base.src.dir}/licenses/LICENSE-TEMP.txt" tofile="${basedir}/LICENSE.txt"/>
481
    <move file="${build.dir}/LICENSE-TEMP.txt" tofile="${basedir}/LICENSE.txt"/>
483

    
   
482

   
484
    <!-- copy the dependency libraries from ivy into the output lib dir -->
483
    <!-- copy the dependency libraries from ivy into the output lib dir -->
485
    <mkdir dir="${dist.dir}/lib"/>
484
    <mkdir dir="${dist.dir}/lib"/>
486
    <copy todir="${dist.dir}/lib" includeEmptyDirs="false" flatten="true">
485
    <copy todir="${dist.dir}/lib" includeEmptyDirs="false" flatten="true">
487
      <fileset dir="${redist.ivy.lib.dir}">
486
      <fileset dir="${redist.ivy.lib.dir}">
[+20] [20] 739 lines
  1. build.xml: Loading...