Review Board 1.7.22


SQOOP-770 Sqoop2: executable scripts in binary distribution tarball are not executable

Review Request #8602 - Created Dec. 14, 2012 and submitted

Cheolsoo Park
SQOOP-770
Reviewers
Sqoop
sqoop-sqoop2
Please see https://issues.apache.org/jira/browse/SQOOP-770

 

Diff revision 1 (Latest)

  1. dist/pom.xml: Loading...
dist/pom.xml
Revision b08ad51 New Change
[20] 94 lines
[+20]
95
                    <!-- Create dist dir -->
95
                    <!-- Create dist dir -->
96
                    <mkdir dir="target/sqoop-${project.version}"/>
96
                    <mkdir dir="target/sqoop-${project.version}"/>
97

    
   
97

   
98
                    <!-- Create final distribution tar -->
98
                    <!-- Create final distribution tar -->
99
                    <tar destfile="target/sqoop-${project.version}.tar.gz" compression="gzip">
99
                    <tar destfile="target/sqoop-${project.version}.tar.gz" compression="gzip">
100
                      <tarfileset dir="target/sqoop-${project.version}" prefix="sqoop-${project.version}"/>
100
                      <tarfileset dir="target/sqoop-${project.version}" prefix="sqoop-${project.version}" filemode="755">

    
   
101
                        <include name="**/*.sh" />

    
   
102
                      </tarfileset>

    
   
103
                      <tarfileset dir="target/sqoop-${project.version}" prefix="sqoop-${project.version}">

    
   
104
                        <include name="**/*" />

    
   
105
                        <exclude name="**/bin/*" />

    
   
106
                      </tarfileset>
101
                    </tar>
107
                    </tar>
102
                  </target>
108
                  </target>
103
                </configuration>
109
                </configuration>
104
              </execution>
110
              </execution>
105
            </executions>
111
            </executions>
[+20] [20] 82 lines
[+20]
188
                    </copy>
194
                    </copy>
189
                    <chmod dir="target/sqoop-${project.version}-bin-hadoop${hadoop.profile}/bin" perm="u+x" includes="**/*.sh"/>
195
                    <chmod dir="target/sqoop-${project.version}-bin-hadoop${hadoop.profile}/bin" perm="u+x" includes="**/*.sh"/>
190

    
   
196

   
191
                    <!-- Finally create distribution tar -->
197
                    <!-- Finally create distribution tar -->
192
                    <tar destfile="target/sqoop-${project.version}-bin-hadoop${hadoop.profile}.tar.gz" compression="gzip">
198
                    <tar destfile="target/sqoop-${project.version}-bin-hadoop${hadoop.profile}.tar.gz" compression="gzip">
193
                      <tarfileset dir="target/sqoop-${project.version}-bin-hadoop${hadoop.profile}" prefix="sqoop-${project.version}-bin-hadoop${hadoop.profile}"/>
199
                      <tarfileset dir="target/sqoop-${project.version}-bin-hadoop${hadoop.profile}" prefix="sqoop-${project.version}-bin-hadoop${hadoop.profile}" filemode="755">

    
   
200
                        <include name="**/*.sh" />

    
   
201
                      </tarfileset>

    
   
202
                      <tarfileset dir="target/sqoop-${project.version}-bin-hadoop${hadoop.profile}" prefix="sqoop-${project.version}-bin-hadoop${hadoop.profile}">

    
   
203
                        <include name="**/*" />

    
   
204
                        <exclude name="**/*.sh" />

    
   
205
                      </tarfileset>
194
                    </tar>
206
                    </tar>
195
                  </target>
207
                  </target>
196
                </configuration>
208
                </configuration>
197
              </execution>
209
              </execution>
198
            </executions>
210
            </executions>
[+20] [20] 37 lines
  1. dist/pom.xml: Loading...