You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by jv...@apache.org on 2006/10/12 00:58:29 UTC

svn commit: r463026 - /maven/components/trunk/build.xml

Author: jvanzyl
Date: Wed Oct 11 15:58:27 2006
New Revision: 463026

URL: http://svn.apache.org/viewvc?view=rev&rev=463026
Log:
o adding chmod after the zip is unpacked

Modified:
    maven/components/trunk/build.xml

Modified: maven/components/trunk/build.xml
URL: http://svn.apache.org/viewvc/maven/components/trunk/build.xml?view=diff&rev=463026&r1=463025&r2=463026
==============================================================================
--- maven/components/trunk/build.xml (original)
+++ maven/components/trunk/build.xml Wed Oct 11 15:58:27 2006
@@ -134,7 +134,7 @@
 
   <target name="generate-sources" depends="classpath-pre"
           description="generates Java sources from Modello mdo model files"
-  >
+      >
     <mkdir dir="bootstrap/target"/>
     <mkdir dir="bootstrap/target/generated-sources"/>
 
@@ -241,6 +241,12 @@
           description="extracts the maven assembly into maven.home">
     <delete dir="${maven.home}"/>
     <unzip src="${maven.assembly}" dest="${maven.home.dirname}"/>
+    <chmod perm="+x">
+      <fileset dir="${maven.home}/bin">
+        <include name="mvn"/>
+        <include name="m2"/>
+      </fileset>
+    </chmod>
   </target>
 
   <target name="run-full-maven" depends="init,extract-assembly"
@@ -269,7 +275,8 @@
   <target name="download-artifact">
 
     <!-- choose the proper repository -->
-    <condition property="repo" value="http://people.apache.org/repo/m2-snapshot-repository" else="http://repo1.maven.org/maven2">
+    <condition property="repo" value="http://people.apache.org/repo/m2-snapshot-repository"
+               else="http://repo1.maven.org/maven2">
       <contains string="${version}" substring="SNAPSHOT"/>
     </condition>
 
@@ -279,7 +286,7 @@
     <get src="${repo}/${orgpath}/${version}/maven-metadata.xml"
          dest="${maven.repo.local}/${orgpath}/${version}/bootstrap-maven-metadata.xml" usetimestamp="true"
          ignoreerrors="true"
-    />
+        />
 
     <!-- Replace 'SNAPSHOT' with 'timestamp-buildnumber'. This is ugly but
       ant doesn't allow updating of properties.
@@ -298,7 +305,7 @@
     <get src="${repo}/${orgpath}/${version}/${name}-${fileversion}.jar"
          dest="${maven.repo.local}/${orgpath}/${version}/${name}-${fileversion}.jar" usetimestamp="true"
          ignoreerrors="false"
-    />
+        />
     <condition property="build.failed">
       <not>
         <available file="${maven.repo.local}/${orgpath}/${version}/${name}-${version}.jar"/>