ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject cvs commit: jakarta-ant build.xml
Date Tue, 29 Jan 2002 13:02:43 GMT
bodewig     02/01/29 05:02:43

  Modified:    .        build.xml
  Log:
  Add a property that allows a failed chmod to be non-fatal.
  
  <chmod> can fail if the user running the build is not the owner of the
  file who's permissions should be changed.
  
  Revision  Changes    Path
  1.232     +15 -9     jakarta-ant/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/build.xml,v
  retrieving revision 1.231
  retrieving revision 1.232
  diff -u -r1.231 -r1.232
  --- build.xml	21 Jan 2002 17:14:26 -0000	1.231
  +++ build.xml	29 Jan 2002 13:02:43 -0000	1.232
  @@ -21,6 +21,7 @@
     <property name="version" value="1.5alpha"/>
   
     <property name="debug" value="true" />
  +  <property name="chmod.fail" value="true" />
     <property name="deprecation" value="false" />
     <property name="optimize" value="true" />
     <property name="junit.fork" value="false" />
  @@ -406,9 +407,11 @@
       </fixcrlf>
       <fixcrlf srcdir="${dist.bin}" includes="*.pl" />
   
  -    <chmod perm="ugo+rx" dir="${dist.dir}" type="dir" includes="**" />
  -    <chmod perm="ugo+r" dir="${dist.dir}" type="file" includes="**" />
  -    <chmod perm="ugo+x" type="file">
  +    <chmod perm="ugo+rx" dir="${dist.dir}" type="dir" includes="**" 
  +           failonerror="${chmod.fail}" />
  +    <chmod perm="ugo+r" dir="${dist.dir}" type="file" includes="**" 
  +           failonerror="${chmod.fail}" />
  +    <chmod perm="ugo+x" type="file" failonerror="${chmod.fail}">
          <fileset dir="${dist.bin}">
            <include name="**/ant" />
            <include name="**/antRun" />
  @@ -473,9 +476,11 @@
         </fileset>
       </copy>
   
  -    <chmod perm="ugo+rx" dir="${dist.dir}" type="dir" includes="**" />
  -    <chmod perm="ugo+r" dir="${dist.dir}" type="file" includes="**" />
  -    <chmod perm="ugo+x" type="file">
  +    <chmod perm="ugo+rx" dir="${dist.dir}" type="dir" includes="**" 
  +           failonerror="${chmod.fail}" />
  +    <chmod perm="ugo+r" dir="${dist.dir}" type="file" includes="**" 
  +           failonerror="${chmod.fail}" />
  +    <chmod perm="ugo+x" type="file" failonerror="${chmod.fail}">
          <fileset dir="${dist.bin}">
            <include name="**/ant" />
            <include name="**/antRun" />
  @@ -566,9 +571,10 @@
         <include name="**/*.java" />
       </fixcrlf>
   
  -    <chmod perm="ugo+x" dir="${src.dist.dir}" type="dir"/>
  -    <chmod perm="ugo+r" dir="${src.dist.dir}" />
  -    <chmod perm="ugo+x">
  +    <chmod perm="ugo+x" dir="${src.dist.dir}" type="dir"
  +           failonerror="${chmod.fail}" />
  +    <chmod perm="ugo+r" dir="${src.dist.dir}" failonerror="${chmod.fail}" />
  +    <chmod perm="ugo+x" failonerror="${chmod.fail}">
          <fileset dir="${src.dist.dir}">
            <include name="**/.sh" />
            <include name="**/ant" />
  
  
  

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message